diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 2ab56cd24a59..f0b1369c88b8 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.3 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.57.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index 779caa4a2c11..82abe156889e 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.56.3 -googleapis_commitish: 9b69927306837031baf07585ec02bc9af5c1da7e -libraries_bom_version: 26.59.0 +gapic_generator_version: 2.57.0 +googleapis_commitish: 295a170ba55e5241a85751cbf5b1e4b2011dfa96 +libraries_bom_version: 26.60.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 78027c898f33..c1c07321220a 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.59.0 + 26.60.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.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.62.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.63.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 ef4cc0db7909..b75f9a8411a8 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.59.0 + 26.60.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.62.0 + 1.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.62.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.62.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.63.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 b1cb62ae8db0..3ffdc6a7690b 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.59.0 + 26.60.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.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.20.0' +implementation 'com.google.api-ads:ad-manager:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.20.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "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.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/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-advisorynotifications/README.md b/java-advisorynotifications/README.md index 4309511fdb4d..5bfd006167af 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.59.0 + 26.60.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.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.50.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.51.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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.51.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 4eb552142f90..c0c1afed6c39 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.59.0 + 26.60.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.62.0 + 3.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.62.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.63.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 0ab553ad09ad..83f23b028916 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 @@ -15650,6 +15650,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$ANN", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$ANN$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$Builder", "queryAllDeclaredConstructors": true, @@ -15659,6 +15677,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$KNN", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$RagManagedDb$KNN$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.RagVectorDbConfig$VertexVectorSearch", "queryAllDeclaredConstructors": true, @@ -19565,6 +19601,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.TunedModelCheckpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.TunedModelCheckpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.TunedModelRef", "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 70e6dbd86a2c..3cb240697bf2 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 @@ -19394,6 +19394,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$ANN", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$ANN$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$Builder", "queryAllDeclaredConstructors": true, @@ -19403,6 +19421,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$KNN", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedDb$KNN$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore", "queryAllDeclaredConstructors": true, @@ -24587,6 +24623,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.TunedModelRef", "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 dae51cac0b04..735b92c7a87d 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 @@ -120,6 +120,7 @@ public void createRagCorpusTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCorpusStatus(CorpusStatus.newBuilder().build()) .setRagFilesCount(-477680736) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -177,6 +178,7 @@ public void createRagCorpusTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCorpusStatus(CorpusStatus.newBuilder().build()) .setRagFilesCount(-477680736) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -234,6 +236,7 @@ public void updateRagCorpusTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCorpusStatus(CorpusStatus.newBuilder().build()) .setRagFilesCount(-477680736) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -288,6 +291,7 @@ public void getRagCorpusTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCorpusStatus(CorpusStatus.newBuilder().build()) .setRagFilesCount(-477680736) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockVertexRagDataService.addResponse(expectedResponse); @@ -334,6 +338,7 @@ public void getRagCorpusTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCorpusStatus(CorpusStatus.newBuilder().build()) .setRagFilesCount(-477680736) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockVertexRagDataService.addResponse(expectedResponse); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java index eb0735aee6d5..611594681b77 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java @@ -23,6 +23,7 @@ * * *
+ * LINT: LEGACY_NAMES
  * Represents a hardware accelerator type.
  * 
* @@ -141,6 +142,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_MEGA_80GB = 14; */ NVIDIA_H100_MEGA_80GB(14), + /** + * + * + *
+   * Nvidia H200 141Gb GPU.
+   * 
+ * + * NVIDIA_H200_141GB = 15; + */ + NVIDIA_H200_141GB(15), + /** + * + * + *
+   * Nvidia B200 GPU.
+   * 
+ * + * NVIDIA_B200 = 16; + */ + NVIDIA_B200(16), /** * * @@ -306,6 +327,28 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NVIDIA_H100_MEGA_80GB_VALUE = 14; + /** + * + * + *
+   * Nvidia H200 141Gb GPU.
+   * 
+ * + * NVIDIA_H200_141GB = 15; + */ + public static final int NVIDIA_H200_141GB_VALUE = 15; + + /** + * + * + *
+   * Nvidia B200 GPU.
+   * 
+ * + * NVIDIA_B200 = 16; + */ + public static final int NVIDIA_B200_VALUE = 16; + /** * * @@ -396,6 +439,10 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_H100_80GB; case 14: return NVIDIA_H100_MEGA_80GB; + case 15: + return NVIDIA_H200_141GB; + case 16: + return NVIDIA_B200; case 6: return TPU_V2; case 7: diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java index fee0664eb589..e9ac40d2c077 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java @@ -38,13 +38,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/cloud/aiplatform/v1/accelerator" + "_type.proto\022\032google.cloud.aiplatform.v1*" - + "\316\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + + "\366\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_" + "UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002\010\001\022" + "\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V" + "100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TES" + "LA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA" + "_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H1" - + "00_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_80GB\020\016\022\n\n\006" + + "00_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_80GB\020\016\022\025\n\021" + + "NVIDIA_H200_141GB\020\017\022\017\n\013NVIDIA_B200\020\020\022\n\n\006" + "TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020\n\022\022\n\016" + "TPU_V5_LITEPOD\020\014B\322\001\n\036com.google.cloud.ai" + "platform.v1B\024AcceleratorTypeProtoP\001Z>clo" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java index 08e6e2426973..83fd55ade164 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfig.java @@ -521,7 +521,7 @@ public com.google.cloud.aiplatform.v1.SharePointSourcesOrBuilder getSharePointSo * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override @@ -543,7 +543,7 @@ public boolean hasPartialFailureGcsSink() { * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return The partialFailureGcsSink. */ @java.lang.Override @@ -597,7 +597,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination getPartialFailureGcsSink() * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override @@ -624,7 +624,7 @@ public boolean hasPartialFailureBigquerySink() { * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return The partialFailureBigquerySink. */ @java.lang.Override @@ -935,6 +935,31 @@ public int getMaxEmbeddingRequestsPerMin() { return maxEmbeddingRequestsPerMin_; } + public static final int REBUILD_ANN_INDEX_FIELD_NUMBER = 19; + private boolean rebuildAnnIndex_ = false; + + /** + * + * + *
+   * Rebuilds the ANN index to optimize for recall on the imported data.
+   * Only applicable for RagCorpora running on RagManagedDb with
+   * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+   * existing ANN config set on the RagCorpus. To change the ANN config, please
+   * use the UpdateRagCorpus API.
+   *
+   * Default is false, i.e., index is not rebuilt.
+   * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + @java.lang.Override + public boolean getRebuildAnnIndex() { + return rebuildAnnIndex_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -987,6 +1012,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(16, getRagFileTransformationConfig()); } + if (rebuildAnnIndex_ != false) { + output.writeBool(19, rebuildAnnIndex_); + } getUnknownFields().writeTo(output); } @@ -1054,6 +1082,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 16, getRagFileTransformationConfig()); } + if (rebuildAnnIndex_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, rebuildAnnIndex_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1080,6 +1111,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRagFileParsingConfig().equals(other.getRagFileParsingConfig())) return false; } if (getMaxEmbeddingRequestsPerMin() != other.getMaxEmbeddingRequestsPerMin()) return false; + if (getRebuildAnnIndex() != other.getRebuildAnnIndex()) return false; if (!getImportSourceCase().equals(other.getImportSourceCase())) return false; switch (importSourceCase_) { case 2: @@ -1145,6 +1177,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_EMBEDDING_REQUESTS_PER_MIN_FIELD_NUMBER; hash = (53 * hash) + getMaxEmbeddingRequestsPerMin(); + hash = (37 * hash) + REBUILD_ANN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRebuildAnnIndex()); switch (importSourceCase_) { case 2: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -1381,6 +1415,7 @@ public Builder clear() { ragFileParsingConfigBuilder_ = null; } maxEmbeddingRequestsPerMin_ = 0; + rebuildAnnIndex_ = false; importSourceCase_ = 0; importSource_ = null; partialFailureSinkCase_ = 0; @@ -1442,6 +1477,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ImportRagFilesConfig r if (((from_bitField0_ & 0x00000800) != 0)) { result.maxEmbeddingRequestsPerMin_ = maxEmbeddingRequestsPerMin_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.rebuildAnnIndex_ = rebuildAnnIndex_; + } result.bitField0_ |= to_bitField0_; } @@ -1536,6 +1574,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ImportRagFilesConfig oth if (other.getMaxEmbeddingRequestsPerMin() != 0) { setMaxEmbeddingRequestsPerMin(other.getMaxEmbeddingRequestsPerMin()); } + if (other.getRebuildAnnIndex() != false) { + setRebuildAnnIndex(other.getRebuildAnnIndex()); + } switch (other.getImportSourceCase()) { case GCS_SOURCE: { @@ -1705,6 +1746,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 130 + case 152: + { + rebuildAnnIndex_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2914,7 +2961,7 @@ public com.google.cloud.aiplatform.v1.SharePointSources.Builder getSharePointSou * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override @@ -2936,7 +2983,7 @@ public boolean hasPartialFailureGcsSink() { * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return The partialFailureGcsSink. */ @java.lang.Override @@ -3178,7 +3225,7 @@ public com.google.cloud.aiplatform.v1.GcsDestination.Builder getPartialFailureGc * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override @@ -3205,7 +3252,7 @@ public boolean hasPartialFailureBigquerySink() { * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return The partialFailureBigquerySink. */ @java.lang.Override @@ -4478,6 +4525,80 @@ public Builder clearMaxEmbeddingRequestsPerMin() { return this; } + private boolean rebuildAnnIndex_; + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + @java.lang.Override + public boolean getRebuildAnnIndex() { + return rebuildAnnIndex_; + } + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @param value The rebuildAnnIndex to set. + * @return This builder for chaining. + */ + public Builder setRebuildAnnIndex(boolean value) { + + rebuildAnnIndex_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @return This builder for chaining. + */ + public Builder clearRebuildAnnIndex() { + bitField0_ = (bitField0_ & ~0x00001000); + rebuildAnnIndex_ = 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-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java index 558a4f3248cc..da99b4bed121 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ImportRagFilesConfigOrBuilder.java @@ -234,7 +234,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Deprecated @@ -253,7 +253,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=413 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=453 * @return The partialFailureGcsSink. */ @java.lang.Deprecated @@ -292,7 +292,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Deprecated @@ -316,7 +316,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=422 + * deprecated. See google/cloud/aiplatform/v1/vertex_rag_data.proto;l=462 * @return The partialFailureBigquerySink. */ @java.lang.Deprecated @@ -541,6 +541,25 @@ public interface ImportRagFilesConfigOrBuilder */ int getMaxEmbeddingRequestsPerMin(); + /** + * + * + *
+   * Rebuilds the ANN index to optimize for recall on the imported data.
+   * Only applicable for RagCorpora running on RagManagedDb with
+   * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+   * existing ANN config set on the RagCorpus. To change the ANN config, please
+   * use the UpdateRagCorpus API.
+   *
+   * Default is false, i.e., index is not rebuilt.
+   * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + boolean getRebuildAnnIndex(); + com.google.cloud.aiplatform.v1.ImportRagFilesConfig.ImportSourceCase getImportSourceCase(); com.google.cloud.aiplatform.v1.ImportRagFilesConfig.PartialFailureSinkCase diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java index 1286f3a5a912..0b83cd431164 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/OpenApiProto.java @@ -52,7 +52,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "(google/cloud/aiplatform/v1/openapi.pro" + "to\022\032google.cloud.aiplatform.v1\032\037google/a" - + "pi/field_behavior.proto\032\034google/protobuf/struct.proto\"\324\007\n" + + "pi/field_behavior.proto\032\034google/protobuf/struct.proto\"\220\010\n" + "\006Schema\0223\n" + "\004type\030\001 \001(\0162 .google.cloud.aiplatform.v1.TypeB\003\340A\001\022\023\n" + "\006format\030\007 \001(\tB\003\340A\001\022\022\n" @@ -77,11 +77,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "max_length\030\023 \001(\003B\003\340A\001\022\024\n" + "\007pattern\030\024 \001(\tB\003\340A\001\022,\n" + "\007example\030\004 \001(\0132\026.google.protobuf.ValueB\003\340A\001\0227\n" - + "\006any_of\030\013" - + " \003(\0132\".google.cloud.aiplatform.v1.SchemaB\003\340A\001\022\020\n" + + "\006any_of\030\013 \003(\0132\".google.cloud.aiplatform.v1.SchemaB\003\340A\001\022:\n" + + "\025additional_properties\030\032" + + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022\020\n" + "\003ref\030\033 \001(\tB\003\340A\001\022?\n" - + "\004defs\030\034" - + " \003(\0132,.google.cloud.aiplatform.v1.Schema.DefsEntryB\003\340A\001\032U\n" + + "\004defs\030\034 \003(\0132,." + + "google.cloud.aiplatform.v1.Schema.DefsEntryB\003\340A\001\032U\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\0221\n" + "\005value\030\002 \001(\0132\".google.cloud.aiplatform.v1.Schema:\0028\001\032O\n" @@ -90,18 +91,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\0132\".google.cloud.aiplatform.v1.Schema:\0028\001*e\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006STRING\020\001\022\n" - + "\n" + + "\006STRING\020\001\022\n\n" + "\006NUMBER\020\002\022\013\n" + "\007INTEGER\020\003\022\013\n" + "\007BOOLEAN\020\004\022\t\n" + "\005ARRAY\020\005\022\n\n" + "\006OBJECT\020\006B\312\001\n" - + "\036com.google.cloud.aiplatform.v1B\014OpenApiProtoP\001Z>cloud.go" - + "ogle.com/go/aiplatform/apiv1/aiplatformp" - + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" - + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" - + "e::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\014OpenApiProtoP\001Z>cloud.google.com/go/aiplatfo" + + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -138,6 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Pattern", "Example", "AnyOf", + "AdditionalProperties", "Ref", "Defs", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java index bd65c8c2f873..e977e2e1a90f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RagVectorDbConfig.java @@ -65,7 +65,91 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public interface RagManagedDbOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + boolean hasKnn(); + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN getKnn(); + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder getKnnOrBuilder(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + boolean hasAnn(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN getAnn(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder getAnnOrBuilder(); + + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.RetrievalStrategyCase + getRetrievalStrategyCase(); + } /** * @@ -110,230 +194,1653 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder.class); } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb other = - (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseFrom( - com.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.RagVectorDbConfig.RagManagedDb parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseDelimitedFrom( - java.io.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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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; - } + public interface KNNOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + com.google.protobuf.MessageOrBuilder {} /** * * *
-     * The config for the default RAG-managed Vector DB.
+     * Config for KNN search.
      * 
* - * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb} + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class KNN extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + KNNOrBuilder { + private static final long serialVersionUID = 0L; + + // Use KNN.newBuilder() to construct. + private KNN(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KNN() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KNN(); + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.class, - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder.class); + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder.class); } - // Construct using com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.newBuilder() - private Builder() {} + private byte memoizedIsInitialized = -1; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + @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 Builder clear() { - super.clear(); - return this; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb build() { - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - return result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb buildPartial() { - com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = - new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb(this); - onBuilt(); + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN 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.RagVectorDbConfig.RagManagedDb.KNN parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN parseFrom( + com.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.RagVectorDbConfig.RagManagedDb.KNN parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN 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.RagVectorDbConfig.RagManagedDb.KNN parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN 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.RagVectorDbConfig.RagManagedDb.KNN + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + parseDelimitedFrom( + java.io.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.RagVectorDbConfig.RagManagedDb.KNN 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.RagVectorDbConfig.RagManagedDb.KNN 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.RagVectorDbConfig.RagManagedDb.KNN 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 for KNN search.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN other) { + if (other + == com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KNN 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.RagVectorDbConfig.RagManagedDb.KNN + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ANNOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The depth of the tree-based structure. Only depth values of 2 and 3 are
+       * supported.
+       *
+       * Recommended value is 2 if you have if you have O(10K) files in the
+       * RagCorpus and set this to 3 if more than that.
+       *
+       * Default value is 2.
+       * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + int getTreeDepth(); + + /** + * + * + *
+       * Number of leaf nodes in the tree-based structure. Each leaf node
+       * contains groups of closely related vectors along with their
+       * corresponding centroid.
+       *
+       * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+       *
+       * Default value is 500.
+       * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + int getLeafCount(); + } + + /** + * + * + *
+     * Config for ANN search.
+     *
+     * RagManagedDb uses a tree-based structure to partition data and
+     * facilitate faster searches. As a tradeoff, it requires longer indexing
+     * time and manual triggering of index rebuild via the ImportRagFiles and
+     * UpdateRagCorpus API.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN} + */ + public static final class ANN extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + ANNOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ANN.newBuilder() to construct. + private ANN(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ANN() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ANN(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder.class); + } + + public static final int TREE_DEPTH_FIELD_NUMBER = 1; + private int treeDepth_ = 0; + + /** + * + * + *
+       * The depth of the tree-based structure. Only depth values of 2 and 3 are
+       * supported.
+       *
+       * Recommended value is 2 if you have if you have O(10K) files in the
+       * RagCorpus and set this to 3 if more than that.
+       *
+       * Default value is 2.
+       * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + @java.lang.Override + public int getTreeDepth() { + return treeDepth_; + } + + public static final int LEAF_COUNT_FIELD_NUMBER = 2; + private int leafCount_ = 0; + + /** + * + * + *
+       * Number of leaf nodes in the tree-based structure. Each leaf node
+       * contains groups of closely related vectors along with their
+       * corresponding centroid.
+       *
+       * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+       *
+       * Default value is 500.
+       * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + @java.lang.Override + public int getLeafCount() { + return leafCount_; + } + + 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 (treeDepth_ != 0) { + output.writeInt32(1, treeDepth_); + } + if (leafCount_ != 0) { + output.writeInt32(2, leafCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (treeDepth_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, treeDepth_); + } + if (leafCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, leafCount_); + } + 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.RagVectorDbConfig.RagManagedDb.ANN)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) obj; + + if (getTreeDepth() != other.getTreeDepth()) return false; + if (getLeafCount() != other.getLeafCount()) 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) + TREE_DEPTH_FIELD_NUMBER; + hash = (53 * hash) + getTreeDepth(); + hash = (37 * hash) + LEAF_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLeafCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN 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.RagVectorDbConfig.RagManagedDb.ANN parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN parseFrom( + com.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.RagVectorDbConfig.RagManagedDb.ANN parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN 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.RagVectorDbConfig.RagManagedDb.ANN parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN 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.RagVectorDbConfig.RagManagedDb.ANN + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + parseDelimitedFrom( + java.io.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.RagVectorDbConfig.RagManagedDb.ANN 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.RagVectorDbConfig.RagManagedDb.ANN 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.RagVectorDbConfig.RagManagedDb.ANN 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 for ANN search.
+       *
+       * RagManagedDb uses a tree-based structure to partition data and
+       * facilitate faster searches. As a tradeoff, it requires longer indexing
+       * time and manual triggering of index rebuild via the ImportRagFiles and
+       * UpdateRagCorpus API.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + treeDepth_ = 0; + leafCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.treeDepth_ = treeDepth_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.leafCount_ = leafCount_; + } + } + + @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.RagVectorDbConfig.RagManagedDb.ANN) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN other) { + if (other + == com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance()) return this; + if (other.getTreeDepth() != 0) { + setTreeDepth(other.getTreeDepth()); + } + if (other.getLeafCount() != 0) { + setLeafCount(other.getLeafCount()); + } + 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: + { + treeDepth_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + leafCount_ = 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 treeDepth_; + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + @java.lang.Override + public int getTreeDepth() { + return treeDepth_; + } + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @param value The treeDepth to set. + * @return This builder for chaining. + */ + public Builder setTreeDepth(int value) { + + treeDepth_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @return This builder for chaining. + */ + public Builder clearTreeDepth() { + bitField0_ = (bitField0_ & ~0x00000001); + treeDepth_ = 0; + onChanged(); + return this; + } + + private int leafCount_; + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + @java.lang.Override + public int getLeafCount() { + return leafCount_; + } + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @param value The leafCount to set. + * @return This builder for chaining. + */ + public Builder setLeafCount(int value) { + + leafCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearLeafCount() { + bitField0_ = (bitField0_ & ~0x00000002); + leafCount_ = 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.v1.RagVectorDbConfig.RagManagedDb.ANN) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + private static final com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN(); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ANN 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.RagVectorDbConfig.RagManagedDb.ANN + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int retrievalStrategyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object retrievalStrategy_; + + public enum RetrievalStrategyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + KNN(1), + ANN(2), + RETRIEVALSTRATEGY_NOT_SET(0); + private final int value; + + private RetrievalStrategyCase(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 RetrievalStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static RetrievalStrategyCase forNumber(int value) { + switch (value) { + case 1: + return KNN; + case 2: + return ANN; + case 0: + return RETRIEVALSTRATEGY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RetrievalStrategyCase getRetrievalStrategyCase() { + return RetrievalStrategyCase.forNumber(retrievalStrategyCase_); + } + + public static final int KNN_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + @java.lang.Override + public boolean hasKnn() { + return retrievalStrategyCase_ == 1; + } + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN getKnn() { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.getDefaultInstance(); + } + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder + getKnnOrBuilder() { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.getDefaultInstance(); + } + + public static final int ANN_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + @java.lang.Override + public boolean hasAnn() { + return retrievalStrategyCase_ == 2; + } + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN getAnn() { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.getDefaultInstance(); + } + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder + getAnnOrBuilder() { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.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 (retrievalStrategyCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) retrievalStrategy_); + } + if (retrievalStrategyCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) retrievalStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retrievalStrategyCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_); + } + if (retrievalStrategyCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_); + } + 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.RagVectorDbConfig.RagManagedDb)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb other = + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) obj; + + if (!getRetrievalStrategyCase().equals(other.getRetrievalStrategyCase())) return false; + switch (retrievalStrategyCase_) { + case 1: + if (!getKnn().equals(other.getKnn())) return false; + break; + case 2: + if (!getAnn().equals(other.getAnn())) 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 (retrievalStrategyCase_) { + case 1: + hash = (37 * hash) + KNN_FIELD_NUMBER; + hash = (53 * hash) + getKnn().hashCode(); + break; + case 2: + hash = (37 * hash) + ANN_FIELD_NUMBER; + hash = (53 * hash) + getAnn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseFrom( + com.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.RagVectorDbConfig.RagManagedDb parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb parseDelimitedFrom( + java.io.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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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.RagVectorDbConfig.RagManagedDb 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 default RAG-managed Vector DB.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb) + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.class, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (knnBuilder_ != null) { + knnBuilder_.clear(); + } + if (annBuilder_ != null) { + annBuilder_.clear(); + } + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb build() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb buildPartial() { + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result = + new com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb result) { + result.retrievalStrategyCase_ = retrievalStrategyCase_; + result.retrievalStrategy_ = this.retrievalStrategy_; + if (retrievalStrategyCase_ == 1 && knnBuilder_ != null) { + result.retrievalStrategy_ = knnBuilder_.build(); + } + if (retrievalStrategyCase_ == 2 && annBuilder_ != null) { + result.retrievalStrategy_ = annBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -384,6 +1891,22 @@ public Builder mergeFrom( if (other == com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.getDefaultInstance()) return this; + switch (other.getRetrievalStrategyCase()) { + case KNN: + { + mergeKnn(other.getKnn()); + break; + } + case ANN: + { + mergeAnn(other.getAnn()); + break; + } + case RETRIEVALSTRATEGY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -410,6 +1933,18 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage(getKnnFieldBuilder().getBuilder(), extensionRegistry); + retrievalStrategyCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getAnnFieldBuilder().getBuilder(), extensionRegistry); + retrievalStrategyCase_ = 2; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -427,6 +1962,510 @@ public Builder mergeFrom( return this; } + private int retrievalStrategyCase_ = 0; + private java.lang.Object retrievalStrategy_; + + public RetrievalStrategyCase getRetrievalStrategyCase() { + return RetrievalStrategyCase.forNumber(retrievalStrategyCase_); + } + + public Builder clearRetrievalStrategy() { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder> + knnBuilder_; + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + @java.lang.Override + public boolean hasKnn() { + return retrievalStrategyCase_ == 1; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN getKnn() { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } else { + if (retrievalStrategyCase_ == 1) { + return knnBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder setKnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN value) { + if (knnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalStrategy_ = value; + onChanged(); + } else { + knnBuilder_.setMessage(value); + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder setKnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder + builderForValue) { + if (knnBuilder_ == null) { + retrievalStrategy_ = builderForValue.build(); + onChanged(); + } else { + knnBuilder_.setMessage(builderForValue.build()); + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder mergeKnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN value) { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1 + && retrievalStrategy_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance()) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + retrievalStrategy_ = value; + } + onChanged(); + } else { + if (retrievalStrategyCase_ == 1) { + knnBuilder_.mergeFrom(value); + } else { + knnBuilder_.setMessage(value); + } + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder clearKnn() { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + } + } else { + if (retrievalStrategyCase_ == 1) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + } + knnBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder + getKnnBuilder() { + return getKnnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder + getKnnOrBuilder() { + if ((retrievalStrategyCase_ == 1) && (knnBuilder_ != null)) { + return knnBuilder_.getMessageOrBuilder(); + } else { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder> + getKnnFieldBuilder() { + if (knnBuilder_ == null) { + if (!(retrievalStrategyCase_ == 1)) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + knnBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_, + getParentForChildren(), + isClean()); + retrievalStrategy_ = null; + } + retrievalStrategyCase_ = 1; + onChanged(); + return knnBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder> + annBuilder_; + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + @java.lang.Override + public boolean hasAnn() { + return retrievalStrategyCase_ == 2; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN getAnn() { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } else { + if (retrievalStrategyCase_ == 2) { + return annBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder setAnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN value) { + if (annBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalStrategy_ = value; + onChanged(); + } else { + annBuilder_.setMessage(value); + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder setAnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder + builderForValue) { + if (annBuilder_ == null) { + retrievalStrategy_ = builderForValue.build(); + onChanged(); + } else { + annBuilder_.setMessage(builderForValue.build()); + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder mergeAnn( + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN value) { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2 + && retrievalStrategy_ + != com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance()) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .newBuilder( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + retrievalStrategy_ = value; + } + onChanged(); + } else { + if (retrievalStrategyCase_ == 2) { + annBuilder_.mergeFrom(value); + } else { + annBuilder_.setMessage(value); + } + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder clearAnn() { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + } + } else { + if (retrievalStrategyCase_ == 2) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + } + annBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder + getAnnBuilder() { + return getAnnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder + getAnnOrBuilder() { + if ((retrievalStrategyCase_ == 2) && (annBuilder_ != null)) { + return annBuilder_.getMessageOrBuilder(); + } else { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder> + getAnnFieldBuilder() { + if (annBuilder_ == null) { + if (!(retrievalStrategyCase_ == 2)) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + annBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder>( + (com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_, + getParentForChildren(), + isClean()); + retrievalStrategy_ = null; + } + retrievalStrategyCase_ = 2; + onChanged(); + return annBuilder_; + } + @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/Schema.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java index bd81dfdbee92..0f04c21e3e14 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Schema.java @@ -1130,6 +1130,68 @@ public com.google.cloud.aiplatform.v1.SchemaOrBuilder getAnyOfOrBuilder(int inde return anyOf_.get(index); } + public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 26; + private com.google.protobuf.Value additionalProperties_; + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + @java.lang.Override + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + @java.lang.Override + public com.google.protobuf.Value getAdditionalProperties() { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder() { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + public static final int REF_FIELD_NUMBER = 27; @SuppressWarnings("serial") @@ -1428,6 +1490,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < propertyOrdering_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, propertyOrdering_.getRaw(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(26, getAdditionalProperties()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, ref_); } @@ -1531,6 +1596,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPropertyOrderingList().size(); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAdditionalProperties()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, ref_); } @@ -1592,6 +1661,10 @@ public boolean equals(final java.lang.Object obj) { if (!getExample().equals(other.getExample())) return false; } if (!getAnyOfList().equals(other.getAnyOfList())) return false; + if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; + if (hasAdditionalProperties()) { + if (!getAdditionalProperties().equals(other.getAdditionalProperties())) return false; + } if (!getRef().equals(other.getRef())) return false; if (!internalGetDefs().equals(other.internalGetDefs())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1671,6 +1744,10 @@ public int hashCode() { hash = (37 * hash) + ANY_OF_FIELD_NUMBER; hash = (53 * hash) + getAnyOfList().hashCode(); } + if (hasAdditionalProperties()) { + hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalProperties().hashCode(); + } hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); if (!internalGetDefs().getMap().isEmpty()) { @@ -1850,6 +1927,7 @@ private void maybeForceBuilderInitialization() { getItemsFieldBuilder(); getExampleFieldBuilder(); getAnyOfFieldBuilder(); + getAdditionalPropertiesFieldBuilder(); } } @@ -1897,6 +1975,11 @@ public Builder clear() { anyOfBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } ref_ = ""; internalGetMutableDefs().clear(); return this; @@ -2020,9 +2103,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Schema result) { to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.ref_ = ref_; + result.additionalProperties_ = + additionalPropertiesBuilder_ == null + ? additionalProperties_ + : additionalPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.ref_ = ref_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.defs_ = internalGetDefs().build(DefsDefaultEntryHolder.defaultEntry); } result.bitField0_ |= to_bitField0_; @@ -2191,13 +2281,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Schema other) { } } } + if (other.hasAdditionalProperties()) { + mergeAdditionalProperties(other.getAdditionalProperties()); + } if (!other.getRef().isEmpty()) { ref_ = other.ref_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableDefs().mergeFrom(other.internalGetDefs()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2374,10 +2467,17 @@ public Builder mergeFrom( propertyOrdering_.add(s); break; } // case 202 + case 210: + { + input.readMessage( + getAdditionalPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 210 case 218: { ref_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 218 case 226: @@ -2389,7 +2489,7 @@ public Builder mergeFrom( DefsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableDefs().ensureBuilderMap().put(defs__.getKey(), defs__.getValue()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 226 default: @@ -5395,6 +5495,227 @@ public java.util.List getAnyOfBui return anyOfBuilder_; } + private com.google.protobuf.Value additionalProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + additionalPropertiesBuilder_; + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + public com.google.protobuf.Value getAdditionalProperties() { + if (additionalPropertiesBuilder_ == null) { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } else { + return additionalPropertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.protobuf.Value value) { + if (additionalPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalProperties_ = value; + } else { + additionalPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.protobuf.Value.Builder builderForValue) { + if (additionalPropertiesBuilder_ == null) { + additionalProperties_ = builderForValue.build(); + } else { + additionalPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalProperties(com.google.protobuf.Value value) { + if (additionalPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && additionalProperties_ != null + && additionalProperties_ != com.google.protobuf.Value.getDefaultInstance()) { + getAdditionalPropertiesBuilder().mergeFrom(value); + } else { + additionalProperties_ = value; + } + } else { + additionalPropertiesBuilder_.mergeFrom(value); + } + if (additionalProperties_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalProperties() { + bitField0_ = (bitField0_ & ~0x00400000); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Value.Builder getAdditionalPropertiesBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getAdditionalPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder() { + if (additionalPropertiesBuilder_ != null) { + return additionalPropertiesBuilder_.getMessageOrBuilder(); + } else { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getAdditionalPropertiesFieldBuilder() { + if (additionalPropertiesBuilder_ == null) { + additionalPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getAdditionalProperties(), getParentForChildren(), isClean()); + additionalProperties_ = null; + } + return additionalPropertiesBuilder_; + } + private java.lang.Object ref_ = ""; /** @@ -5520,7 +5841,7 @@ public Builder setRef(java.lang.String value) { throw new NullPointerException(); } ref_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5558,7 +5879,7 @@ public Builder setRef(java.lang.String value) { */ public Builder clearRef() { ref_ = getDefaultInstance().getRef(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -5601,7 +5922,7 @@ public Builder setRefBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ref_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5658,7 +5979,7 @@ public com.google.cloud.aiplatform.v1.Schema build( if (defs_ == null) { defs_ = new com.google.protobuf.MapFieldBuilder<>(defsConverter); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return defs_; } @@ -5762,7 +6083,7 @@ public com.google.cloud.aiplatform.v1.Schema getDefsOrThrow(java.lang.String key } public Builder clearDefs() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableDefs().clear(); return this; } @@ -5790,7 +6111,7 @@ public Builder removeDefs(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDefs() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return internalGetMutableDefs().ensureMessageMap(); } @@ -5814,7 +6135,7 @@ public Builder putDefs(java.lang.String key, com.google.cloud.aiplatform.v1.Sche throw new NullPointerException("map value"); } internalGetMutableDefs().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } @@ -5839,7 +6160,7 @@ public Builder putAllDefs( } } internalGetMutableDefs().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchemaOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchemaOrBuilder.java index f7cc6a32e9b8..e0c9d92e1c75 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchemaOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SchemaOrBuilder.java @@ -743,6 +743,52 @@ com.google.cloud.aiplatform.v1.Schema getPropertiesOrDefault( */ com.google.cloud.aiplatform.v1.SchemaOrBuilder getAnyOfOrBuilder(int index); + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + boolean hasAdditionalProperties(); + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + com.google.protobuf.Value getAdditionalProperties(); + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java index 27fbbd36f01d..053b0944cb80 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java @@ -94,6 +94,16 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { * ADAPTER_SIZE_ONE = 1; */ ADAPTER_SIZE_ONE(1), + /** + * + * + *
+     * Adapter size 2.
+     * 
+ * + * ADAPTER_SIZE_TWO = 6; + */ + ADAPTER_SIZE_TWO(6), /** * * @@ -124,6 +134,16 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { * ADAPTER_SIZE_SIXTEEN = 4; */ ADAPTER_SIZE_SIXTEEN(4), + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 5; + */ + ADAPTER_SIZE_THIRTY_TWO(5), UNRECOGNIZED(-1), ; @@ -149,6 +169,17 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADAPTER_SIZE_ONE_VALUE = 1; + /** + * + * + *
+     * Adapter size 2.
+     * 
+ * + * ADAPTER_SIZE_TWO = 6; + */ + public static final int ADAPTER_SIZE_TWO_VALUE = 6; + /** * * @@ -182,6 +213,17 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADAPTER_SIZE_SIXTEEN_VALUE = 4; + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 5; + */ + public static final int ADAPTER_SIZE_THIRTY_TWO_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -210,12 +252,16 @@ public static AdapterSize forNumber(int value) { return ADAPTER_SIZE_UNSPECIFIED; case 1: return ADAPTER_SIZE_ONE; + case 6: + return ADAPTER_SIZE_TWO; case 2: return ADAPTER_SIZE_FOUR; case 3: return ADAPTER_SIZE_EIGHT; case 4: return ADAPTER_SIZE_SIXTEEN; + case 5: + return ADAPTER_SIZE_THIRTY_TWO; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java index eeafb4934377..37772f2a8b6c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStats.java @@ -42,6 +42,7 @@ private SupervisedTuningDataStats(com.google.protobuf.GeneratedMessageV3.Builder private SupervisedTuningDataStats() { userDatasetExamples_ = java.util.Collections.emptyList(); truncatedExampleIndices_ = emptyLongList(); + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -121,7 +122,7 @@ public long getTotalTuningCharacterCount() { * * * @deprecated google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=221 + * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=228 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -448,11 +449,13 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getUserDatasetExamplesOrB * * *
-   * The number of examples in the dataset that have been truncated by any
-   * amount.
+   * Output only. The number of examples in the dataset that have been dropped.
+   * An example can be dropped for reasons including: too many tokens, contains
+   * an invalid image, contains too many images, etc.
    * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -470,11 +473,13 @@ public long getTotalTruncatedExampleCount() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -487,11 +492,13 @@ public java.util.List getTruncatedExampleIndicesList() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -503,11 +510,13 @@ public int getTruncatedExampleIndicesCount() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. @@ -518,6 +527,86 @@ public long getTruncatedExampleIndices(int index) { private int truncatedExampleIndicesMemoizedSerializedSize = -1; + public static final int DROPPED_EXAMPLE_REASONS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList droppedExampleReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + public com.google.protobuf.ProtocolStringList getDroppedExampleReasonsList() { + return droppedExampleReasons_; + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + public int getDroppedExampleReasonsCount() { + return droppedExampleReasons_.size(); + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + public java.lang.String getDroppedExampleReasons(int index) { + return droppedExampleReasons_.get(index); + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + public com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index) { + return droppedExampleReasons_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -570,6 +659,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < truncatedExampleIndices_.size(); i++) { output.writeInt64NoTag(truncatedExampleIndices_.getLong(i)); } + for (int i = 0; i < droppedExampleReasons_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 12, droppedExampleReasons_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -632,6 +725,14 @@ public int getSerializedSize() { } truncatedExampleIndicesMemoizedSerializedSize = dataSize; } + { + int dataSize = 0; + for (int i = 0; i < droppedExampleReasons_.size(); i++) { + dataSize += computeStringSizeNoTag(droppedExampleReasons_.getRaw(i)); + } + size += dataSize; + size += 1 * getDroppedExampleReasonsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -673,6 +774,7 @@ public boolean equals(final java.lang.Object obj) { if (getTotalTruncatedExampleCount() != other.getTotalTruncatedExampleCount()) return false; if (!getTruncatedExampleIndicesList().equals(other.getTruncatedExampleIndicesList())) return false; + if (!getDroppedExampleReasonsList().equals(other.getDroppedExampleReasonsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -716,6 +818,10 @@ public int hashCode() { hash = (37 * hash) + TRUNCATED_EXAMPLE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getTruncatedExampleIndicesList().hashCode(); } + if (getDroppedExampleReasonsCount() > 0) { + hash = (37 * hash) + DROPPED_EXAMPLE_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getDroppedExampleReasonsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -898,6 +1004,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000100); totalTruncatedExampleCount_ = 0L; truncatedExampleIndices_ = emptyLongList(); + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -992,6 +1099,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.SupervisedTuningDataSt truncatedExampleIndices_.makeImmutable(); result.truncatedExampleIndices_ = truncatedExampleIndices_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + droppedExampleReasons_.makeImmutable(); + result.droppedExampleReasons_ = droppedExampleReasons_; + } result.bitField0_ |= to_bitField0_; } @@ -1106,6 +1217,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SupervisedTuningDataStat } onChanged(); } + if (!other.droppedExampleReasons_.isEmpty()) { + if (droppedExampleReasons_.isEmpty()) { + droppedExampleReasons_ = other.droppedExampleReasons_; + bitField0_ |= 0x00000800; + } else { + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.addAll(other.droppedExampleReasons_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1221,6 +1342,13 @@ public Builder mergeFrom( input.popLimit(limit); break; } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(s); + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1373,7 +1501,7 @@ public Builder clearTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=221 + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=228 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1395,7 +1523,7 @@ public long getTotalBillableCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=221 + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=228 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ @@ -1421,7 +1549,7 @@ public Builder setTotalBillableCharacterCount(long value) { * * @deprecated * google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=221 + * deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=228 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2633,11 +2761,13 @@ public com.google.cloud.aiplatform.v1.Content.Builder addUserDatasetExamplesBuil * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -2650,11 +2780,13 @@ public long getTotalTruncatedExampleCount() { * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The totalTruncatedExampleCount to set. * @return This builder for chaining. @@ -2671,11 +2803,13 @@ public Builder setTotalTruncatedExampleCount(long value) { * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2699,11 +2833,13 @@ private void ensureTruncatedExampleIndicesIsMutable() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -2716,11 +2852,13 @@ public java.util.List getTruncatedExampleIndicesList() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -2732,11 +2870,13 @@ public int getTruncatedExampleIndicesCount() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. @@ -2749,11 +2889,13 @@ public long getTruncatedExampleIndices(int index) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. * @param value The truncatedExampleIndices to set. @@ -2772,11 +2914,13 @@ public Builder setTruncatedExampleIndices(int index, long value) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The truncatedExampleIndices to add. * @return This builder for chaining. @@ -2794,11 +2938,13 @@ public Builder addTruncatedExampleIndices(long value) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param values The truncatedExampleIndices to add. * @return This builder for chaining. @@ -2816,11 +2962,13 @@ public Builder addAllTruncatedExampleIndices( * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2831,6 +2979,217 @@ public Builder clearTruncatedExampleIndices() { return this; } + private com.google.protobuf.LazyStringArrayList droppedExampleReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDroppedExampleReasonsIsMutable() { + if (!droppedExampleReasons_.isModifiable()) { + droppedExampleReasons_ = + new com.google.protobuf.LazyStringArrayList(droppedExampleReasons_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + public com.google.protobuf.ProtocolStringList getDroppedExampleReasonsList() { + droppedExampleReasons_.makeImmutable(); + return droppedExampleReasons_; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + public int getDroppedExampleReasonsCount() { + return droppedExampleReasons_.size(); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + public java.lang.String getDroppedExampleReasons(int index) { + return droppedExampleReasons_.get(index); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + public com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index) { + return droppedExampleReasons_.getByteString(index); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The droppedExampleReasons to set. + * @return This builder for chaining. + */ + public Builder setDroppedExampleReasons(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addDroppedExampleReasons(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addAllDroppedExampleReasons(java.lang.Iterable values) { + ensureDroppedExampleReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, droppedExampleReasons_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDroppedExampleReasons() { + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addDroppedExampleReasonsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(value); + bitField0_ |= 0x00000800; + 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-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java index 26b6cc2adf74..472841287997 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningDataStatsOrBuilder.java @@ -64,7 +64,7 @@ public interface SupervisedTuningDataStatsOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=221 + * is deprecated. See google/cloud/aiplatform/v1/tuning_job.proto;l=228 * @return The totalBillableCharacterCount. */ @java.lang.Deprecated @@ -301,11 +301,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * The number of examples in the dataset that have been truncated by any
-   * amount.
+   * Output only. The number of examples in the dataset that have been dropped.
+   * An example can be dropped for reasons including: too many tokens, contains
+   * an invalid image, contains too many images, etc.
    * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -315,11 +317,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -329,11 +333,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -343,14 +349,82 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. */ long getTruncatedExampleIndices(int index); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + java.util.List getDroppedExampleReasonsList(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + int getDroppedExampleReasonsCount(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + java.lang.String getDroppedExampleReasons(int index); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java index 0c838ed056e6..b8eb6a2f7bac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java @@ -236,6 +236,27 @@ public com.google.cloud.aiplatform.v1.SupervisedHyperParameters getHyperParamete : hyperParameters_; } + public static final int EXPORT_LAST_CHECKPOINT_ONLY_FIELD_NUMBER = 6; + private boolean exportLastCheckpointOnly_ = false; + + /** + * + * + *
+   * Optional. If set to true, disable intermediate checkpoints for SFT and only
+   * the last checkpoint will be exported. Otherwise, enable intermediate
+   * checkpoints for SFT. Default is false.
+   * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + @java.lang.Override + public boolean getExportLastCheckpointOnly() { + return exportLastCheckpointOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -259,6 +280,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getHyperParameters()); } + if (exportLastCheckpointOnly_ != false) { + output.writeBool(6, exportLastCheckpointOnly_); + } getUnknownFields().writeTo(output); } @@ -277,6 +301,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHyperParameters()); } + if (exportLastCheckpointOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, exportLastCheckpointOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -299,6 +326,7 @@ public boolean equals(final java.lang.Object obj) { if (hasHyperParameters()) { if (!getHyperParameters().equals(other.getHyperParameters())) return false; } + if (getExportLastCheckpointOnly() != other.getExportLastCheckpointOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,6 +346,8 @@ public int hashCode() { hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getHyperParameters().hashCode(); } + hash = (37 * hash) + EXPORT_LAST_CHECKPOINT_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExportLastCheckpointOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -474,6 +504,7 @@ public Builder clear() { hyperParametersBuilder_.dispose(); hyperParametersBuilder_ = null; } + exportLastCheckpointOnly_ = false; return this; } @@ -522,6 +553,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.SupervisedTuningSpec r hyperParametersBuilder_ == null ? hyperParameters_ : hyperParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.exportLastCheckpointOnly_ = exportLastCheckpointOnly_; + } result.bitField0_ |= to_bitField0_; } @@ -584,6 +618,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SupervisedTuningSpec oth if (other.hasHyperParameters()) { mergeHyperParameters(other.getHyperParameters()); } + if (other.getExportLastCheckpointOnly() != false) { + setExportLastCheckpointOnly(other.getExportLastCheckpointOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -628,6 +665,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 48: + { + exportLastCheckpointOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1097,6 +1140,68 @@ public Builder clearHyperParameters() { return hyperParametersBuilder_; } + private boolean exportLastCheckpointOnly_; + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + @java.lang.Override + public boolean getExportLastCheckpointOnly() { + return exportLastCheckpointOnly_; + } + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The exportLastCheckpointOnly to set. + * @return This builder for chaining. + */ + public Builder setExportLastCheckpointOnly(boolean value) { + + exportLastCheckpointOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExportLastCheckpointOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + exportLastCheckpointOnly_ = 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-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java index 35d78dd610c1..92e0de88187e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java @@ -122,4 +122,19 @@ public interface SupervisedTuningSpecOrBuilder * */ com.google.cloud.aiplatform.v1.SupervisedHyperParametersOrBuilder getHyperParametersOrBuilder(); + + /** + * + * + *
+   * Optional. If set to true, disable intermediate checkpoints for SFT and only
+   * the last checkpoint will be exported. Otherwise, enable intermediate
+   * checkpoints for SFT. Default is false.
+   * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + boolean getExportLastCheckpointOnly(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModel.java index b298884c6268..bf73f097bd3d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModel.java @@ -23,7 +23,7 @@ * * *
- * The Model Registry Model and Online Prediction Endpoint assiociated with
+ * The Model Registry Model and Online Prediction Endpoint associated with
  * this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
  * 
* @@ -43,6 +43,7 @@ private TunedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TunedModel() { model_ = ""; endpoint_ = ""; + checkpoints_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -184,6 +185,103 @@ public com.google.protobuf.ByteString getEndpointBytes() { } } + public static final int CHECKPOINTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List checkpoints_; + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getCheckpointsList() { + return checkpoints_; + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCheckpointsOrBuilderList() { + return checkpoints_; + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCheckpointsCount() { + return checkpoints_.size(); + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint getCheckpoints(int index) { + return checkpoints_.get(index); + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder getCheckpointsOrBuilder( + int index) { + return checkpoints_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -204,6 +302,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpoint_); } + for (int i = 0; i < checkpoints_.size(); i++) { + output.writeMessage(3, checkpoints_.get(i)); + } getUnknownFields().writeTo(output); } @@ -219,6 +320,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpoint_); } + for (int i = 0; i < checkpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, checkpoints_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -237,6 +341,7 @@ public boolean equals(final java.lang.Object obj) { if (!getModel().equals(other.getModel())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getCheckpointsList().equals(other.getCheckpointsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,6 +357,10 @@ public int hashCode() { hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); + if (getCheckpointsCount() > 0) { + hash = (37 * hash) + CHECKPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -357,7 +466,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The Model Registry Model and Online Prediction Endpoint assiociated with
+   * The Model Registry Model and Online Prediction Endpoint associated with
    * this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -395,6 +504,13 @@ public Builder clear() { bitField0_ = 0; model_ = ""; endpoint_ = ""; + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + } else { + checkpoints_ = null; + checkpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -422,6 +538,7 @@ public com.google.cloud.aiplatform.v1.TunedModel build() { public com.google.cloud.aiplatform.v1.TunedModel buildPartial() { com.google.cloud.aiplatform.v1.TunedModel result = new com.google.cloud.aiplatform.v1.TunedModel(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -429,6 +546,18 @@ public com.google.cloud.aiplatform.v1.TunedModel buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.TunedModel result) { + if (checkpointsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + checkpoints_ = java.util.Collections.unmodifiableList(checkpoints_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.checkpoints_ = checkpoints_; + } else { + result.checkpoints_ = checkpointsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1.TunedModel result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -494,6 +623,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TunedModel other) { bitField0_ |= 0x00000002; onChanged(); } + if (checkpointsBuilder_ == null) { + if (!other.checkpoints_.isEmpty()) { + if (checkpoints_.isEmpty()) { + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCheckpointsIsMutable(); + checkpoints_.addAll(other.checkpoints_); + } + onChanged(); + } + } else { + if (!other.checkpoints_.isEmpty()) { + if (checkpointsBuilder_.isEmpty()) { + checkpointsBuilder_.dispose(); + checkpointsBuilder_ = null; + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + checkpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCheckpointsFieldBuilder() + : null; + } else { + checkpointsBuilder_.addAllMessages(other.checkpoints_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -532,6 +688,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1.TunedModelCheckpoint m = + input.readMessage( + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.parser(), + extensionRegistry); + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(m); + } else { + checkpointsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -803,6 +973,454 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List checkpoints_ = + java.util.Collections.emptyList(); + + private void ensureCheckpointsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + checkpoints_ = + new java.util.ArrayList( + checkpoints_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder> + checkpointsBuilder_; + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCheckpointsList() { + if (checkpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(checkpoints_); + } else { + return checkpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCheckpointsCount() { + if (checkpointsBuilder_ == null) { + return checkpoints_.size(); + } else { + return checkpointsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint getCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.set(index, value); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints(com.google.cloud.aiplatform.v1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(index, value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCheckpoints( + java.lang.Iterable values) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, checkpoints_); + onChanged(); + } else { + checkpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCheckpoints() { + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + checkpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.remove(index); + onChanged(); + } else { + checkpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder getCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder getCheckpointsOrBuilder( + int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCheckpointsOrBuilderList() { + if (checkpointsBuilder_ != null) { + return checkpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(checkpoints_); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder addCheckpointsBuilder() { + return getCheckpointsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.TunedModelCheckpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder addCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.TunedModelCheckpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCheckpointsBuilderList() { + return getCheckpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder> + getCheckpointsFieldBuilder() { + if (checkpointsBuilder_ == null) { + checkpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder>( + checkpoints_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + checkpoints_ = null; + } + return checkpointsBuilder_; + } + @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-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpoint.java new file mode 100644 index 000000000000..56360cacf2df --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpoint.java @@ -0,0 +1,1024 @@ +/* + * 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/tuning_job.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * TunedModelCheckpoint for the Tuned Model of a Tuning Job.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.TunedModelCheckpoint} + */ +public final class TunedModelCheckpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.TunedModelCheckpoint) + TunedModelCheckpointOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TunedModelCheckpoint.newBuilder() to construct. + private TunedModelCheckpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TunedModelCheckpoint() { + checkpointId_ = ""; + endpoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TunedModelCheckpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.class, + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder.class); + } + + public static final int CHECKPOINT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + @java.lang.Override + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } + } + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_FIELD_NUMBER = 2; + private long epoch_ = 0L; + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private long step_ = 0L; + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + public static final int ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = 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(checkpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, checkpointId_); + } + if (epoch_ != 0L) { + output.writeInt64(2, epoch_); + } + if (step_ != 0L) { + output.writeInt64(3, step_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpoint_); + } + 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(checkpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, checkpointId_); + } + if (epoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, epoch_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, step_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpoint_); + } + 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.TunedModelCheckpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.TunedModelCheckpoint other = + (com.google.cloud.aiplatform.v1.TunedModelCheckpoint) obj; + + if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (getEpoch() != other.getEpoch()) return false; + if (getStep() != other.getStep()) return false; + if (!getEndpoint().equals(other.getEndpoint())) 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) + CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointId().hashCode(); + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEpoch()); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStep()); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint 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.TunedModelCheckpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint parseFrom( + com.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.TunedModelCheckpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint 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.TunedModelCheckpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint 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.TunedModelCheckpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint parseDelimitedFrom( + java.io.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.TunedModelCheckpoint 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.TunedModelCheckpoint 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.TunedModelCheckpoint 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; + } + + /** + * + * + *
+   * TunedModelCheckpoint for the Tuned Model of a Tuning Job.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.TunedModelCheckpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.TunedModelCheckpoint) + com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.class, + com.google.cloud.aiplatform.v1.TunedModelCheckpoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.TunedModelCheckpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkpointId_ = ""; + epoch_ = 0L; + step_ = 0L; + endpoint_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.TunedModelCheckpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint build() { + com.google.cloud.aiplatform.v1.TunedModelCheckpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.TunedModelCheckpoint buildPartial() { + com.google.cloud.aiplatform.v1.TunedModelCheckpoint result = + new com.google.cloud.aiplatform.v1.TunedModelCheckpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.TunedModelCheckpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkpointId_ = checkpointId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.epoch_ = epoch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endpoint_ = endpoint_; + } + } + + @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.TunedModelCheckpoint) { + return mergeFrom((com.google.cloud.aiplatform.v1.TunedModelCheckpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.TunedModelCheckpoint other) { + if (other == com.google.cloud.aiplatform.v1.TunedModelCheckpoint.getDefaultInstance()) + return this; + if (!other.getCheckpointId().isEmpty()) { + checkpointId_ = other.checkpointId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEpoch() != 0L) { + setEpoch(other.getEpoch()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + checkpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + epoch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + step_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearCheckpointId() { + checkpointId_ = getDefaultInstance().getCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The bytes for checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long epoch_; + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @param value The epoch to set. + * @return This builder for chaining. + */ + public Builder setEpoch(long value) { + + epoch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return This builder for chaining. + */ + public Builder clearEpoch() { + bitField0_ = (bitField0_ & ~0x00000002); + epoch_ = 0L; + onChanged(); + return this; + } + + private long step_; + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.TunedModelCheckpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.TunedModelCheckpoint) + private static final com.google.cloud.aiplatform.v1.TunedModelCheckpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.TunedModelCheckpoint(); + } + + public static com.google.cloud.aiplatform.v1.TunedModelCheckpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TunedModelCheckpoint 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.TunedModelCheckpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpointOrBuilder.java new file mode 100644 index 000000000000..f6d53d28cfb6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelCheckpointOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/tuning_job.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface TunedModelCheckpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.TunedModelCheckpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + java.lang.String getCheckpointId(); + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + com.google.protobuf.ByteString getCheckpointIdBytes(); + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + long getEpoch(); + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + long getStep(); + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelOrBuilder.java index 9aa35078510d..17fc95ac3e2e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TunedModelOrBuilder.java @@ -87,4 +87,80 @@ public interface TunedModelOrBuilder * @return The bytes for endpoint. */ com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCheckpointsList(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.TunedModelCheckpoint getCheckpoints(int index); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCheckpointsCount(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCheckpointsOrBuilderList(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder getCheckpointsOrBuilder(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java index 61ac3d8b8169..a5abef18b170 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java @@ -182,7 +182,8 @@ public TuningSpecCase getTuningSpecCase() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -197,7 +198,8 @@ public boolean hasBaseModel() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -225,7 +227,8 @@ public java.lang.String getBaseModel() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -1006,7 +1009,7 @@ public com.google.protobuf.ByteString getExperimentBytes() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -1025,7 +1028,7 @@ public boolean hasTunedModel() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -1046,7 +1049,7 @@ public com.google.cloud.aiplatform.v1.TunedModel getTunedModel() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -2174,7 +2177,8 @@ public Builder clearTuningSpec() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2190,7 +2194,8 @@ public boolean hasBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2219,7 +2224,8 @@ public java.lang.String getBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2248,7 +2254,8 @@ public com.google.protobuf.ByteString getBaseModelBytes() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2270,7 +2277,8 @@ public Builder setBaseModel(java.lang.String value) { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2290,7 +2298,8 @@ public Builder clearBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -4451,7 +4460,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4469,7 +4478,7 @@ public boolean hasTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4493,7 +4502,7 @@ public com.google.cloud.aiplatform.v1.TunedModel getTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4519,7 +4528,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1.TunedModel value) { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4543,7 +4552,7 @@ public Builder setTunedModel( * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4574,7 +4583,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1.TunedModel value) * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4597,7 +4606,7 @@ public Builder clearTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4615,7 +4624,7 @@ public com.google.cloud.aiplatform.v1.TunedModel.Builder getTunedModelBuilder() * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -4637,7 +4646,7 @@ public com.google.cloud.aiplatform.v1.TunedModelOrBuilder getTunedModelOrBuilder * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java index 7c693683b6a2..268a355f5d98 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java @@ -28,7 +28,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -41,7 +42,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -54,7 +56,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -585,7 +588,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -601,7 +604,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -617,7 +620,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java index 82d01c002cb5..f3859a7fd8b3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_TunedModelRef_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_TunedModelRef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -119,12 +123,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oject}/locations/{location}/tuningJobs/{tuning_job}*\n" + "tuningJobs2\ttuningJobB\016\n" + "\014source_modelB\r\n" - + "\013tuning_spec\"\202\001\n\n" + + "\013tuning_spec\"\316\001\n\n" + "TunedModel\0226\n" + "\005model\030\001 \001(\tB\'\340A\003\372A!\n" + "\037aiplatform.googleapis.com/Model\022<\n" + "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n" - + "\"aiplatform.googleapis.com/Endpoint\"\362\002\n" + + "\"aiplatform.googleapis.com/Endpoint\022J\n" + + "\013checkpoints\030\003" + + " \003(\01320.google.cloud.aiplatform.v1.TunedModelCheckpointB\003\340A\003\"\362\002\n" + "#SupervisedTuningDatasetDistribution\022\020\n" + "\003sum\030\001 \001(\003B\003\340A\003\022\031\n" + "\014billable_sum\030\t \001(\003B\003\340A\003\022\020\n" @@ -134,49 +140,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022c\n" - + "\007buckets\030\010 \003(\0132M.google.cloud.aiplatform.v1" - + ".SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + + "\007buckets\030\010 \003(\0132M.google.cloud.aiplatform.v1.Sup" + + "ervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + "DatasetBucket\022\022\n" + "\005count\030\001 \001(\001B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" - + "\005right\030\003 \001(\001B\003\340A\003\"\314\005\n" + + "\005right\030\003 \001(\001B\003\340A\003\"\374\005\n" + "\031SupervisedTuningDataStats\022)\n" + "\034tuning_dataset_example_count\030\001 \001(\003B\003\340A\003\022)\n" + "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022-\n" + "\036total_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n" + "\032total_billable_token_count\030\t \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022k\n" - + "\035user_input_token_distribution\030\005" - + " \001(\0132?.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022l\n" - + "\036user_output_token_distribution\030\006 \001(\0132?.g" - + "oogle.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022s\n" - + "%user_message_per_example_distribution\030\007 \001(\0132?.goog" - + "le.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022G\n" + + "\035user_input_token_distribution\030\005 \001" + + "(\0132?.google.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022l\n" + + "\036user_output_token_distribution\030\006 \001(\0132?.googl" + + "e.cloud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022s\n" + + "%user_message_per_example_distribution\030\007 \001(\0132?.google.c" + + "loud.aiplatform.v1.SupervisedTuningDatasetDistributionB\003\340A\003\022G\n" + "\025user_dataset_examples\030\010" - + " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\003\022%\n" + + " \003(\0132#.google.cloud.aiplatform.v1.ContentB\003\340A\003\022*\n" + "\035total_truncated_example_count\030\n" - + " \001(\003\022!\n" - + "\031truncated_example_indices\030\013 \003(\003\"\205\001\n" + + " \001(\003B\003\340A\003\022&\n" + + "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n" + + "\027dropped_example_reasons\030\014 \003(\tB\003\340A\003\"\205\001\n" + "\017TuningDataStats\022]\n" - + "\034supervised_tuning_data_stats\030\001 \001(\01325.google.cl" - + "oud.aiplatform.v1.SupervisedTuningDataStatsH\000B\023\n" - + "\021tuning_data_stats\"\307\002\n" + + "\034supervised_tuning_data_stats\030\001 \001(\01325.googl" + + "e.cloud.aiplatform.v1.SupervisedTuningDataStatsH\000B\023\n" + + "\021tuning_data_stats\"\372\002\n" + "\031SupervisedHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\\\n" - + "\014adapter_size\030\003 \001(\0162A.google.cloud.a" - + "iplatform.v1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\"\212\001\n" + + "\014adapter_size\030\003 \001(\0162A.google.clo" + + "ud.aiplatform.v1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\"\275\001\n" + "\013AdapterSize\022\034\n" + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n" - + "\020ADAPTER_SIZE_ONE\020\001\022\025\n" + + "\020ADAPTER_SIZE_ONE\020\001\022\024\n" + + "\020ADAPTER_SIZE_TWO\020\006\022\025\n" + "\021ADAPTER_SIZE_FOUR\020\002\022\026\n" + "\022ADAPTER_SIZE_EIGHT\020\003\022\030\n" - + "\024ADAPTER_SIZE_SIXTEEN\020\004\"\264\001\n" + + "\024ADAPTER_SIZE_SIXTEEN\020\004\022\033\n" + + "\027ADAPTER_SIZE_THIRTY_TWO\020\005\"\336\001\n" + "\024SupervisedTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022T\n" - + "\020hyper_parameters\030\003 \001(\0132" - + "5.google.cloud.aiplatform.v1.SupervisedHyperParametersB\003\340A\001\"\343\001\n\r" + + "\020hyper_parameters\030\003" + + " \001(\01325.google.cloud.aiplatform.v1.SupervisedHyperParametersB\003\340A\001\022(\n" + + "\033export_last_checkpoint_only\030\006 \001(\010B\003\340A\001\"\343\001\n" + + "\r" + "TunedModelRef\022;\n" + "\013tuned_model\030\001 \001(\tB$\372A!\n" + "\037aiplatform.googleapis.com/ModelH\000\022>\n\n" @@ -184,11 +195,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#aiplatform.googleapis.com/TuningJobH\000\022B\n" + "\014pipeline_job\030\003 \001(\tB*\372A\'\n" + "%aiplatform.googleapis.com/PipelineJobH\000B\021\n" - + "\017tuned_model_refB\314\001\n" - + "\036com.google.cloud.aiplatform.v1B\016TuningJobProtoP\001Z>cloud.google.com" - + "/go/aiplatform/apiv1/aiplatformpb;aiplat" - + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" - + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\017tuned_model_ref\"\\\n" + + "\024TunedModelCheckpoint\022\025\n\r" + + "checkpoint_id\030\001 \001(\t\022\r\n" + + "\005epoch\030\002 \001(\003\022\014\n" + + "\004step\030\003 \001(\003\022\020\n" + + "\010endpoint\030\004 \001(\tB\314\001\n" + + "\036com.google.cloud.aiplatform.v1B\016TuningJobProtoP\001Z>cloud.google.com/go/aipla" + + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032" + + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou" + + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -242,7 +258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_TunedModel_descriptor, new java.lang.String[] { - "Model", "Endpoint", + "Model", "Endpoint", "Checkpoints", }); internal_static_google_cloud_aiplatform_v1_SupervisedTuningDatasetDistribution_descriptor = getDescriptor().getMessageTypes().get(2); @@ -279,6 +295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserDatasetExamples", "TotalTruncatedExampleCount", "TruncatedExampleIndices", + "DroppedExampleReasons", }); internal_static_google_cloud_aiplatform_v1_TuningDataStats_descriptor = getDescriptor().getMessageTypes().get(4); @@ -302,7 +319,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SupervisedTuningSpec_descriptor, new java.lang.String[] { - "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", + "TrainingDatasetUri", + "ValidationDatasetUri", + "HyperParameters", + "ExportLastCheckpointOnly", }); internal_static_google_cloud_aiplatform_v1_TunedModelRef_descriptor = getDescriptor().getMessageTypes().get(7); @@ -312,6 +332,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TunedModel", "TuningJob", "PipelineJob", "TunedModelRef", }); + internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_TunedModelCheckpoint_descriptor, + new java.lang.String[] { + "CheckpointId", "Epoch", "Step", "Endpoint", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java index 3dbe7808d0e8..7add795017e1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagDataProto.java @@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,7 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005model\030\002 \001(\tB\'\340A\003\372A!\n" + "\037aiplatform.googleapis.com/Model\022\035\n" + "\020model_version_id\030\003 \001(\tB\003\340A\003B\016\n" - + "\014model_config\"\251\004\n" + + "\014model_config\"\224\006\n" + "\021RagVectorDbConfig\022T\n" + "\016rag_managed_db\030\001 \001(\0132:.go" + "ogle.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDbH\000\022J\n" @@ -146,8 +154,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\0132@.google.cloud.aiplatform.v1.RagVectorDbConfig.VertexVectorSearchH\000\0225\n" + "\010api_auth\030\005 \001(\0132#.google.cloud.aiplatform.v1.ApiAuth\022_\n" + "\032rag_embedding_model_config\030\007 \001" - + "(\01323.google.cloud.aiplatform.v1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\016\n" - + "\014RagManagedDb\032\036\n" + + "(\01323.google.cloud.aiplatform.v1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\370\001\n" + + "\014RagManagedDb\022M\n" + + "\003knn\030\001 \001(\0132>.google.cloud.aiplatform." + + "v1.RagVectorDbConfig.RagManagedDb.KNNH\000\022M\n" + + "\003ann\030\002 \001(\0132>.google.cloud.aiplatform.v" + + "1.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" + + "leaf_count\030\002 \001(\005B\024\n" + + "\022retrieval_strategy\032\036\n" + "\010Pinecone\022\022\n\n" + "index_name\030\001 \001(\t\032;\n" + "\022VertexVectorSearch\022\026\n" @@ -165,8 +182,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024VertexAiSearchConfig\022\026\n" + "\016serving_config\030\001 \001(\t\"\253\001\n" + "\014CorpusStatus\022B\n" - + "\005state\030\001 \001(\0162..google.cl" - + "oud.aiplatform.v1.CorpusStatus.StateB\003\340A\003\022\031\n" + + "\005state\030\001" + + " \001(\0162..google.cloud.aiplatform.v1.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" @@ -177,32 +194,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020vector_db_config\030\t" + " \001(\0132-.google.cloud.aiplatform.v1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022[\n" + "\027vertex_ai_search_config\030\n" - + " \001(\01320.google.cloud.aipl" - + "atform.v1.VertexAiSearchConfigB\006\340A\001\340A\005H\000\022\021\n" + + " \001(\01320.google.cloud.aiplatform.v1.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\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\022D\n\r" - + "corpus_status\030\010 " - + "\001(\0132(.google.cloud.aiplatform.v1.CorpusStatusB\003\340A\003:\200\001\352A}\n" - + "#aiplatform.googleapis." - + "com/RagCorpus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n" + + "corpus_status\030\010 \001(\0132(" + + ".google.cloud.aiplatform.v1.CorpusStatusB\003\340A\003:\200\001\352A}\n" + + "#aiplatform.googleapis.com/R" + + "agCorpus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n" + "ragCorpora2\tragCorpusB\020\n" + "\016backend_config\"\334\006\n" + "\007RagFile\022@\n\n" + "gcs_source\030\010" + " \001(\0132%.google.cloud.aiplatform.v1.GcsSourceB\003\340A\003H\000\022Q\n" - + "\023google_drive_source\030\t \001(\0132-.google.clou" - + "d.aiplatform.v1.GoogleDriveSourceB\003\340A\003H\000\022S\n" + + "\023google_drive_source\030\t" + + " \001(\0132-.google.cloud.aiplatform.v1.GoogleDriveSourceB\003\340A\003H\000\022S\n" + "\024direct_upload_source\030\n" + " \001(\0132..google.cloud.aiplatform.v1.DirectUploadSourceB\003\340A\003H\000\022?\n" + "\014slack_source\030\013" + " \001(\0132\'.google.cloud.aiplatform.v1.SlackSourceH\000\022=\n" + "\013jira_source\030\014 \001(\0132&.google.cloud.aiplatform.v1.JiraSourceH\000\022L\n" - + "\023share_point_sources\030\016 \001" - + "(\0132-.google.cloud.aiplatform.v1.SharePointSourcesH\000\022\021\n" + + "\023share_point_sources\030\016 \001(\0132-." + + "google.cloud.aiplatform.v1.SharePointSourcesH\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\0224\n" @@ -210,21 +226,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" + "\013file_status\030\r" + " \001(\0132&.google.cloud.aiplatform.v1.FileStatusB\003\340A\003:\217\001\352A\213\001\n" - + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/" - + "locations/{location}/ragCorpora/{rag_cor" - + "pus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/locat" + + "ions/{location}/ragCorpora/{rag_corpus}/" + + "ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + "\017rag_file_source\"\240\001\n" + "\010RagChunk\022\014\n" + "\004text\030\001 \001(\t\022E\n" - + "\tpage_span\030\002 \001(\0132-.google.cl" - + "oud.aiplatform.v1.RagChunk.PageSpanH\000\210\001\001\0321\n" + + "\tpage_span\030\002" + + " \001(\0132-.google.cloud.aiplatform.v1.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\"\324\001\n" + "\025RagFileChunkingConfig\022f\n" - + "\025fixed_length_chunking\030\003 \001" - + "(\0132E.google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingH\000\032@\n" + + "\025fixed_length_chunking\030\003 \001(\0132E." + + "google.cloud.aiplatform.v1.RagFileChunkingConfig.FixedLengthChunkingH\000\032@\n" + "\023FixedLengthChunking\022\022\n\n" + "chunk_size\030\001 \001(\005\022\025\n\r" + "chunk_overlap\030\002 \001(\005B\021\n" @@ -233,51 +249,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030rag_file_chunking_config\030\001" + " \001(\01321.google.cloud.aiplatform.v1.RagFileChunkingConfig\"\376\002\n" + "\024RagFileParsingConfig\022V\n\r" - + "layout_parser\030\004" - + " \001(\0132=.google.cloud.aiplatform.v1.RagFileParsingConfig.LayoutParserH\000\022P\n\n" + + "layout_parser\030\004 \001(\0132" + + "=.google.cloud.aiplatform.v1.RagFileParsingConfig.LayoutParserH\000\022P\n\n" + "llm_parser\030\005" + " \001(\0132:.google.cloud.aiplatform.v1.RagFileParsingConfig.LlmParserH\000\032L\n" + "\014LayoutParser\022\026\n" + "\016processor_name\030\001 \001(\t\022$\n" + "\034max_parsing_requests_per_min\030\002 \001(\005\032d\n" - + "\tLlmParser\022\022\n\n" + + "\tLlmParser\022\022\n" + + "\n" + "model_name\030\001 \001(\t\022$\n" + "\034max_parsing_requests_per_min\030\002 \001(\005\022\035\n" + "\025custom_parsing_prompt\030\003 \001(\tB\010\n" + "\006parser\"v\n" + "\023UploadRagFileConfig\022_\n" - + "\036rag_file_transformation_config\030\003" - + " \001(\01327.google.cloud.aiplatform.v1.RagFileTransformationConfig\"\354\007\n" + + "\036rag_file_transformation_config\030\003 \001(\0132" + + "7.google.cloud.aiplatform.v1.RagFileTransformationConfig\"\207\010\n" + "\024ImportRagFilesConfig\022;\n\n" + "gcs_source\030\002 \001(\0132%.google.cloud.aiplatform.v1.GcsSourceH\000\022L\n" + "\023google_drive_source\030\003" + " \001(\0132-.google.cloud.aiplatform.v1.GoogleDriveSourceH\000\022?\n" - + "\014slack_source\030\006" - + " \001(\0132\'.google.cloud.aiplatform.v1.SlackSourceH\000\022=\n" + + "\014slack_source\030\006 \001" + + "(\0132\'.google.cloud.aiplatform.v1.SlackSourceH\000\022=\n" + "\013jira_source\030\007 \001(\0132&.google.cloud.aiplatform.v1.JiraSourceH\000\022L\n" + "\023share_point_sources\030\r" + " \001(\0132-.google.cloud.aiplatform.v1.SharePointSourcesH\000\022R\n" + "\030partial_failure_gcs_sink\030\013" + " \001(\0132*.google.cloud.aiplatform.v1.GcsDestinationB\002\030\001H\001\022\\\n" - + "\035partial_failure_bigquery_sink\030\014 \001(\0132/.goo" - + "gle.cloud.aiplatform.v1.BigQueryDestinationB\002\030\001H\001\022L\n" - + "\026import_result_gcs_sink\030\016 \001(" - + "\0132*.google.cloud.aiplatform.v1.GcsDestinationH\002\022V\n" - + "\033import_result_bigquery_sink\030\017" - + " \001(\0132/.google.cloud.aiplatform.v1.BigQueryDestinationH\002\022_\n" + + "\035partial_failure_bigquery_sink\030\014 \001(\0132/.google.c" + + "loud.aiplatform.v1.BigQueryDestinationB\002\030\001H\001\022L\n" + + "\026import_result_gcs_sink\030\016 \001(\0132*.g" + + "oogle.cloud.aiplatform.v1.GcsDestinationH\002\022V\n" + + "\033import_result_bigquery_sink\030\017 \001(\0132" + + "/.google.cloud.aiplatform.v1.BigQueryDestinationH\002\022_\n" + "\036rag_file_transformation_config\030\020" + " \001(\01327.google.cloud.aiplatform.v1.RagFileTransformationConfig\022V\n" - + "\027rag_file_parsing_config\030\010 \001(\01320.google.cloud" - + ".aiplatform.v1.RagFileParsingConfigB\003\340A\001\022+\n" - + "\036max_embedding_requests_per_min\030\005 \001(\005B\003\340A\001B\017\n\r" + + "\027rag_file_parsing_config\030\010" + + " \001(\01320.google.cloud.aiplatform.v1.RagFileParsingConfigB\003\340A\001\022+\n" + + "\036max_embedding_requests_per_min\030\005 \001(\005B\003\340A\001\022\031\n" + + "\021rebuild_ann_index\030\023 \001(\010B\017\n\r" + "import_sourceB\026\n" + "\024partial_failure_sinkB\024\n" + "\022import_result_sinkB\320\001\n" - + "\036com.google.cloud.aiplatform.v1B\022VertexRagDataPr" - + "otoP\001Z>cloud.google.com/go/aiplatform/ap" - + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" - + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" - + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\022VertexRagDataProtoP\001Z>cloud.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::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -327,7 +345,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor, + new java.lang.String[] { + "Knn", "Ann", "RetrievalStrategy", + }); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor = + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_KNN_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor = + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_RagManagedDb_ANN_descriptor, + new java.lang.String[] { + "TreeDepth", "LeafCount", + }); internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_Pinecone_descriptor = internal_static_google_cloud_aiplatform_v1_RagVectorDbConfig_descriptor .getNestedTypes() @@ -504,6 +542,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagFileTransformationConfig", "RagFileParsingConfig", "MaxEmbeddingRequestsPerMin", + "RebuildAnnIndex", "ImportSource", "PartialFailureSink", "ImportResultSink", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto index 30a5aa734328..14cf7fa90736 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto @@ -24,6 +24,7 @@ option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; +// LINT: LEGACY_NAMES // Represents a hardware accelerator type. enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. @@ -60,6 +61,12 @@ enum AcceleratorType { // Nvidia H100 Mega 80Gb GPU. NVIDIA_H100_MEGA_80GB = 14; + // Nvidia H200 141Gb GPU. + NVIDIA_H200_141GB = 15; + + // Nvidia B200 GPU. + NVIDIA_B200 = 16; + // TPU v2. TPU_V2 = 6; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto index 6fc973c7ad19..f952b3348df7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/openapi.proto @@ -142,6 +142,11 @@ message Schema { // subschemas in the list. repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Can either be a boolean or an object; controls the presence of + // additional properties. + google.protobuf.Value additional_properties = 26 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Allows indirect references between schema nodes. The value should // be a valid reference to a child of the root `defs`. // diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto index 677debb54f22..dc773999069a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto @@ -42,7 +42,8 @@ message TuningJob { }; oneof source_model { - // The base model that is being tuned, e.g., "gemini-1.0-pro-002". + // The base model that is being tuned. See [Supported + // models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). string base_model = 4; } @@ -118,7 +119,7 @@ message TuningJob { } ]; - // Output only. The tuned model resources assiociated with this + // Output only. The tuned model resources associated with this // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. TunedModel tuned_model = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -142,7 +143,7 @@ message TuningJob { string service_account = 22; } -// The Model Registry Model and Online Prediction Endpoint assiociated with +// The Model Registry Model and Online Prediction Endpoint associated with // this [TuningJob][google.cloud.aiplatform.v1.TuningJob]. message TunedModel { // Output only. The resource name of the TunedModel. Format: @@ -162,6 +163,12 @@ message TunedModel { type: "aiplatform.googleapis.com/Endpoint" } ]; + + // Output only. The checkpoints associated with this TunedModel. + // This field is only populated for tuning jobs that enable intermediate + // checkpoints. + repeated TunedModelCheckpoint checkpoints = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Dataset distribution for Supervised Tuning. @@ -245,13 +252,21 @@ message SupervisedTuningDataStats { repeated Content user_dataset_examples = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The number of examples in the dataset that have been truncated by any - // amount. - int64 total_truncated_example_count = 10; + // Output only. The number of examples in the dataset that have been dropped. + // An example can be dropped for reasons including: too many tokens, contains + // an invalid image, contains too many images, etc. + int64 total_truncated_example_count = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A partial sample of the indices (starting from 1) of the + // dropped examples. + repeated int64 truncated_example_indices = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // A partial sample of the indices (starting from 1) of the truncated - // examples. - repeated int64 truncated_example_indices = 11; + // Output only. For each index in `truncated_example_indices`, the user-facing + // reason why the example was dropped. + repeated string dropped_example_reasons = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The tuning data statistic values for @@ -273,6 +288,9 @@ message SupervisedHyperParameters { // Adapter size 1. ADAPTER_SIZE_ONE = 1; + // Adapter size 2. + ADAPTER_SIZE_TWO = 6; + // Adapter size 4. ADAPTER_SIZE_FOUR = 2; @@ -281,6 +299,9 @@ message SupervisedHyperParameters { // Adapter size 16. ADAPTER_SIZE_SIXTEEN = 4; + + // Adapter size 32. + ADAPTER_SIZE_THIRTY_TWO = 5; } // Optional. Number of complete passes the model makes over the entire @@ -307,6 +328,11 @@ message SupervisedTuningSpec { // Optional. Hyperparameters for SFT. SupervisedHyperParameters hyper_parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, disable intermediate checkpoints for SFT and only + // the last checkpoint will be exported. Otherwise, enable intermediate + // checkpoints for SFT. Default is false. + bool export_last_checkpoint_only = 6 [(google.api.field_behavior) = OPTIONAL]; } // TunedModel Reference for legacy model migration. @@ -331,3 +357,19 @@ message TunedModelRef { }]; } } + +// TunedModelCheckpoint for the Tuned Model of a Tuning Job. +message TunedModelCheckpoint { + // The ID of the checkpoint. + string checkpoint_id = 1; + + // The epoch of the checkpoint. + int64 epoch = 2; + + // The step of the checkpoint. + int64 step = 3; + + // The Endpoint resource name that the checkpoint is deployed to. Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}`. + string endpoint = 4; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto index e4720667ae59..30410294c21c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/vertex_rag_data.proto @@ -76,7 +76,47 @@ message RagEmbeddingModelConfig { // Config for the Vector DB to use for RAG. message RagVectorDbConfig { // The config for the default RAG-managed Vector DB. - message RagManagedDb {} + message RagManagedDb { + // Config for KNN search. + message KNN {} + + // Config for ANN search. + // + // RagManagedDb uses a tree-based structure to partition data and + // facilitate faster searches. As a tradeoff, it requires longer indexing + // time and manual triggering of index rebuild via the ImportRagFiles and + // UpdateRagCorpus API. + message ANN { + // The depth of the tree-based structure. Only depth values of 2 and 3 are + // supported. + // + // Recommended value is 2 if you have if you have O(10K) files in the + // RagCorpus and set this to 3 if more than that. + // + // Default value is 2. + int32 tree_depth = 1; + + // Number of leaf nodes in the tree-based structure. Each leaf node + // contains groups of closely related vectors along with their + // corresponding centroid. + // + // Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). + // + // Default value is 500. + int32 leaf_count = 2; + } + + // Choice of retrieval strategy. + oneof retrieval_strategy { + // Performs a KNN search on RagCorpus. + // Default choice if not specified. + KNN knn = 1; + + // Performs an ANN search on RagCorpus. Use this if you have a lot of + // files (> 10K) in your RagCorpus and want to reduce the search latency. + ANN ann = 2; + } + } // The config for the Pinecone. message Pinecone { @@ -453,4 +493,13 @@ message ImportRagFilesConfig { // If unspecified, a default value of 1,000 QPM would be used. int32 max_embedding_requests_per_min = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Rebuilds the ANN index to optimize for recall on the imported data. + // Only applicable for RagCorpora running on RagManagedDb with + // `retrieval_strategy` set to `ANN`. The rebuild will be performed using the + // existing ANN config set on the RagCorpus. To change the ANN config, please + // use the UpdateRagCorpus API. + // + // Default is false, i.e., index is not rebuilt. + bool rebuild_ann_index = 19; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java index e8e347fbdfa9..44b303006835 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorType.java @@ -23,6 +23,7 @@ * * *
+ * LINT: LEGACY_NAMES
  * Represents a hardware accelerator type.
  * 
* @@ -141,6 +142,26 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * NVIDIA_H100_MEGA_80GB = 14; */ NVIDIA_H100_MEGA_80GB(14), + /** + * + * + *
+   * Nvidia H200 141Gb GPU.
+   * 
+ * + * NVIDIA_H200_141GB = 15; + */ + NVIDIA_H200_141GB(15), + /** + * + * + *
+   * Nvidia B200 GPU.
+   * 
+ * + * NVIDIA_B200 = 16; + */ + NVIDIA_B200(16), /** * * @@ -306,6 +327,28 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NVIDIA_H100_MEGA_80GB_VALUE = 14; + /** + * + * + *
+   * Nvidia H200 141Gb GPU.
+   * 
+ * + * NVIDIA_H200_141GB = 15; + */ + public static final int NVIDIA_H200_141GB_VALUE = 15; + + /** + * + * + *
+   * Nvidia B200 GPU.
+   * 
+ * + * NVIDIA_B200 = 16; + */ + public static final int NVIDIA_B200_VALUE = 16; + /** * * @@ -396,6 +439,10 @@ public static AcceleratorType forNumber(int value) { return NVIDIA_H100_80GB; case 14: return NVIDIA_H100_MEGA_80GB; + case 15: + return NVIDIA_H200_141GB; + case 16: + return NVIDIA_B200; case 6: return TPU_V2; case 7: diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java index 94dfbd96cb50..6a168e042f87 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AcceleratorTypeProto.java @@ -38,14 +38,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n6google/cloud/aiplatform/v1beta1/accele" + "rator_type.proto\022\037google.cloud.aiplatfor" - + "m.v1beta1*\316\002\n\017AcceleratorType\022 \n\034ACCELER" + + "m.v1beta1*\366\002\n\017AcceleratorType\022 \n\034ACCELER" + "ATOR_TYPE_UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_" + "K80\020\001\032\002\010\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVID" + "IA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017" + "NVIDIA_TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010" + "\022\024\n\020NVIDIA_A100_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n" + "\020NVIDIA_H100_80GB\020\r\022\031\n\025NVIDIA_H100_MEGA_" - + "80GB\020\016\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4" + + "80GB\020\016\022\025\n\021NVIDIA_H200_141GB\020\017\022\017\n\013NVIDIA_" + + "B200\020\020\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4" + "_POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\353\001\n#com.googl" + "e.cloud.aiplatform.v1beta1B\024AcceleratorT" + "ypeProtoP\001ZCcloud.google.com/go/aiplatfo" diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java index cbd8fc75d286..8191d729b388 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpec.java @@ -124,8 +124,8 @@ public TeacherModelCase getTeacherModelCase() { * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; @@ -140,8 +140,8 @@ public boolean hasBaseTeacherModel() { * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; @@ -169,8 +169,8 @@ public java.lang.String getBaseTeacherModel() { * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; @@ -1130,8 +1130,8 @@ public Builder clearTeacherModel() { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; @@ -1147,8 +1147,8 @@ public boolean hasBaseTeacherModel() { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; @@ -1177,8 +1177,8 @@ public java.lang.String getBaseTeacherModel() { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; @@ -1207,8 +1207,8 @@ public com.google.protobuf.ByteString getBaseTeacherModelBytes() { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; @@ -1230,8 +1230,8 @@ public Builder setBaseTeacherModel(java.lang.String value) { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; @@ -1251,8 +1251,8 @@ public Builder clearBaseTeacherModel() { * * *
-     * The base teacher model that is being distilled, e.g.,
-     * "gemini-1.0-pro-002".
+     * The base teacher model that is being distilled. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_teacher_model = 5; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java index 076c06ff2ab4..1f66aeeaece8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DistillationSpecOrBuilder.java @@ -28,8 +28,8 @@ public interface DistillationSpecOrBuilder * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; @@ -42,8 +42,8 @@ public interface DistillationSpecOrBuilder * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; @@ -56,8 +56,8 @@ public interface DistillationSpecOrBuilder * * *
-   * The base teacher model that is being distilled, e.g.,
-   * "gemini-1.0-pro-002".
+   * The base teacher model that is being distilled. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_teacher_model = 5; 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 c03bda5c41cf..c8200dbf4234 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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @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=564 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @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=564 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @return The ragFileChunkingConfig. */ @java.lang.Override @@ -1035,6 +1035,31 @@ public int getGlobalMaxEmbeddingRequestsPerMin() { return globalMaxEmbeddingRequestsPerMin_; } + public static final int REBUILD_ANN_INDEX_FIELD_NUMBER = 19; + private boolean rebuildAnnIndex_ = false; + + /** + * + * + *
+   * Rebuilds the ANN index to optimize for recall on the imported data.
+   * Only applicable for RagCorpora running on RagManagedDb with
+   * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+   * existing ANN config set on the RagCorpus. To change the ANN config, please
+   * use the UpdateRagCorpus API.
+   *
+   * Default is false, i.e., index is not rebuilt.
+   * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + @java.lang.Override + public boolean getRebuildAnnIndex() { + return rebuildAnnIndex_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1096,6 +1121,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (globalMaxEmbeddingRequestsPerMin_ != 0) { output.writeInt32(18, globalMaxEmbeddingRequestsPerMin_); } + if (rebuildAnnIndex_ != false) { + output.writeBool(19, rebuildAnnIndex_); + } getUnknownFields().writeTo(output); } @@ -1172,6 +1200,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 18, globalMaxEmbeddingRequestsPerMin_); } + if (rebuildAnnIndex_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, rebuildAnnIndex_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1204,6 +1235,7 @@ public boolean equals(final java.lang.Object obj) { if (getMaxEmbeddingRequestsPerMin() != other.getMaxEmbeddingRequestsPerMin()) return false; if (getGlobalMaxEmbeddingRequestsPerMin() != other.getGlobalMaxEmbeddingRequestsPerMin()) return false; + if (getRebuildAnnIndex() != other.getRebuildAnnIndex()) return false; if (!getImportSourceCase().equals(other.getImportSourceCase())) return false; switch (importSourceCase_) { case 2: @@ -1275,6 +1307,8 @@ public int hashCode() { hash = (53 * hash) + getMaxEmbeddingRequestsPerMin(); hash = (37 * hash) + GLOBAL_MAX_EMBEDDING_REQUESTS_PER_MIN_FIELD_NUMBER; hash = (53 * hash) + getGlobalMaxEmbeddingRequestsPerMin(); + hash = (37 * hash) + REBUILD_ANN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRebuildAnnIndex()); switch (importSourceCase_) { case 2: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -1519,6 +1553,7 @@ public Builder clear() { } maxEmbeddingRequestsPerMin_ = 0; globalMaxEmbeddingRequestsPerMin_ = 0; + rebuildAnnIndex_ = false; importSourceCase_ = 0; importSource_ = null; partialFailureSinkCase_ = 0; @@ -1590,6 +1625,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ImportRagFilesCon if (((from_bitField0_ & 0x00002000) != 0)) { result.globalMaxEmbeddingRequestsPerMin_ = globalMaxEmbeddingRequestsPerMin_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.rebuildAnnIndex_ = rebuildAnnIndex_; + } result.bitField0_ |= to_bitField0_; } @@ -1691,6 +1729,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfi if (other.getGlobalMaxEmbeddingRequestsPerMin() != 0) { setGlobalMaxEmbeddingRequestsPerMin(other.getGlobalMaxEmbeddingRequestsPerMin()); } + if (other.getRebuildAnnIndex() != false) { + setRebuildAnnIndex(other.getRebuildAnnIndex()); + } switch (other.getImportSourceCase()) { case GCS_SOURCE: { @@ -1873,6 +1914,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 144 + case 152: + { + rebuildAnnIndex_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3094,7 +3141,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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override @@ -3116,7 +3163,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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @return The partialFailureGcsSink. */ @java.lang.Override @@ -3363,7 +3410,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=564 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override @@ -3391,7 +3438,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=564 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @return The partialFailureBigquerySink. */ @java.lang.Override @@ -4169,7 +4216,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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -4189,7 +4236,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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated @@ -4976,6 +5023,80 @@ public Builder clearGlobalMaxEmbeddingRequestsPerMin() { return this; } + private boolean rebuildAnnIndex_; + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + @java.lang.Override + public boolean getRebuildAnnIndex() { + return rebuildAnnIndex_; + } + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @param value The rebuildAnnIndex to set. + * @return This builder for chaining. + */ + public Builder setRebuildAnnIndex(boolean value) { + + rebuildAnnIndex_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rebuilds the ANN index to optimize for recall on the imported data.
+     * Only applicable for RagCorpora running on RagManagedDb with
+     * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+     * existing ANN config set on the RagCorpus. To change the ANN config, please
+     * use the UpdateRagCorpus API.
+     *
+     * Default is false, i.e., index is not rebuilt.
+     * 
+ * + * bool rebuild_ann_index = 19; + * + * @return This builder for chaining. + */ + public Builder clearRebuildAnnIndex() { + bitField0_ = (bitField0_ & ~0x00004000); + rebuildAnnIndex_ = 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/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java index cf34b2aab8ea..16e53c21e3f0 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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @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=555 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=605 * @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=564 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @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=564 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=614 * @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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @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=583 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=633 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated @@ -616,6 +616,25 @@ public interface ImportRagFilesConfigOrBuilder */ int getGlobalMaxEmbeddingRequestsPerMin(); + /** + * + * + *
+   * Rebuilds the ANN index to optimize for recall on the imported data.
+   * Only applicable for RagCorpora running on RagManagedDb with
+   * `retrieval_strategy` set to `ANN`. The rebuild will be performed using the
+   * existing ANN config set on the RagCorpus. To change the ANN config, please
+   * use the UpdateRagCorpus API.
+   *
+   * Default is false, i.e., index is not rebuilt.
+   * 
+ * + * bool rebuild_ann_index = 19; + * + * @return The rebuildAnnIndex. + */ + boolean getRebuildAnnIndex(); + com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.ImportSourceCase getImportSourceCase(); com.google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.PartialFailureSinkCase diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java index 109b71b75ef7..6a711945e366 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfig.java @@ -19,15 +19,7 @@ // Protobuf Java Version: 3.25.5 package com.google.cloud.aiplatform.v1beta1; -/** - * - * - *
- * Notebook Software Config.
- * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} - */ +/** Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} */ public final class NotebookSoftwareConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig) @@ -160,12 +152,6 @@ public com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int i private com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig postStartupScriptConfig_; /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -178,12 +164,6 @@ public boolean hasPostStartupScriptConfig() { } /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -198,12 +178,6 @@ public com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig getPostStartu } /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -394,15 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build return builder; } - /** - * - * - *
-   * Notebook Software Config.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} - */ + /** Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig) @@ -1084,12 +1050,6 @@ public java.util.List getEnv postStartupScriptConfigBuilder_; /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1101,12 +1061,6 @@ public boolean hasPostStartupScriptConfig() { } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1125,12 +1079,6 @@ public boolean hasPostStartupScriptConfig() { } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1151,12 +1099,6 @@ public Builder setPostStartupScriptConfig( } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1174,12 +1116,6 @@ public Builder setPostStartupScriptConfig( } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1207,12 +1143,6 @@ public Builder mergePostStartupScriptConfig( } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1229,12 +1159,6 @@ public Builder clearPostStartupScriptConfig() { } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1247,12 +1171,6 @@ public Builder clearPostStartupScriptConfig() { } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1269,12 +1187,6 @@ public Builder clearPostStartupScriptConfig() { } /** - * - * - *
-     * Optional. Post startup script config.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java index c9a720ed4cc8..c679fbc3e449 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookSoftwareConfigOrBuilder.java @@ -96,12 +96,6 @@ public interface NotebookSoftwareConfigOrBuilder com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder getEnvOrBuilder(int index); /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -111,12 +105,6 @@ public interface NotebookSoftwareConfigOrBuilder boolean hasPostStartupScriptConfig(); /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * @@ -126,12 +114,6 @@ public interface NotebookSoftwareConfigOrBuilder com.google.cloud.aiplatform.v1beta1.PostStartupScriptConfig getPostStartupScriptConfig(); /** - * - * - *
-   * Optional. Post startup script config.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig post_startup_script_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java index 404281580ad6..5e29f6e4ec1f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OpenApiProto.java @@ -51,7 +51,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "-google/cloud/aiplatform/v1beta1/openapi.proto\022\037google.cloud.aiplatform.v1beta1" - + "\032\037google/api/field_behavior.proto\032\034google/protobuf/struct.proto\"\367\007\n" + + "\032\037google/api/field_behavior.proto\032\034google/protobuf/struct.proto\"\263\010\n" + "\006Schema\0228\n" + "\004type\030\001" + " \001(\0162%.google.cloud.aiplatform.v1beta1.TypeB\003\340A\001\022\023\n" @@ -78,10 +78,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007pattern\030\024 \001(\tB\003\340A\001\022,\n" + "\007example\030\004 \001(\0132\026.google.protobuf.ValueB\003\340A\001\022<\n" + "\006any_of\030\013" - + " \003(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022\020\n" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001\022:\n" + + "\025additional_properties\030\032" + + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\022\020\n" + "\003ref\030\033 \001(\tB\003\340A\001\022D\n" - + "\004defs\030\034" - + " \003(\01321.google.cloud.aiplatform.v1beta1.Schema.DefsEntryB\003\340A\001\032Z\n" + + "\004defs\030\034 \003(\01321.google.clo" + + "ud.aiplatform.v1beta1.Schema.DefsEntryB\003\340A\001\032Z\n" + "\017PropertiesEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" + "\005value\030\002 \001(\0132\'.google.cloud.aiplatform.v1beta1.Schema:\0028\001\032T\n" @@ -96,11 +98,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007BOOLEAN\020\004\022\t\n" + "\005ARRAY\020\005\022\n\n" + "\006OBJECT\020\006B\343\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\014OpenApiProtoP\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" + + "#com.google.cloud.aiplatform.v1beta1B\014OpenApiProtoP\001ZCcloud.google.com/g" + + "o/aiplatform/apiv1beta1/aiplatformpb;aip" + + "latformpb\252\002\037Google.Cloud.AIPlatform.V1Be" + + "ta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"" + + "Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -137,6 +139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Pattern", "Example", "AnyOf", + "AdditionalProperties", "Ref", "Defs", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java index 9351271ee903..03ae979d24a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfig.java @@ -19,15 +19,7 @@ // Protobuf Java Version: 3.25.5 package com.google.cloud.aiplatform.v1beta1; -/** - * - * - *
- * Post startup script config.
- * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} - */ +/** Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} */ public final class PostStartupScriptConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PostStartupScriptConfig) @@ -67,101 +59,31 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } /** - * - * - *
-   * Represents a notebook runtime post startup script behavior.
-   * 
- * * Protobuf enum {@code * google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior} */ public enum PostStartupScriptBehavior implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified post startup script behavior.
-     * 
- * - * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; - */ + /** POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED(0), - /** - * - * - *
-     * Run post startup script after runtime is started.
-     * 
- * - * RUN_ONCE = 1; - */ + /** RUN_ONCE = 1; */ RUN_ONCE(1), - /** - * - * - *
-     * Run post startup script after runtime is stopped.
-     * 
- * - * RUN_EVERY_START = 2; - */ + /** RUN_EVERY_START = 2; */ RUN_EVERY_START(2), - /** - * - * - *
-     * Download and run post startup script every time runtime is started.
-     * 
- * - * DOWNLOAD_AND_RUN_EVERY_START = 3; - */ + /** DOWNLOAD_AND_RUN_EVERY_START = 3; */ DOWNLOAD_AND_RUN_EVERY_START(3), UNRECOGNIZED(-1), ; - /** - * - * - *
-     * Unspecified post startup script behavior.
-     * 
- * - * POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; - */ + /** POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; */ public static final int POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Run post startup script after runtime is started.
-     * 
- * - * RUN_ONCE = 1; - */ + /** RUN_ONCE = 1; */ public static final int RUN_ONCE_VALUE = 1; - /** - * - * - *
-     * Run post startup script after runtime is stopped.
-     * 
- * - * RUN_EVERY_START = 2; - */ + /** RUN_EVERY_START = 2; */ public static final int RUN_EVERY_START_VALUE = 2; - /** - * - * - *
-     * Download and run post startup script every time runtime is started.
-     * 
- * - * DOWNLOAD_AND_RUN_EVERY_START = 3; - */ + /** DOWNLOAD_AND_RUN_EVERY_START = 3; */ public static final int DOWNLOAD_AND_RUN_EVERY_START_VALUE = 3; public final int getNumber() { @@ -260,12 +182,6 @@ private PostStartupScriptBehavior(int value) { private volatile java.lang.Object postStartupScript_ = ""; /** - * - * - *
-   * Optional. Post startup script to run after runtime is started.
-   * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -284,12 +200,6 @@ public java.lang.String getPostStartupScript() { } /** - * - * - *
-   * Optional. Post startup script to run after runtime is started.
-   * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -313,13 +223,6 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { private volatile java.lang.Object postStartupScriptUrl_ = ""; /** - * - * - *
-   * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
-   * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -338,13 +241,6 @@ public java.lang.String getPostStartupScriptUrl() { } /** - * - * - *
-   * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
-   * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -366,13 +262,6 @@ public com.google.protobuf.ByteString getPostStartupScriptUrlBytes() { private int postStartupScriptBehavior_ = 0; /** - * - * - *
-   * Optional. Post startup script behavior that defines download and execution
-   * behavior.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -385,13 +274,6 @@ public int getPostStartupScriptBehaviorValue() { } /** - * - * - *
-   * Optional. Post startup script behavior that defines download and execution
-   * behavior.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -595,15 +477,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build return builder; } - /** - * - * - *
-   * Post startup script config.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} - */ + /** Protobuf type {@code google.cloud.aiplatform.v1beta1.PostStartupScriptConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PostStartupScriptConfig) @@ -809,12 +683,6 @@ public Builder mergeFrom( private java.lang.Object postStartupScript_ = ""; /** - * - * - *
-     * Optional. Post startup script to run after runtime is started.
-     * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -832,12 +700,6 @@ public java.lang.String getPostStartupScript() { } /** - * - * - *
-     * Optional. Post startup script to run after runtime is started.
-     * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -855,12 +717,6 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { } /** - * - * - *
-     * Optional. Post startup script to run after runtime is started.
-     * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The postStartupScript to set. @@ -877,12 +733,6 @@ public Builder setPostStartupScript(java.lang.String value) { } /** - * - * - *
-     * Optional. Post startup script to run after runtime is started.
-     * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -895,12 +745,6 @@ public Builder clearPostStartupScript() { } /** - * - * - *
-     * Optional. Post startup script to run after runtime is started.
-     * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for postStartupScript to set. @@ -920,13 +764,6 @@ public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { private java.lang.Object postStartupScriptUrl_ = ""; /** - * - * - *
-     * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
-     * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -944,13 +781,6 @@ public java.lang.String getPostStartupScriptUrl() { } /** - * - * - *
-     * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
-     * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -968,13 +798,6 @@ public com.google.protobuf.ByteString getPostStartupScriptUrlBytes() { } /** - * - * - *
-     * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
-     * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The postStartupScriptUrl to set. @@ -991,13 +814,6 @@ public Builder setPostStartupScriptUrl(java.lang.String value) { } /** - * - * - *
-     * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
-     * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. @@ -1010,13 +826,6 @@ public Builder clearPostStartupScriptUrl() { } /** - * - * - *
-     * Optional. Post startup script url to download. Example:
-     * https://bucket/script.sh
-     * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for postStartupScriptUrl to set. @@ -1036,13 +845,6 @@ public Builder setPostStartupScriptUrlBytes(com.google.protobuf.ByteString value private int postStartupScriptBehavior_ = 0; /** - * - * - *
-     * Optional. Post startup script behavior that defines download and execution
-     * behavior.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1055,13 +857,6 @@ public int getPostStartupScriptBehaviorValue() { } /** - * - * - *
-     * Optional. Post startup script behavior that defines download and execution
-     * behavior.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1077,13 +872,6 @@ public Builder setPostStartupScriptBehaviorValue(int value) { } /** - * - * - *
-     * Optional. Post startup script behavior that defines download and execution
-     * behavior.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1103,13 +891,6 @@ public Builder setPostStartupScriptBehaviorValue(int value) { } /** - * - * - *
-     * Optional. Post startup script behavior that defines download and execution
-     * behavior.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -1130,13 +911,6 @@ public Builder setPostStartupScriptBehavior( } /** - * - * - *
-     * Optional. Post startup script behavior that defines download and execution
-     * behavior.
-     * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java index 19835aa53618..4428c8fad69d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PostStartupScriptConfigOrBuilder.java @@ -25,12 +25,6 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.MessageOrBuilder { /** - * - * - *
-   * Optional. Post startup script to run after runtime is started.
-   * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScript. @@ -38,12 +32,6 @@ public interface PostStartupScriptConfigOrBuilder java.lang.String getPostStartupScript(); /** - * - * - *
-   * Optional. Post startup script to run after runtime is started.
-   * 
- * * string post_startup_script = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScript. @@ -51,13 +39,6 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.ByteString getPostStartupScriptBytes(); /** - * - * - *
-   * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
-   * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The postStartupScriptUrl. @@ -65,13 +46,6 @@ public interface PostStartupScriptConfigOrBuilder java.lang.String getPostStartupScriptUrl(); /** - * - * - *
-   * Optional. Post startup script url to download. Example:
-   * https://bucket/script.sh
-   * 
- * * string post_startup_script_url = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for postStartupScriptUrl. @@ -79,13 +53,6 @@ public interface PostStartupScriptConfigOrBuilder com.google.protobuf.ByteString getPostStartupScriptUrlBytes(); /** - * - * - *
-   * Optional. Post startup script behavior that defines download and execution
-   * behavior.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * @@ -95,13 +62,6 @@ public interface PostStartupScriptConfigOrBuilder int getPostStartupScriptBehaviorValue(); /** - * - * - *
-   * Optional. Post startup script behavior that defines download and execution
-   * behavior.
-   * 
- * * * .google.cloud.aiplatform.v1beta1.PostStartupScriptConfig.PostStartupScriptBehavior post_startup_script_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; * 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 c95e204b0c9e..4150aeda25b8 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 @@ -418,7 +418,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=284 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Override @@ -439,7 +439,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=284 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @return The ragEmbeddingModelConfig. */ @java.lang.Override @@ -485,7 +485,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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Override @@ -506,7 +506,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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @return The ragVectorDbConfig. */ @java.lang.Override @@ -719,6 +719,74 @@ public int getRagFilesCount() { return ragFilesCount_; } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 12; + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -768,6 +836,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ragFilesCount_ != 0) { output.writeInt32(11, ragFilesCount_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(12, getEncryptionSpec()); + } getUnknownFields().writeTo(output); } @@ -815,6 +886,9 @@ public int getSerializedSize() { if (ragFilesCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, ragFilesCount_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEncryptionSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -855,6 +929,10 @@ public boolean equals(final java.lang.Object obj) { if (!getCorpusStatus().equals(other.getCorpusStatus())) return false; } if (getRagFilesCount() != other.getRagFilesCount()) return false; + if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } if (!getBackendConfigCase().equals(other.getBackendConfigCase())) return false; switch (backendConfigCase_) { case 9: @@ -905,6 +983,10 @@ public int hashCode() { } hash = (37 * hash) + RAG_FILES_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRagFilesCount(); + if (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } switch (backendConfigCase_) { case 9: hash = (37 * hash) + VECTOR_DB_CONFIG_FIELD_NUMBER; @@ -1064,6 +1146,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getCorpusStatusFieldBuilder(); + getEncryptionSpecFieldBuilder(); } } @@ -1106,6 +1189,11 @@ public Builder clear() { corpusStatusBuilder_ = null; } ragFilesCount_ = 0; + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } backendConfigCase_ = 0; backendConfig_ = null; return this; @@ -1185,6 +1273,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagCorpus result) if (((from_bitField0_ & 0x00000400) != 0)) { result.ragFilesCount_ = ragFilesCount_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -1277,6 +1370,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagCorpus other) { if (other.getRagFilesCount() != 0) { setRagFilesCount(other.getRagFilesCount()); } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } switch (other.getBackendConfigCase()) { case VECTOR_DB_CONFIG: { @@ -1388,6 +1484,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 88 + case 98: + { + input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2266,7 +2368,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=284 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Deprecated @@ -2286,7 +2388,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=284 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @return The ragEmbeddingModelConfig. */ @java.lang.Deprecated @@ -2498,7 +2600,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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Deprecated @@ -2518,7 +2620,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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @return The ragVectorDbConfig. */ @java.lang.Deprecated @@ -3403,6 +3505,248 @@ public Builder clearRagFilesCount() { return this; } + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + } else { + encryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); + } else { + encryptionSpec_ = value; + } + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + if (encryptionSpec_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryptionSpec() { + bitField0_ = (bitField0_ & ~0x00000800); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getEncryptionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder + getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + + /** + * + * + *
+     * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+     * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+     * field can only be set at corpus creation time, and cannot be updated or
+     * deleted.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + @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 df7c058e42de..6f8d0a5bcc58 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=284 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @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=284 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=325 * @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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @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=291 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=332 * @return The ragVectorDbConfig. */ @java.lang.Deprecated @@ -430,5 +430,57 @@ public interface RagCorpusOrBuilder */ int getRagFilesCount(); + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec(); + + /** + * + * + *
+   * Optional. Immutable. The CMEK key name used to encrypt at-rest data related
+   * to this Corpus. Only applicable to RagManagedDb option for Vector DB. This
+   * field can only be set at corpus creation time, and cannot be updated or
+   * deleted.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + 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/RagFileChunkingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java index 4714079fdc43..6204658facfc 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=426 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=476 * @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=429 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @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=426 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=476 * @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=426 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=476 * @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=426 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=476 * @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=429 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @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=429 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @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=429 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @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 a8b60d1b3e9b..76c5d1d50208 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=426 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=476 * @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=429 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=479 * @return The chunkOverlap. */ @java.lang.Deprecated 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 71e055f89c84..4498a10d3183 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=514 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=564 * @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=514 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=564 * @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=514 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=564 * @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=514 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=564 * @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 c9cc292f1cac..f29fe61c8bea 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=514 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=564 * @return The useAdvancedPdfParsing. */ @java.lang.Deprecated 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 ada4e2ca6f8e..cd47c32e400b 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 @@ -65,7 +65,93 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public interface RagManagedDbOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + boolean hasKnn(); + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN getKnn(); + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder + getKnnOrBuilder(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + boolean hasAnn(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN getAnn(); + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder + getAnnOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.RetrievalStrategyCase + getRetrievalStrategyCase(); + } /** * @@ -110,233 +196,1692 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.Builder.class); } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb other = - (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb 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.RagManagedDb parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb parseFrom( - com.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.RagManagedDb parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb 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.RagManagedDb 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.RagManagedDb 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.RagManagedDb - 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.RagManagedDb - parseDelimitedFrom( - java.io.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.RagManagedDb 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.RagManagedDb 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.RagManagedDb 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; - } + public interface KNNOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + com.google.protobuf.MessageOrBuilder {} /** * * *
-     * The config for the default RAG-managed Vector DB.
+     * Config for KNN search.
      * 
* - * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb} + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class KNN extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb) - com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDbOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + KNNOrBuilder { + private static final long serialVersionUID = 0L; + + // Use KNN.newBuilder() to construct. + private KNN(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KNN() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KNN(); + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_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_RagManagedDb_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.class, - com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.Builder.class); + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .Builder + .class); } - // Construct using - // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.newBuilder() - private Builder() {} + private byte memoizedIsInitialized = -1; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + @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 Builder clear() { - super.clear(); - return this; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto - .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor; + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb - getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb - .getDefaultInstance(); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN other = + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb build() { - com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - return result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + 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.RagManagedDb.KNN + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + parseFrom( + com.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.RagManagedDb.KNN + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + 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.RagManagedDb.KNN + 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.RagManagedDb.KNN + 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.RagManagedDb.KNN + 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.RagManagedDb.KNN + parseDelimitedFrom( + java.io.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.RagManagedDb.KNN + 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.RagManagedDb.KNN + 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.RagManagedDb.KNN 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 for KNN search.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_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_RagManagedDb_KNN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN build() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN result = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + private static final com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KNN 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.RagManagedDb.KNN + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ANNOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The depth of the tree-based structure. Only depth values of 2 and 3 are
+       * supported.
+       *
+       * Recommended value is 2 if you have if you have O(10K) files in the
+       * RagCorpus and set this to 3 if more than that.
+       *
+       * Default value is 2.
+       * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + int getTreeDepth(); + + /** + * + * + *
+       * Number of leaf nodes in the tree-based structure. Each leaf node
+       * contains groups of closely related vectors along with their
+       * corresponding centroid.
+       *
+       * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+       *
+       * Default value is 500.
+       * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + int getLeafCount(); + } + + /** + * + * + *
+     * Config for ANN search.
+     *
+     * RagManagedDb uses a tree-based structure to partition data and
+     * facilitate faster searches. As a tradeoff, it requires longer indexing
+     * time and manual triggering of index rebuild via the ImportRagFiles and
+     * UpdateRagCorpus API.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN} + */ + public static final class ANN extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + ANNOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ANN.newBuilder() to construct. + private ANN(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ANN() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ANN(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_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_RagManagedDb_ANN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .Builder + .class); + } + + public static final int TREE_DEPTH_FIELD_NUMBER = 1; + private int treeDepth_ = 0; + + /** + * + * + *
+       * The depth of the tree-based structure. Only depth values of 2 and 3 are
+       * supported.
+       *
+       * Recommended value is 2 if you have if you have O(10K) files in the
+       * RagCorpus and set this to 3 if more than that.
+       *
+       * Default value is 2.
+       * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + @java.lang.Override + public int getTreeDepth() { + return treeDepth_; + } + + public static final int LEAF_COUNT_FIELD_NUMBER = 2; + private int leafCount_ = 0; + + /** + * + * + *
+       * Number of leaf nodes in the tree-based structure. Each leaf node
+       * contains groups of closely related vectors along with their
+       * corresponding centroid.
+       *
+       * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+       *
+       * Default value is 500.
+       * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + @java.lang.Override + public int getLeafCount() { + return leafCount_; + } + + 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 (treeDepth_ != 0) { + output.writeInt32(1, treeDepth_); + } + if (leafCount_ != 0) { + output.writeInt32(2, leafCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (treeDepth_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, treeDepth_); + } + if (leafCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, leafCount_); + } + 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.RagManagedDb.ANN)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN other = + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) obj; + + if (getTreeDepth() != other.getTreeDepth()) return false; + if (getLeafCount() != other.getLeafCount()) 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) + TREE_DEPTH_FIELD_NUMBER; + hash = (53 * hash) + getTreeDepth(); + hash = (37 * hash) + LEAF_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getLeafCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + 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.RagManagedDb.ANN + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + parseFrom( + com.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.RagManagedDb.ANN + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + 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.RagManagedDb.ANN + 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.RagManagedDb.ANN + 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.RagManagedDb.ANN + 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.RagManagedDb.ANN + parseDelimitedFrom( + java.io.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.RagManagedDb.ANN + 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.RagManagedDb.ANN + 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.RagManagedDb.ANN 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 for ANN search.
+       *
+       * RagManagedDb uses a tree-based structure to partition data and
+       * facilitate faster searches. As a tradeoff, it requires longer indexing
+       * time and manual triggering of index rebuild via the ImportRagFiles and
+       * UpdateRagCorpus API.
+       * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_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_RagManagedDb_ANN_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + treeDepth_ = 0; + leafCount_ = 0; + 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_RagManagedDb_ANN_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN build() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN result = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.treeDepth_ = treeDepth_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.leafCount_ = leafCount_; + } + } + + @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.RagManagedDb.ANN) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance()) return this; + if (other.getTreeDepth() != 0) { + setTreeDepth(other.getTreeDepth()); + } + if (other.getLeafCount() != 0) { + setLeafCount(other.getLeafCount()); + } + 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: + { + treeDepth_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + leafCount_ = 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 treeDepth_; + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @return The treeDepth. + */ + @java.lang.Override + public int getTreeDepth() { + return treeDepth_; + } + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @param value The treeDepth to set. + * @return This builder for chaining. + */ + public Builder setTreeDepth(int value) { + + treeDepth_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The depth of the tree-based structure. Only depth values of 2 and 3 are
+         * supported.
+         *
+         * Recommended value is 2 if you have if you have O(10K) files in the
+         * RagCorpus and set this to 3 if more than that.
+         *
+         * Default value is 2.
+         * 
+ * + * int32 tree_depth = 1; + * + * @return This builder for chaining. + */ + public Builder clearTreeDepth() { + bitField0_ = (bitField0_ & ~0x00000001); + treeDepth_ = 0; + onChanged(); + return this; + } + + private int leafCount_; + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @return The leafCount. + */ + @java.lang.Override + public int getLeafCount() { + return leafCount_; + } + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @param value The leafCount to set. + * @return This builder for chaining. + */ + public Builder setLeafCount(int value) { + + leafCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of leaf nodes in the tree-based structure. Each leaf node
+         * contains groups of closely related vectors along with their
+         * corresponding centroid.
+         *
+         * Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
+         *
+         * Default value is 500.
+         * 
+ * + * int32 leaf_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearLeafCount() { + bitField0_ = (bitField0_ & ~0x00000002); + leafCount_ = 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.RagVectorDbConfig.RagManagedDb.ANN) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + private static final com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ANN 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.RagManagedDb.ANN + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int retrievalStrategyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object retrievalStrategy_; + + public enum RetrievalStrategyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + KNN(1), + ANN(2), + RETRIEVALSTRATEGY_NOT_SET(0); + private final int value; + + private RetrievalStrategyCase(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 RetrievalStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static RetrievalStrategyCase forNumber(int value) { + switch (value) { + case 1: + return KNN; + case 2: + return ANN; + case 0: + return RETRIEVALSTRATEGY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RetrievalStrategyCase getRetrievalStrategyCase() { + return RetrievalStrategyCase.forNumber(retrievalStrategyCase_); + } + + public static final int KNN_FIELD_NUMBER = 1; + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + @java.lang.Override + public boolean hasKnn() { + return retrievalStrategyCase_ == 1; + } + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN getKnn() { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + + /** + * + * + *
+     * Performs a KNN search on RagCorpus.
+     * Default choice if not specified.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder + getKnnOrBuilder() { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + + public static final int ANN_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + @java.lang.Override + public boolean hasAnn() { + return retrievalStrategyCase_ == 2; + } + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN getAnn() { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + + /** + * + * + *
+     * Performs an ANN search on RagCorpus. Use this if you have a lot of
+     * files (> 10K) in your RagCorpus and want to reduce the search latency.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder + getAnnOrBuilder() { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .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 (retrievalStrategyCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_); + } + if (retrievalStrategyCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retrievalStrategyCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_); + } + if (retrievalStrategyCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_); + } + 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.RagManagedDb)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb other = + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb) obj; + + if (!getRetrievalStrategyCase().equals(other.getRetrievalStrategyCase())) return false; + switch (retrievalStrategyCase_) { + case 1: + if (!getKnn().equals(other.getKnn())) return false; + break; + case 2: + if (!getAnn().equals(other.getAnn())) 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 (retrievalStrategyCase_) { + case 1: + hash = (37 * hash) + KNN_FIELD_NUMBER; + hash = (53 * hash) + getKnn().hashCode(); + break; + case 2: + hash = (37 * hash) + ANN_FIELD_NUMBER; + hash = (53 * hash) + getAnn().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb 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.RagManagedDb parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb parseFrom( + com.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.RagManagedDb parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb 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.RagManagedDb 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.RagManagedDb 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.RagManagedDb + 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.RagManagedDb + parseDelimitedFrom( + java.io.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.RagManagedDb 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.RagManagedDb 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.RagManagedDb 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 default RAG-managed Vector DB.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb) + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDbOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_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_RagManagedDb_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (knnBuilder_ != null) { + knnBuilder_.clear(); + } + if (annBuilder_ != null) { + annBuilder_.clear(); + } + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + 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_RagManagedDb_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb build() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb buildPartial() { com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb result = new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb result) { + result.retrievalStrategyCase_ = retrievalStrategyCase_; + result.retrievalStrategy_ = this.retrievalStrategy_; + if (retrievalStrategyCase_ == 1 && knnBuilder_ != null) { + result.retrievalStrategy_ = knnBuilder_.build(); + } + if (retrievalStrategyCase_ == 2 && annBuilder_ != null) { + result.retrievalStrategy_ = annBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -388,6 +1933,22 @@ public Builder mergeFrom( if (other == com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb .getDefaultInstance()) return this; + switch (other.getRetrievalStrategyCase()) { + case KNN: + { + mergeKnn(other.getKnn()); + break; + } + case ANN: + { + mergeAnn(other.getAnn()); + break; + } + case RETRIEVALSTRATEGY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -414,6 +1975,18 @@ public Builder mergeFrom( case 0: done = true; break; + case 10: + { + input.readMessage(getKnnFieldBuilder().getBuilder(), extensionRegistry); + retrievalStrategyCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getAnnFieldBuilder().getBuilder(), extensionRegistry); + retrievalStrategyCase_ = 2; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -431,6 +2004,510 @@ public Builder mergeFrom( return this; } + private int retrievalStrategyCase_ = 0; + private java.lang.Object retrievalStrategy_; + + public RetrievalStrategyCase getRetrievalStrategyCase() { + return RetrievalStrategyCase.forNumber(retrievalStrategyCase_); + } + + public Builder clearRetrievalStrategy() { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder> + knnBuilder_; + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return Whether the knn field is set. + */ + @java.lang.Override + public boolean hasKnn() { + return retrievalStrategyCase_ == 1; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + * + * @return The knn. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN getKnn() { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } else { + if (retrievalStrategyCase_ == 1) { + return knnBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder setKnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN value) { + if (knnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalStrategy_ = value; + onChanged(); + } else { + knnBuilder_.setMessage(value); + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder setKnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.Builder + builderForValue) { + if (knnBuilder_ == null) { + retrievalStrategy_ = builderForValue.build(); + onChanged(); + } else { + knnBuilder_.setMessage(builderForValue.build()); + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder mergeKnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN value) { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1 + && retrievalStrategy_ + != com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance()) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + retrievalStrategy_ = value; + } + onChanged(); + } else { + if (retrievalStrategyCase_ == 1) { + knnBuilder_.mergeFrom(value); + } else { + knnBuilder_.setMessage(value); + } + } + retrievalStrategyCase_ = 1; + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public Builder clearKnn() { + if (knnBuilder_ == null) { + if (retrievalStrategyCase_ == 1) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + } + } else { + if (retrievalStrategyCase_ == 1) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + } + knnBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.Builder + getKnnBuilder() { + return getKnnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder + getKnnOrBuilder() { + if ((retrievalStrategyCase_ == 1) && (knnBuilder_ != null)) { + return knnBuilder_.getMessageOrBuilder(); + } else { + if (retrievalStrategyCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs a KNN search on RagCorpus.
+       * Default choice if not specified.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN knn = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder> + getKnnFieldBuilder() { + if (knnBuilder_ == null) { + if (!(retrievalStrategyCase_ == 1)) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN + .getDefaultInstance(); + } + knnBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNN) + retrievalStrategy_, + getParentForChildren(), + isClean()); + retrievalStrategy_ = null; + } + retrievalStrategyCase_ = 1; + onChanged(); + return knnBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder> + annBuilder_; + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return Whether the ann field is set. + */ + @java.lang.Override + public boolean hasAnn() { + return retrievalStrategyCase_ == 2; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + * + * @return The ann. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN getAnn() { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } else { + if (retrievalStrategyCase_ == 2) { + return annBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder setAnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN value) { + if (annBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalStrategy_ = value; + onChanged(); + } else { + annBuilder_.setMessage(value); + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder setAnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.Builder + builderForValue) { + if (annBuilder_ == null) { + retrievalStrategy_ = builderForValue.build(); + onChanged(); + } else { + annBuilder_.setMessage(builderForValue.build()); + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder mergeAnn( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN value) { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2 + && retrievalStrategy_ + != com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance()) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + retrievalStrategy_ = value; + } + onChanged(); + } else { + if (retrievalStrategyCase_ == 2) { + annBuilder_.mergeFrom(value); + } else { + annBuilder_.setMessage(value); + } + } + retrievalStrategyCase_ = 2; + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public Builder clearAnn() { + if (annBuilder_ == null) { + if (retrievalStrategyCase_ == 2) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + onChanged(); + } + } else { + if (retrievalStrategyCase_ == 2) { + retrievalStrategyCase_ = 0; + retrievalStrategy_ = null; + } + annBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.Builder + getAnnBuilder() { + return getAnnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder + getAnnOrBuilder() { + if ((retrievalStrategyCase_ == 2) && (annBuilder_ != null)) { + return annBuilder_.getMessageOrBuilder(); + } else { + if (retrievalStrategyCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * Performs an ANN search on RagCorpus. Use this if you have a lot of
+       * files (> 10K) in your RagCorpus and want to reduce the search latency.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN ann = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder> + getAnnFieldBuilder() { + if (annBuilder_ == null) { + if (!(retrievalStrategyCase_ == 2)) { + retrievalStrategy_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN + .getDefaultInstance(); + } + annBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN.Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANN) + retrievalStrategy_, + getParentForChildren(), + isClean()); + retrievalStrategy_ = null; + } + retrievalStrategyCase_ = 2; + onChanged(); + return annBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schema.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schema.java index 0a5d0e4b7c3d..0063ecf0334c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schema.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Schema.java @@ -1127,6 +1127,68 @@ public com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getAnyOfOrBuilder(int return anyOf_.get(index); } + public static final int ADDITIONAL_PROPERTIES_FIELD_NUMBER = 26; + private com.google.protobuf.Value additionalProperties_; + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + @java.lang.Override + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + @java.lang.Override + public com.google.protobuf.Value getAdditionalProperties() { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder() { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + public static final int REF_FIELD_NUMBER = 27; @SuppressWarnings("serial") @@ -1425,6 +1487,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < propertyOrdering_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, propertyOrdering_.getRaw(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(26, getAdditionalProperties()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, ref_); } @@ -1528,6 +1593,10 @@ public int getSerializedSize() { size += dataSize; size += 2 * getPropertyOrderingList().size(); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAdditionalProperties()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, ref_); } @@ -1591,6 +1660,10 @@ public boolean equals(final java.lang.Object obj) { if (!getExample().equals(other.getExample())) return false; } if (!getAnyOfList().equals(other.getAnyOfList())) return false; + if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; + if (hasAdditionalProperties()) { + if (!getAdditionalProperties().equals(other.getAdditionalProperties())) return false; + } if (!getRef().equals(other.getRef())) return false; if (!internalGetDefs().equals(other.internalGetDefs())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1670,6 +1743,10 @@ public int hashCode() { hash = (37 * hash) + ANY_OF_FIELD_NUMBER; hash = (53 * hash) + getAnyOfList().hashCode(); } + if (hasAdditionalProperties()) { + hash = (37 * hash) + ADDITIONAL_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalProperties().hashCode(); + } hash = (37 * hash) + REF_FIELD_NUMBER; hash = (53 * hash) + getRef().hashCode(); if (!internalGetDefs().getMap().isEmpty()) { @@ -1850,6 +1927,7 @@ private void maybeForceBuilderInitialization() { getItemsFieldBuilder(); getExampleFieldBuilder(); getAnyOfFieldBuilder(); + getAdditionalPropertiesFieldBuilder(); } } @@ -1897,6 +1975,11 @@ public Builder clear() { anyOfBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } ref_ = ""; internalGetMutableDefs().clear(); return this; @@ -2020,9 +2103,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Schema result) { to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.ref_ = ref_; + result.additionalProperties_ = + additionalPropertiesBuilder_ == null + ? additionalProperties_ + : additionalPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.ref_ = ref_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { result.defs_ = internalGetDefs().build(DefsDefaultEntryHolder.defaultEntry); } result.bitField0_ |= to_bitField0_; @@ -2191,13 +2281,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Schema other) { } } } + if (other.hasAdditionalProperties()) { + mergeAdditionalProperties(other.getAdditionalProperties()); + } if (!other.getRef().isEmpty()) { ref_ = other.ref_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableDefs().mergeFrom(other.internalGetDefs()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2374,10 +2467,17 @@ public Builder mergeFrom( propertyOrdering_.add(s); break; } // case 202 + case 210: + { + input.readMessage( + getAdditionalPropertiesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 210 case 218: { ref_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 218 case 226: @@ -2389,7 +2489,7 @@ public Builder mergeFrom( DefsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableDefs().ensureBuilderMap().put(defs__.getKey(), defs__.getValue()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 226 default: @@ -5389,6 +5489,227 @@ public com.google.cloud.aiplatform.v1beta1.Schema.Builder addAnyOfBuilder(int in return anyOfBuilder_; } + private com.google.protobuf.Value additionalProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + additionalPropertiesBuilder_; + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + public boolean hasAdditionalProperties() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + public com.google.protobuf.Value getAdditionalProperties() { + if (additionalPropertiesBuilder_ == null) { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } else { + return additionalPropertiesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.protobuf.Value value) { + if (additionalPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalProperties_ = value; + } else { + additionalPropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalProperties(com.google.protobuf.Value.Builder builderForValue) { + if (additionalPropertiesBuilder_ == null) { + additionalProperties_ = builderForValue.build(); + } else { + additionalPropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdditionalProperties(com.google.protobuf.Value value) { + if (additionalPropertiesBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && additionalProperties_ != null + && additionalProperties_ != com.google.protobuf.Value.getDefaultInstance()) { + getAdditionalPropertiesBuilder().mergeFrom(value); + } else { + additionalProperties_ = value; + } + } else { + additionalPropertiesBuilder_.mergeFrom(value); + } + if (additionalProperties_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalProperties() { + bitField0_ = (bitField0_ & ~0x00400000); + additionalProperties_ = null; + if (additionalPropertiesBuilder_ != null) { + additionalPropertiesBuilder_.dispose(); + additionalPropertiesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Value.Builder getAdditionalPropertiesBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getAdditionalPropertiesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder() { + if (additionalPropertiesBuilder_ != null) { + return additionalPropertiesBuilder_.getMessageOrBuilder(); + } else { + return additionalProperties_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : additionalProperties_; + } + } + + /** + * + * + *
+     * Optional. Can either be a boolean or an object; controls the presence of
+     * additional properties.
+     * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getAdditionalPropertiesFieldBuilder() { + if (additionalPropertiesBuilder_ == null) { + additionalPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + getAdditionalProperties(), getParentForChildren(), isClean()); + additionalProperties_ = null; + } + return additionalPropertiesBuilder_; + } + private java.lang.Object ref_ = ""; /** @@ -5514,7 +5835,7 @@ public Builder setRef(java.lang.String value) { throw new NullPointerException(); } ref_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5552,7 +5873,7 @@ public Builder setRef(java.lang.String value) { */ public Builder clearRef() { ref_ = getDefaultInstance().getRef(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -5595,7 +5916,7 @@ public Builder setRefBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ref_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5653,7 +5974,7 @@ public com.google.cloud.aiplatform.v1beta1.Schema build( if (defs_ == null) { defs_ = new com.google.protobuf.MapFieldBuilder<>(defsConverter); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return defs_; } @@ -5758,7 +6079,7 @@ public com.google.cloud.aiplatform.v1beta1.Schema getDefsOrThrow(java.lang.Strin } public Builder clearDefs() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableDefs().clear(); return this; } @@ -5787,7 +6108,7 @@ public Builder removeDefs(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableDefs() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return internalGetMutableDefs().ensureMessageMap(); } @@ -5811,7 +6132,7 @@ public Builder putDefs(java.lang.String key, com.google.cloud.aiplatform.v1beta1 throw new NullPointerException("map value"); } internalGetMutableDefs().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } @@ -5836,7 +6157,7 @@ public Builder putAllDefs( } } internalGetMutableDefs().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchemaOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchemaOrBuilder.java index 200acb944362..b6a69eff4b5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchemaOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SchemaOrBuilder.java @@ -735,6 +735,52 @@ com.google.cloud.aiplatform.v1beta1.Schema getPropertiesOrDefault( */ com.google.cloud.aiplatform.v1beta1.SchemaOrBuilder getAnyOfOrBuilder(int index); + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the additionalProperties field is set. + */ + boolean hasAdditionalProperties(); + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalProperties. + */ + com.google.protobuf.Value getAdditionalProperties(); + + /** + * + * + *
+   * Optional. Can either be a boolean or an object; controls the presence of
+   * additional properties.
+   * 
+ * + * + * .google.protobuf.Value additional_properties = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.ValueOrBuilder getAdditionalPropertiesOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedHyperParameters.java index 025fe361b6b3..d6d06b1c74d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedHyperParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedHyperParameters.java @@ -94,6 +94,16 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { * ADAPTER_SIZE_ONE = 1; */ ADAPTER_SIZE_ONE(1), + /** + * + * + *
+     * Adapter size 2.
+     * 
+ * + * ADAPTER_SIZE_TWO = 6; + */ + ADAPTER_SIZE_TWO(6), /** * * @@ -124,6 +134,16 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { * ADAPTER_SIZE_SIXTEEN = 4; */ ADAPTER_SIZE_SIXTEEN(4), + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 5; + */ + ADAPTER_SIZE_THIRTY_TWO(5), UNRECOGNIZED(-1), ; @@ -149,6 +169,17 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADAPTER_SIZE_ONE_VALUE = 1; + /** + * + * + *
+     * Adapter size 2.
+     * 
+ * + * ADAPTER_SIZE_TWO = 6; + */ + public static final int ADAPTER_SIZE_TWO_VALUE = 6; + /** * * @@ -182,6 +213,17 @@ public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ADAPTER_SIZE_SIXTEEN_VALUE = 4; + /** + * + * + *
+     * Adapter size 32.
+     * 
+ * + * ADAPTER_SIZE_THIRTY_TWO = 5; + */ + public static final int ADAPTER_SIZE_THIRTY_TWO_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -210,12 +252,16 @@ public static AdapterSize forNumber(int value) { return ADAPTER_SIZE_UNSPECIFIED; case 1: return ADAPTER_SIZE_ONE; + case 6: + return ADAPTER_SIZE_TWO; case 2: return ADAPTER_SIZE_FOUR; case 3: return ADAPTER_SIZE_EIGHT; case 4: return ADAPTER_SIZE_SIXTEEN; + case 5: + return ADAPTER_SIZE_THIRTY_TWO; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java index 9f1a766729b7..dc25fca95ae9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java @@ -42,6 +42,7 @@ private SupervisedTuningDataStats(com.google.protobuf.GeneratedMessageV3.Builder private SupervisedTuningDataStats() { userDatasetExamples_ = java.util.Collections.emptyList(); truncatedExampleIndices_ = emptyLongList(); + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -122,7 +123,7 @@ public long getTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=238 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=245 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -455,11 +456,13 @@ public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getUserDatasetExampl * * *
-   * The number of examples in the dataset that have been truncated by any
-   * amount.
+   * Output only. The number of examples in the dataset that have been dropped.
+   * An example can be dropped for reasons including: too many tokens, contains
+   * an invalid image, contains too many images, etc.
    * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -477,11 +480,13 @@ public long getTotalTruncatedExampleCount() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -494,11 +499,13 @@ public java.util.List getTruncatedExampleIndicesList() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -510,11 +517,13 @@ public int getTruncatedExampleIndicesCount() { * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. @@ -525,6 +534,86 @@ public long getTruncatedExampleIndices(int index) { private int truncatedExampleIndicesMemoizedSerializedSize = -1; + public static final int DROPPED_EXAMPLE_REASONS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList droppedExampleReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + public com.google.protobuf.ProtocolStringList getDroppedExampleReasonsList() { + return droppedExampleReasons_; + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + public int getDroppedExampleReasonsCount() { + return droppedExampleReasons_.size(); + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + public java.lang.String getDroppedExampleReasons(int index) { + return droppedExampleReasons_.get(index); + } + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + public com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index) { + return droppedExampleReasons_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -577,6 +666,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < truncatedExampleIndices_.size(); i++) { output.writeInt64NoTag(truncatedExampleIndices_.getLong(i)); } + for (int i = 0; i < droppedExampleReasons_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 12, droppedExampleReasons_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -639,6 +732,14 @@ public int getSerializedSize() { } truncatedExampleIndicesMemoizedSerializedSize = dataSize; } + { + int dataSize = 0; + for (int i = 0; i < droppedExampleReasons_.size(); i++) { + dataSize += computeStringSizeNoTag(droppedExampleReasons_.getRaw(i)); + } + size += dataSize; + size += 1 * getDroppedExampleReasonsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -680,6 +781,7 @@ public boolean equals(final java.lang.Object obj) { if (getTotalTruncatedExampleCount() != other.getTotalTruncatedExampleCount()) return false; if (!getTruncatedExampleIndicesList().equals(other.getTruncatedExampleIndicesList())) return false; + if (!getDroppedExampleReasonsList().equals(other.getDroppedExampleReasonsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -723,6 +825,10 @@ public int hashCode() { hash = (37 * hash) + TRUNCATED_EXAMPLE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getTruncatedExampleIndicesList().hashCode(); } + if (getDroppedExampleReasonsCount() > 0) { + hash = (37 * hash) + DROPPED_EXAMPLE_REASONS_FIELD_NUMBER; + hash = (53 * hash) + getDroppedExampleReasonsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -905,6 +1011,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000100); totalTruncatedExampleCount_ = 0L; truncatedExampleIndices_ = emptyLongList(); + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1001,6 +1108,10 @@ private void buildPartial0( truncatedExampleIndices_.makeImmutable(); result.truncatedExampleIndices_ = truncatedExampleIndices_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + droppedExampleReasons_.makeImmutable(); + result.droppedExampleReasons_ = droppedExampleReasons_; + } result.bitField0_ |= to_bitField0_; } @@ -1116,6 +1227,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SupervisedTuningDat } onChanged(); } + if (!other.droppedExampleReasons_.isEmpty()) { + if (droppedExampleReasons_.isEmpty()) { + droppedExampleReasons_ = other.droppedExampleReasons_; + bitField0_ |= 0x00000800; + } else { + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.addAll(other.droppedExampleReasons_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1231,6 +1352,13 @@ public Builder mergeFrom( input.popLimit(limit); break; } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(s); + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1383,7 +1511,7 @@ public Builder clearTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=238 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=245 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1405,7 +1533,7 @@ public long getTotalBillableCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=238 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=245 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ @@ -1431,7 +1559,7 @@ public Builder setTotalBillableCharacterCount(long value) { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=238 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=245 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2649,11 +2777,13 @@ public com.google.cloud.aiplatform.v1beta1.Content.Builder addUserDatasetExample * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -2666,11 +2796,13 @@ public long getTotalTruncatedExampleCount() { * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The totalTruncatedExampleCount to set. * @return This builder for chaining. @@ -2687,11 +2819,13 @@ public Builder setTotalTruncatedExampleCount(long value) { * * *
-     * The number of examples in the dataset that have been truncated by any
-     * amount.
+     * Output only. The number of examples in the dataset that have been dropped.
+     * An example can be dropped for reasons including: too many tokens, contains
+     * an invalid image, contains too many images, etc.
      * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2715,11 +2849,13 @@ private void ensureTruncatedExampleIndicesIsMutable() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -2732,11 +2868,13 @@ public java.util.List getTruncatedExampleIndicesList() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -2748,11 +2886,13 @@ public int getTruncatedExampleIndicesCount() { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. @@ -2765,11 +2905,13 @@ public long getTruncatedExampleIndices(int index) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index to set the value at. * @param value The truncatedExampleIndices to set. @@ -2788,11 +2930,13 @@ public Builder setTruncatedExampleIndices(int index, long value) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The truncatedExampleIndices to add. * @return This builder for chaining. @@ -2810,11 +2954,13 @@ public Builder addTruncatedExampleIndices(long value) { * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param values The truncatedExampleIndices to add. * @return This builder for chaining. @@ -2832,11 +2978,13 @@ public Builder addAllTruncatedExampleIndices( * * *
-     * A partial sample of the indices (starting from 1) of the truncated
-     * examples.
+     * Output only. A partial sample of the indices (starting from 1) of the
+     * dropped examples.
      * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -2847,6 +2995,217 @@ public Builder clearTruncatedExampleIndices() { return this; } + private com.google.protobuf.LazyStringArrayList droppedExampleReasons_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDroppedExampleReasonsIsMutable() { + if (!droppedExampleReasons_.isModifiable()) { + droppedExampleReasons_ = + new com.google.protobuf.LazyStringArrayList(droppedExampleReasons_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + public com.google.protobuf.ProtocolStringList getDroppedExampleReasonsList() { + droppedExampleReasons_.makeImmutable(); + return droppedExampleReasons_; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + public int getDroppedExampleReasonsCount() { + return droppedExampleReasons_.size(); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + public java.lang.String getDroppedExampleReasons(int index) { + return droppedExampleReasons_.get(index); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + public com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index) { + return droppedExampleReasons_.getByteString(index); + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The droppedExampleReasons to set. + * @return This builder for chaining. + */ + public Builder setDroppedExampleReasons(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addDroppedExampleReasons(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addAllDroppedExampleReasons(java.lang.Iterable values) { + ensureDroppedExampleReasonsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, droppedExampleReasons_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearDroppedExampleReasons() { + droppedExampleReasons_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For each index in `truncated_example_indices`, the user-facing
+     * reason why the example was dropped.
+     * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the droppedExampleReasons to add. + * @return This builder for chaining. + */ + public Builder addDroppedExampleReasonsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDroppedExampleReasonsIsMutable(); + droppedExampleReasons_.add(value); + bitField0_ |= 0x00000800; + 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/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java index 7b99232e38dc..0b68898dd3bc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java @@ -65,7 +65,7 @@ public interface SupervisedTuningDataStatsOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=238 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=245 * @return The totalBillableCharacterCount. */ @java.lang.Deprecated @@ -302,11 +302,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * The number of examples in the dataset that have been truncated by any
-   * amount.
+   * Output only. The number of examples in the dataset that have been dropped.
+   * An example can be dropped for reasons including: too many tokens, contains
+   * an invalid image, contains too many images, etc.
    * 
* - * int64 total_truncated_example_count = 10; + * int64 total_truncated_example_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The totalTruncatedExampleCount. */ @@ -316,11 +318,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return A list containing the truncatedExampleIndices. */ @@ -330,11 +334,13 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The count of truncatedExampleIndices. */ @@ -344,14 +350,82 @@ public interface SupervisedTuningDataStatsOrBuilder * * *
-   * A partial sample of the indices (starting from 1) of the truncated
-   * examples.
+   * Output only. A partial sample of the indices (starting from 1) of the
+   * dropped examples.
    * 
* - * repeated int64 truncated_example_indices = 11; + * + * repeated int64 truncated_example_indices = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param index The index of the element to return. * @return The truncatedExampleIndices at the given index. */ long getTruncatedExampleIndices(int index); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the droppedExampleReasons. + */ + java.util.List getDroppedExampleReasonsList(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of droppedExampleReasons. + */ + int getDroppedExampleReasonsCount(); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The droppedExampleReasons at the given index. + */ + java.lang.String getDroppedExampleReasons(int index); + + /** + * + * + *
+   * Output only. For each index in `truncated_example_indices`, the user-facing
+   * reason why the example was dropped.
+   * 
+ * + * + * repeated string dropped_example_reasons = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the droppedExampleReasons at the given index. + */ + com.google.protobuf.ByteString getDroppedExampleReasonsBytes(int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpec.java index 70b210426dfb..d91bd9199382 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpec.java @@ -236,6 +236,27 @@ public com.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters getHyperPar : hyperParameters_; } + public static final int EXPORT_LAST_CHECKPOINT_ONLY_FIELD_NUMBER = 6; + private boolean exportLastCheckpointOnly_ = false; + + /** + * + * + *
+   * Optional. If set to true, disable intermediate checkpoints for SFT and only
+   * the last checkpoint will be exported. Otherwise, enable intermediate
+   * checkpoints for SFT. Default is false.
+   * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + @java.lang.Override + public boolean getExportLastCheckpointOnly() { + return exportLastCheckpointOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -259,6 +280,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getHyperParameters()); } + if (exportLastCheckpointOnly_ != false) { + output.writeBool(6, exportLastCheckpointOnly_); + } getUnknownFields().writeTo(output); } @@ -277,6 +301,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHyperParameters()); } + if (exportLastCheckpointOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, exportLastCheckpointOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -299,6 +326,7 @@ public boolean equals(final java.lang.Object obj) { if (hasHyperParameters()) { if (!getHyperParameters().equals(other.getHyperParameters())) return false; } + if (getExportLastCheckpointOnly() != other.getExportLastCheckpointOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,6 +346,8 @@ public int hashCode() { hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getHyperParameters().hashCode(); } + hash = (37 * hash) + EXPORT_LAST_CHECKPOINT_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExportLastCheckpointOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -475,6 +505,7 @@ public Builder clear() { hyperParametersBuilder_.dispose(); hyperParametersBuilder_ = null; } + exportLastCheckpointOnly_ = false; return this; } @@ -523,6 +554,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SupervisedTuningS hyperParametersBuilder_ == null ? hyperParameters_ : hyperParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.exportLastCheckpointOnly_ = exportLastCheckpointOnly_; + } result.bitField0_ |= to_bitField0_; } @@ -585,6 +619,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SupervisedTuningSpe if (other.hasHyperParameters()) { mergeHyperParameters(other.getHyperParameters()); } + if (other.getExportLastCheckpointOnly() != false) { + setExportLastCheckpointOnly(other.getExportLastCheckpointOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,6 +666,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 48: + { + exportLastCheckpointOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1099,6 +1142,68 @@ public Builder clearHyperParameters() { return hyperParametersBuilder_; } + private boolean exportLastCheckpointOnly_; + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + @java.lang.Override + public boolean getExportLastCheckpointOnly() { + return exportLastCheckpointOnly_; + } + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The exportLastCheckpointOnly to set. + * @return This builder for chaining. + */ + public Builder setExportLastCheckpointOnly(boolean value) { + + exportLastCheckpointOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set to true, disable intermediate checkpoints for SFT and only
+     * the last checkpoint will be exported. Otherwise, enable intermediate
+     * checkpoints for SFT. Default is false.
+     * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExportLastCheckpointOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + exportLastCheckpointOnly_ = 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/SupervisedTuningSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpecOrBuilder.java index a5c29f835a61..388ecb7cf619 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningSpecOrBuilder.java @@ -123,4 +123,19 @@ public interface SupervisedTuningSpecOrBuilder */ com.google.cloud.aiplatform.v1beta1.SupervisedHyperParametersOrBuilder getHyperParametersOrBuilder(); + + /** + * + * + *
+   * Optional. If set to true, disable intermediate checkpoints for SFT and only
+   * the last checkpoint will be exported. Otherwise, enable intermediate
+   * checkpoints for SFT. Default is false.
+   * 
+ * + * bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The exportLastCheckpointOnly. + */ + boolean getExportLastCheckpointOnly(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModel.java index 22628796d676..89ae2427c6c2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModel.java @@ -23,7 +23,7 @@ * * *
- * The Model Registry Model and Online Prediction Endpoint assiociated with
+ * The Model Registry Model and Online Prediction Endpoint associated with
  * this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
  * 
* @@ -43,6 +43,7 @@ private TunedModel(com.google.protobuf.GeneratedMessageV3.Builder builder) { private TunedModel() { model_ = ""; endpoint_ = ""; + checkpoints_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -184,6 +185,104 @@ public com.google.protobuf.ByteString getEndpointBytes() { } } + public static final int CHECKPOINTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List checkpoints_; + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCheckpointsList() { + return checkpoints_; + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCheckpointsOrBuilderList() { + return checkpoints_; + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCheckpointsCount() { + return checkpoints_.size(); + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint getCheckpoints(int index) { + return checkpoints_.get(index); + } + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder getCheckpointsOrBuilder( + int index) { + return checkpoints_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -204,6 +303,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endpoint_); } + for (int i = 0; i < checkpoints_.size(); i++) { + output.writeMessage(3, checkpoints_.get(i)); + } getUnknownFields().writeTo(output); } @@ -219,6 +321,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endpoint_); } + for (int i = 0; i < checkpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, checkpoints_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -237,6 +342,7 @@ public boolean equals(final java.lang.Object obj) { if (!getModel().equals(other.getModel())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getCheckpointsList().equals(other.getCheckpointsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,6 +358,10 @@ public int hashCode() { hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); + if (getCheckpointsCount() > 0) { + hash = (37 * hash) + CHECKPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -357,7 +467,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The Model Registry Model and Online Prediction Endpoint assiociated with
+   * The Model Registry Model and Online Prediction Endpoint associated with
    * this [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -395,6 +505,13 @@ public Builder clear() { bitField0_ = 0; model_ = ""; endpoint_ = ""; + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + } else { + checkpoints_ = null; + checkpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -422,6 +539,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModel build() { public com.google.cloud.aiplatform.v1beta1.TunedModel buildPartial() { com.google.cloud.aiplatform.v1beta1.TunedModel result = new com.google.cloud.aiplatform.v1beta1.TunedModel(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -429,6 +547,18 @@ public com.google.cloud.aiplatform.v1beta1.TunedModel buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.TunedModel result) { + if (checkpointsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + checkpoints_ = java.util.Collections.unmodifiableList(checkpoints_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.checkpoints_ = checkpoints_; + } else { + result.checkpoints_ = checkpointsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TunedModel result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -494,6 +624,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TunedModel other) { bitField0_ |= 0x00000002; onChanged(); } + if (checkpointsBuilder_ == null) { + if (!other.checkpoints_.isEmpty()) { + if (checkpoints_.isEmpty()) { + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureCheckpointsIsMutable(); + checkpoints_.addAll(other.checkpoints_); + } + onChanged(); + } + } else { + if (!other.checkpoints_.isEmpty()) { + if (checkpointsBuilder_.isEmpty()) { + checkpointsBuilder_.dispose(); + checkpointsBuilder_ = null; + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + checkpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCheckpointsFieldBuilder() + : null; + } else { + checkpointsBuilder_.addAllMessages(other.checkpoints_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -532,6 +689,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.parser(), + extensionRegistry); + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(m); + } else { + checkpointsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -803,6 +974,460 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List checkpoints_ = + java.util.Collections.emptyList(); + + private void ensureCheckpointsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + checkpoints_ = + new java.util.ArrayList( + checkpoints_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder> + checkpointsBuilder_; + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCheckpointsList() { + if (checkpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(checkpoints_); + } else { + return checkpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCheckpointsCount() { + if (checkpointsBuilder_ == null) { + return checkpoints_.size(); + } else { + return checkpointsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint getCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.set(index, value); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCheckpoints( + int index, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints(com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(index, value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCheckpoints( + int index, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCheckpoints( + java.lang.Iterable + values) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, checkpoints_); + onChanged(); + } else { + checkpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCheckpoints() { + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + checkpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.remove(index); + onChanged(); + } else { + checkpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder getCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder + getCheckpointsOrBuilder(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder> + getCheckpointsOrBuilderList() { + if (checkpointsBuilder_ != null) { + return checkpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(checkpoints_); + } + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder + addCheckpointsBuilder() { + return getCheckpointsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder addCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. The checkpoints associated with this TunedModel.
+     * This field is only populated for tuning jobs that enable intermediate
+     * checkpoints.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCheckpointsBuilderList() { + return getCheckpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder> + getCheckpointsFieldBuilder() { + if (checkpointsBuilder_ == null) { + checkpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder>( + checkpoints_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + checkpoints_ = null; + } + return checkpointsBuilder_; + } + @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/TunedModelCheckpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelCheckpoint.java new file mode 100644 index 000000000000..f503c69ca571 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelCheckpoint.java @@ -0,0 +1,1025 @@ +/* + * 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/tuning_job.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * TunedModelCheckpoint for the Tuned Model of a Tuning Job.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TunedModelCheckpoint} + */ +public final class TunedModelCheckpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) + TunedModelCheckpointOrBuilder { + private static final long serialVersionUID = 0L; + + // Use TunedModelCheckpoint.newBuilder() to construct. + private TunedModelCheckpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TunedModelCheckpoint() { + checkpointId_ = ""; + endpoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TunedModelCheckpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.class, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder.class); + } + + public static final int CHECKPOINT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + @java.lang.Override + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } + } + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_FIELD_NUMBER = 2; + private long epoch_ = 0L; + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private long step_ = 0L; + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + public static final int ENDPOINT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = 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(checkpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, checkpointId_); + } + if (epoch_ != 0L) { + output.writeInt64(2, epoch_); + } + if (step_ != 0L) { + output.writeInt64(3, step_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpoint_); + } + 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(checkpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, checkpointId_); + } + if (epoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, epoch_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, step_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpoint_); + } + 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.TunedModelCheckpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint other = + (com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) obj; + + if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (getEpoch() != other.getEpoch()) return false; + if (getStep() != other.getStep()) return false; + if (!getEndpoint().equals(other.getEndpoint())) 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) + CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointId().hashCode(); + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEpoch()); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStep()); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint 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.TunedModelCheckpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint parseFrom( + com.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.TunedModelCheckpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint 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.TunedModelCheckpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint 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.TunedModelCheckpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint parseDelimitedFrom( + java.io.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.TunedModelCheckpoint 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.TunedModelCheckpoint 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.TunedModelCheckpoint 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; + } + + /** + * + * + *
+   * TunedModelCheckpoint for the Tuned Model of a Tuning Job.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.TunedModelCheckpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.class, + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkpointId_ = ""; + epoch_ = 0L; + step_ = 0L; + endpoint_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint build() { + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint buildPartial() { + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint result = + new com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkpointId_ = checkpointId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.epoch_ = epoch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endpoint_ = endpoint_; + } + } + + @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.TunedModelCheckpoint) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint other) { + if (other == com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint.getDefaultInstance()) + return this; + if (!other.getCheckpointId().isEmpty()) { + checkpointId_ = other.checkpointId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEpoch() != 0L) { + setEpoch(other.getEpoch()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + checkpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + epoch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + step_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object checkpointId_ = ""; + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearCheckpointId() { + checkpointId_ = getDefaultInstance().getCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The bytes for checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long epoch_; + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @param value The epoch to set. + * @return This builder for chaining. + */ + public Builder setEpoch(long value) { + + epoch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return This builder for chaining. + */ + public Builder clearEpoch() { + bitField0_ = (bitField0_ & ~0x00000002); + epoch_ = 0L; + onChanged(); + return this; + } + + private long step_; + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * The Endpoint resource name that the checkpoint is deployed to. Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+     * 
+ * + * string endpoint = 4; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) + private static final com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint(); + } + + public static com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TunedModelCheckpoint 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.TunedModelCheckpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelCheckpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelCheckpointOrBuilder.java new file mode 100644 index 000000000000..872587dd65ad --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelCheckpointOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/tuning_job.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface TunedModelCheckpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.TunedModelCheckpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + java.lang.String getCheckpointId(); + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + com.google.protobuf.ByteString getCheckpointIdBytes(); + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + long getEpoch(); + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + long getStep(); + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + + /** + * + * + *
+   * The Endpoint resource name that the checkpoint is deployed to. Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+   * 
+ * + * string endpoint = 4; + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelOrBuilder.java index 1361e07cbf72..80f2b77874fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TunedModelOrBuilder.java @@ -87,4 +87,81 @@ public interface TunedModelOrBuilder * @return The bytes for endpoint. */ com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCheckpointsList(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpoint getCheckpoints(int index); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCheckpointsCount(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCheckpointsOrBuilderList(); + + /** + * + * + *
+   * Output only. The checkpoints associated with this TunedModel.
+   * This field is only populated for tuning jobs that enable intermediate
+   * checkpoints.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.TunedModelCheckpointOrBuilder getCheckpointsOrBuilder( + int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java index 4f2026d370cc..a5ad96dd7ebc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java @@ -189,7 +189,8 @@ public TuningSpecCase getTuningSpecCase() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -204,7 +205,8 @@ public boolean hasBaseModel() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -232,7 +234,8 @@ public java.lang.String getBaseModel() { * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -372,7 +375,7 @@ public com.google.cloud.aiplatform.v1beta1.DistillationSpec getDistillationSpec( * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -389,7 +392,7 @@ public boolean hasPartnerModelTuningSpec() { * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -409,7 +412,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -1126,7 +1129,7 @@ public com.google.protobuf.ByteString getExperimentBytes() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -1145,7 +1148,7 @@ public boolean hasTunedModel() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -1166,7 +1169,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModel getTunedModel() { * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -2449,7 +2452,8 @@ public Builder clearTuningSpec() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2465,7 +2469,8 @@ public boolean hasBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2494,7 +2499,8 @@ public java.lang.String getBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2523,7 +2529,8 @@ public com.google.protobuf.ByteString getBaseModelBytes() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2545,7 +2552,8 @@ public Builder setBaseModel(java.lang.String value) { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -2565,7 +2573,8 @@ public Builder clearBaseModel() { * * *
-     * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+     * The base model that is being tuned. See [Supported
+     * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
      * 
* * string base_model = 4; @@ -3049,7 +3058,7 @@ public Builder clearDistillationSpec() { * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3066,7 +3075,7 @@ public boolean hasPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3093,7 +3102,7 @@ public com.google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec getPartnerMode * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3118,7 +3127,7 @@ public Builder setPartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3140,7 +3149,7 @@ public Builder setPartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3177,7 +3186,7 @@ public Builder mergePartnerModelTuningSpec( * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3204,7 +3213,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3219,7 +3228,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -3242,7 +3251,7 @@ public Builder clearPartnerModelTuningSpec() { * * *
-     * Tuning Spec for open sourced and third party partner models.
+     * Tuning Spec for open sourced and third party Partner models.
      * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -5192,7 +5201,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5210,7 +5219,7 @@ public boolean hasTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5234,7 +5243,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModel getTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5260,7 +5269,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5284,7 +5293,7 @@ public Builder setTunedModel( * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5315,7 +5324,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5338,7 +5347,7 @@ public Builder clearTunedModel() { * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5356,7 +5365,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuild * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* @@ -5378,7 +5387,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu * * *
-     * Output only. The tuned model resources assiociated with this
+     * Output only. The tuned model resources associated with this
      * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java index 23d9247a1fcd..6a5f78720a5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java @@ -28,7 +28,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -41,7 +42,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -54,7 +56,8 @@ public interface TuningJobOrBuilder * * *
-   * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
+   * The base model that is being tuned. See [Supported
+   * models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).
    * 
* * string base_model = 4; @@ -142,7 +145,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -156,7 +159,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -170,7 +173,7 @@ public interface TuningJobOrBuilder * * *
-   * Tuning Spec for open sourced and third party partner models.
+   * Tuning Spec for open sourced and third party Partner models.
    * 
* * .google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec partner_model_tuning_spec = 21; @@ -664,7 +667,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -680,7 +683,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* @@ -696,7 +699,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The tuned model resources assiociated with this
+   * Output only. The tuned model resources associated with this
    * [TuningJob][google.cloud.aiplatform.v1.TuningJob].
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java index c40a7e5e9262..a8292adf2b64 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java @@ -100,6 +100,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_TunedModelRef_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_TunedModelRef_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -157,12 +161,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ects/{project}/locations/{location}/tuningJobs/{tuning_job}*\n" + "tuningJobs2\ttuningJobB\016\n" + "\014source_modelB\r\n" - + "\013tuning_spec\"\202\001\n\n" + + "\013tuning_spec\"\323\001\n\n" + "TunedModel\0226\n" + "\005model\030\001 \001(\tB\'\340A\003\372A!\n" + "\037aiplatform.googleapis.com/Model\022<\n" + "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n" - + "\"aiplatform.googleapis.com/Endpoint\"\367\002\n" + + "\"aiplatform.googleapis.com/Endpoint\022O\n" + + "\013checkpoints\030\003 \003(\01325.google.clo" + + "ud.aiplatform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + "#SupervisedTuningDatasetDistribution\022\020\n" + "\003sum\030\001 \001(\003B\003\340A\003\022\031\n" + "\014billable_sum\030\t \001(\003B\003\340A\003\022\020\n" @@ -172,29 +178,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022h\n" - + "\007buckets\030\010 \003(\0132R.google.cloud.aipla" - + "tform.v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + + "\007buckets\030\010 \003(\0132R.google.cloud.aipl" + + "atform.v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + "DatasetBucket\022\022\n" + "\005count\030\001 \001(\001B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" - + "\005right\030\003 \001(\001B\003\340A\003\"\340\005\n" + + "\005right\030\003 \001(\001B\003\340A\003\"\220\006\n" + "\031SupervisedTuningDataStats\022)\n" + "\034tuning_dataset_example_count\030\001 \001(\003B\003\340A\003\022)\n" + "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022-\n" + "\036total_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n" + "\032total_billable_token_count\030\t \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022p\n" - + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aipla" - + "tform.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" - + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" - + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatfo" - + "rm.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" - + "\025user_dataset_examples\030\010 \003" - + "(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022%\n" + + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aipl" + + "atform.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" + + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatfor" + + "m.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" + + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatf" + + "orm.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" + + "\025user_dataset_examples\030\010 " + + "\003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n" + "\035total_truncated_example_count\030\n" - + " \001(\003\022!\n" - + "\031truncated_example_indices\030\013 \003(\003\"\306\002\n" + + " \001(\003B\003\340A\003\022&\n" + + "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n" + + "\027dropped_example_reasons\030\014 \003(\tB\003\340A\003\"\306\002\n" + "\023DatasetDistribution\022\020\n" + "\003sum\030\001 \001(\001B\003\340A\003\022\020\n" + "\003min\030\002 \001(\001B\003\340A\003\022\020\n" @@ -203,8 +210,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022]\n" - + "\007buckets\030\010 \003(\0132G.google.cloud.aiplatform." - + "v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + + "\007buckets\030\010 \003(\0132G.google.cloud.ai" + + "platform.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + "\022DistributionBucket\022\022\n" + "\005count\030\001 \001(\003B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" @@ -214,48 +221,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n" + "\036total_billable_character_count\030\003 \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022`\n" - + "\035user_input_token_distribution\030\005 \001(\01324.google" - + ".cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" - + "\036user_output_token_distribution\030\006" - + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" - + "%user_message_per_example_distribution\030\007 \001(" - + "\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022L\n" + + "\035user_input_token_distribution\030\005 \001(\013" + + "24.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" + + "\036user_output_token_distribution\030\006 \001(\01324.google.cloud.aipla" + + "tform.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + + "%user_message_per_example_distribution\030\007" + + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022L\n" + "\025user_dataset_examples\030\010" + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003B!\n" + "\037_user_output_token_distribution\"k\n" + "\025DistillationDataStats\022R\n" - + "\026training_dataset_stats\030\001 \001(\0132-.google." - + "cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + + "\026training_dataset_stats\030\001 \001(\0132" + + "-.google.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + "\017TuningDataStats\022b\n" - + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cloud.aipl" - + "atform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" - + "\027distillation_data_stats\030\003 \001(\01326.go" - + "ogle.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" - + "\021tuning_data_stats\"\314\002\n" + + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.c" + + "loud.aiplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" + + "\027distillation_data_stats\030\003" + + " \001(\01326.google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + + "\021tuning_data_stats\"\377\002\n" + "\031SupervisedHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.g" - + "oogle.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\"\212\001\n" + + "\014adapter_size\030\003 \001(\0162F.google.cloud.aiplatform.v1beta1." + + "SupervisedHyperParameters.AdapterSizeB\003\340A\001\"\275\001\n" + "\013AdapterSize\022\034\n" + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n" - + "\020ADAPTER_SIZE_ONE\020\001\022\025\n" + + "\020ADAPTER_SIZE_ONE\020\001\022\024\n" + + "\020ADAPTER_SIZE_TWO\020\006\022\025\n" + "\021ADAPTER_SIZE_FOUR\020\002\022\026\n" + "\022ADAPTER_SIZE_EIGHT\020\003\022\030\n" - + "\024ADAPTER_SIZE_SIXTEEN\020\004\"\271\001\n" + + "\024ADAPTER_SIZE_SIXTEEN\020\004\022\033\n" + + "\027ADAPTER_SIZE_THIRTY_TWO\020\005\"\343\001\n" + "\024SupervisedTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022Y\n" - + "\020hyper_parameters\030\003 \001(\0132:.google.cloud.aiplatf" - + "orm.v1beta1.SupervisedHyperParametersB\003\340A\001\"\217\003\n" + + "\020hyper_parameters\030\003 \001(\0132:." + + "google.cloud.aiplatform.v1beta1.SupervisedHyperParametersB\003\340A\001\022(\n" + + "\033export_last_checkpoint_only\030\006 \001(\010B\003\340A\001\"\217\003\n" + "\020DistillationSpec\022\034\n" + "\022base_teacher_model\030\005 \001(\tH\000\022J\n" + "\032tuned_teacher_model_source\030\006 \001(\tB$\372A!\n" + "\037aiplatform.googleapis.com/ModelH\000\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022(\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001H\001\210\001\001\022[\n" - + "\020hyper_parameters\030\003 \001(\0132<.googl" - + "e.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r" + + "\020hyper_parameters\030\003 \001(\0132<.google.cloud.aiplatform" + + ".v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r" + "student_model\030\004 \001(\t\022$\n" + "\027pipeline_root_directory\030\007 \001(\tB\003\340A\002B\017\n\r" + "teacher_modelB\031\n" @@ -263,15 +273,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033DistillationHyperParameters\022\035\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001H\000\210\001\001\022*\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001H\001\210\001\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.cloud.aiplatform." - + "v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + + "\014adapter_size\030\003 \001(\0162F.go" + + "ogle.cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + "\014_epoch_countB\033\n" + "\031_learning_rate_multiplier\"\230\002\n" + "\026PartnerModelTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022f\n" - + "\020hyper_parameters\030\003 \003(\0132L.google.cloud.aipl" - + "atform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + + "\020hyper_parameters\030\003 \003(\0132L.google.cloud.aiplatform.v1beta1.Par" + + "tnerModelTuningSpec.HyperParametersEntry\032N\n" + "\024HyperParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n\r" @@ -282,12 +292,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#aiplatform.googleapis.com/TuningJobH\000\022B\n" + "\014pipeline_job\030\003 \001(\tB*\372A\'\n" + "%aiplatform.googleapis.com/PipelineJobH\000B\021\n" - + "\017tuned_model_refB\345\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobProtoP\001ZCcloud.google" - + ".com/go/aiplatform/apiv1beta1/aiplatform" - + "pb;aiplatformpb\252\002\037Google.Cloud.AIPlatfor" - + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" - + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\017tuned_model_ref\"\\\n" + + "\024TunedModelCheckpoint\022\025\n\r" + + "checkpoint_id\030\001 \001(\t\022\r\n" + + "\005epoch\030\002 \001(\003\022\014\n" + + "\004step\030\003 \001(\003\022\020\n" + + "\010endpoint\030\004 \001(\tB\345\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobProtoP\001ZCcloud.google.com" + + "/go/aiplatform/apiv1beta1/aiplatformpb;a" + + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" + + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" + + "\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -347,7 +362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_TunedModel_descriptor, new java.lang.String[] { - "Model", "Endpoint", + "Model", "Endpoint", "Checkpoints", }); internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningDatasetDistribution_descriptor = getDescriptor().getMessageTypes().get(2); @@ -384,6 +399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserDatasetExamples", "TotalTruncatedExampleCount", "TruncatedExampleIndices", + "DroppedExampleReasons", }); internal_static_google_cloud_aiplatform_v1beta1_DatasetDistribution_descriptor = getDescriptor().getMessageTypes().get(4); @@ -448,7 +464,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SupervisedTuningSpec_descriptor, new java.lang.String[] { - "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", + "TrainingDatasetUri", + "ValidationDatasetUri", + "HyperParameters", + "ExportLastCheckpointOnly", }); internal_static_google_cloud_aiplatform_v1beta1_DistillationSpec_descriptor = getDescriptor().getMessageTypes().get(10); @@ -499,6 +518,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TunedModel", "TuningJob", "PipelineJob", "TunedModelRef", }); + internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor, + new java.lang.String[] { + "CheckpointId", "Epoch", "Step", "Endpoint", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); 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 6293efd9e172..620e457c66a8 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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @return The ragFileChunkingConfig. */ @java.lang.Override @@ -619,7 +619,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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -639,7 +639,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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @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 b40ef798b7c1..07af7ba745ef 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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @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=520 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=570 * @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 28f3b5a4d8c5..d541a82bc67d 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 @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_Weaviate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -165,13 +173,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "5google/cloud/aiplatform/v1beta1/vertex_rag_data.proto\022\037google.cloud.aiplatform" + ".v1beta1\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\032.google/clo" - + "ud/aiplatform/v1beta1/api_auth.proto\032(go" - + "ogle/cloud/aiplatform/v1beta1/io.proto\032\037google/protobuf/timestamp.proto\"\275\007\n" + + "ud/aiplatform/v1beta1/api_auth.proto\0325google/cloud/aiplatform/v1beta1/encryption" + + "_spec.proto\032(google/cloud/aiplatform/v1b" + + "eta1/io.proto\032\037google/protobuf/timestamp.proto\"\275\007\n" + "\027RagEmbeddingModelConfig\022w\n" - + "\032vertex_prediction_endpoint\030\001 \001(\0132Q.google.cloud.aiplatfor" - + "m.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpointH\000\022k\n" - + "\024hybrid_search_config\030\002 \001(\0132K.google.cloud.aiplatform.v1b" - + "eta1.RagEmbeddingModelConfig.HybridSearchConfigH\000\032\257\001\n" + + "\032vertex_prediction_endpoint\030\001 \001(\0132Q.google." + + "cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpointH\000\022k\n" + + "\024hybrid_search_config\030\002 \001(\0132K.google.cloud" + + ".aiplatform.v1beta1.RagEmbeddingModelConfig.HybridSearchConfigH\000\032\257\001\n" + "\030VertexPredictionEndpoint\022<\n" + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\0226\n" @@ -179,8 +188,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022\035\n" + "\020model_version_id\030\003 \001(\tB\003\340A\003\032\340\001\n" + "\025SparseEmbeddingConfig\022c\n" - + "\004bm25\030\001 \001(\0132S.google.clo" - + "ud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig.Bm25H\000\032Y\n" + + "\004bm25\030\001 \001(\0132S.google.cloud.aiplatform.v1beta1.Rag" + + "EmbeddingModelConfig.SparseEmbeddingConfig.Bm25H\000\032Y\n" + "\004Bm25\022\031\n" + "\014multilingual\030\001 \001(\010B\003\340A\001\022\024\n" + "\002k1\030\002 \001(\002B\003\340A\001H\000\210\001\001\022\023\n" @@ -189,27 +198,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002_bB\007\n" + "\005model\032\226\002\n" + "\022HybridSearchConfig\022t\n" - + "\027sparse_embedding_config\030\001 \001(\0132N.google." - + "cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfigB\003\340A\001\022\211\001\n" - + ")dense_embedding_model_prediction_endpoint\030\002" - + " \001(\0132Q.google.cloud.aiplatform.v1beta" - + "1.RagEmbeddingModelConfig.VertexPredictionEndpointB\003\340A\002B\016\n" - + "\014model_config\"\360\006\n" + + "\027sparse_embedding_config\030\001 \001(\0132N.google.cloud.aiplatform.v1beta1." + + "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" + "\021RagVectorDbConfig\022Y\n" - + "\016rag_managed_db\030\001 \001(\0132?." - + "google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDbH\000\022O\n" - + "\010weaviate\030\002 \001" - + "(\0132;.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.WeaviateH\000\022O\n" - + "\010pinecone\030\003 " - + "\001(\0132;.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.PineconeH\000\022e\n" - + "\024vertex_feature_store\030\004 \001(\0132E.google.cloud.aiplatfo" - + "rm.v1beta1.RagVectorDbConfig.VertexFeatureStoreH\000\022e\n" - + "\024vertex_vector_search\030\006 \001(\0132" - + "E.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearchH\000\022:\n" + + "\016rag_managed_db\030\001 \001(\0132?.google.cloud.aiplatform.v" + + "1beta1.RagVectorDbConfig.RagManagedDbH\000\022O\n" + + "\010weaviate\030\002 \001(\0132;.google.cloud.aiplatf" + + "orm.v1beta1.RagVectorDbConfig.WeaviateH\000\022O\n" + + "\010pinecone\030\003 \001(\0132;.google.cloud.aiplat" + + "form.v1beta1.RagVectorDbConfig.PineconeH\000\022e\n" + + "\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" + "\010api_auth\030\005 \001(\0132(.google.cloud.aiplatform.v1beta1.ApiAuth\022d\n" - + "\032rag_embedding_model_config\030\007" - + " \001(\01328.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\016\n" - + "\014RagManagedDb\032:\n" + + "\032rag_embedding_model_config\030\007 \001(\01328.google.cloud.a" + + "iplatform.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\032-\n" + + "\003ANN\022\022\n\n" + + "tree_depth\030\001 \001(\005\022\022\n\n" + + "leaf_count\030\002 \001(\005B\024\n" + + "\022retrieval_strategy\032:\n" + "\010Weaviate\022\025\n\r" + "http_endpoint\030\001 \001(\t\022\027\n" + "\017collection_name\030\002 \001(\t\032\036\n" @@ -222,8 +239,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005index\030\002 \001(\tB\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" @@ -232,56 +249,59 @@ 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.aiplatform.v1beta1.CorpusStatus.StateB\003\340A\003\022\031\n" + + "\005state\030\001 \001(\01623.google.cloud.ai" + + "platform.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\"\273\006\n" + + "\005ERROR\020\003\"\215\007\n" + "\tRagCorpus\022V\n" - + "\020vector_db_config\030\t \001(\01322.google.c" - + "loud.aiplatform.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022`\n" + + "\020vector_db_config\030\t" + + " \001(\01322.google.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.aiplatf" - + "orm.v1beta1.RagEmbeddingModelConfigB\010\030\001\340A\001\340A\005\022Z\n" - + "\024rag_vector_db_config\030\007 \001(\01322.go" - + "ogle.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.cl" - + "oud.aiplatform.v1beta1.CorpusStatusB\003\340A\003\022\034\n" - + "\017rag_files_count\030\013 \001(\005B\003\340A\003:\200\001\352A}\n" - + "#aiplatform.googleapis.com/RagCorpus\022?proje" - + "cts/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n" + + "corpus_status\030\010" + + " \001(\0132-.google.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:\200\001\352A}\n" + + "#aiplatform.googleapis.com/RagCorpus\022?projects/{project}/loca" + + "tions/{location}/ragCorpora/{rag_corpus}*\n" + "ragCorpora2\tragCorpusB\020\n" + "\016backend_config\"\306\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.aiplatform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n" + + "gcs_source\030\010 \001(\0132*.goog" + + "le.cloud.aiplatform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n" + + "\023google_drive_source\030\t \001(\01322.goog" + + "le.cloud.aiplatform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n" + "\024direct_upload_source\030\n" - + " \001(\01323.google.cloud.aipl" - + "atform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n" + + " \001" + + "(\01323.google.cloud.aiplatform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n" + "\014slack_source\030\013" + " \001(\0132,.google.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" - + " \001(\01322.google.cloud.aiplatform.v1beta1.SharePointSourcesH\000\022\021\n" + + "\013jira_source\030\014 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n" + + "\023share_point_sources\030\016 \001(\01322.google.c" + + "loud.aiplatform.v1beta1.SharePointSourcesH\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\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.aip" - + "latform.v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n" + + "rag_file_type\030\005 " + + "\001(\01624.google.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" @@ -290,20 +310,21 @@ 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}/ragCo" - + "rpora/{rag_corpus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/loca" + + "tions/{location}/ragCorpora/{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" - + "(\01322.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.aip" - + "latform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingH\000\022\026\n\n" + + "\025fixed_length_chunking\030\003 \001(\0132J.google.cloud.aiplatform.v1beta1.Ra" + + "gFileChunkingConfig.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" @@ -311,15 +332,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.aiplatform.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.aip" - + "latform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n" - + "llm_parser\030\005 \001(\0132?.google" - + ".cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserH\000\022$\n" + + "\017advanced_parser\030\003 \001(\0132D.google.cl" + + "oud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserH\000\022[\n\r" + + "layout_parser\030\004 " + + "\001(\0132B.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n" + + "llm_parser\030\005 \001(\0132?.google.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" @@ -334,58 +355,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025custom_parsing_prompt\030\003 \001(\tB\010\n" + "\006parser\"\331\001\n" + "\023UploadRagFileConfig\022\\\n" - + "\030rag_file_chunking_config\030\001" - + " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" - + "\036rag_file_transformation_config\030\003 \001(\0132<.google.clo" - + "ud.aiplatform.v1beta1.RagFileTransformationConfig\"\265\t\n" + + "\030rag_file_chunking_config\030\001 \001(\01326.google.c" + + "loud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" + + "\036rag_file_transformation_config\030\003" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig\"\320\t\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" + + "\023google_drive_source\030\003 \001(\01322.google" + + ".cloud.aiplatform.v1beta1.GoogleDriveSourceH\000\022D\n" + "\014slack_source\030\006" + " \001(\0132,.google.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n" - + "\013jira_source\030\007 \001(\0132+.goo" - + "gle.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n" + + "\013jira_source\030\007" + + " \001(\0132+.google.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/" - + ".google.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" + + "\030partial_failure_gcs_sink\030\013" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationB\002\030\001H\001\022a\n" + + "\035partial_failure_bigquery_sink\030\014 \001(\01324.goo" + + "gle.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.googl" - + "e.cloud.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.ai" - + "platform.v1beta1.RagFileTransformationConfig\022[\n" - + "\027rag_file_parsing_config\030\010 \001(\01325." - + "google.cloud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\022+\n" + + "\033import_result_bigquery_sink\030\017" + + " \001(\01324.google.cloud.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.aiplatform.v1beta1.RagFileTransformationConfig\022[\n" + + "\027rag_file_parsing_config\030\010 \001(\01325.google.cloud.aipla" + + "tform.v1beta1.RagFileParsingConfigB\003\340A\001\022+\n" + "\036max_embedding_requests_per_min\030\005 \001(\005B\003\340A\001\0222\n" - + "%global_max_embedding_requests_per_min\030\022 \001(\005B\003\340A\001B\017\n\r" + + "%global_max_embedding_requests_per_min\030\022 \001(\005B\003\340A\001\022\031\n" + + "\021rebuild_ann_index\030\023 \001(\010B\017\n\r" + "import_sourceB\026\n" + "\024partial_failure_sinkB\024\n" + "\022import_result_sink\"\325\001\n" + "\022RagManagedDbConfig\022T\n\n" - + "enterprise\030\001 \001(\0132>.google.cloud.aipl" - + "atform.v1beta1.RagManagedDbConfig.EnterpriseH\000\022J\n" - + "\005basic\030\002 \001(\01329.google.cloud.aip" - + "latform.v1beta1.RagManagedDbConfig.BasicH\000\032\014\n\n" + + "enterprise\030\001 \001(\0132>.google.c" + + "loud.aiplatform.v1beta1.RagManagedDbConfig.EnterpriseH\000\022J\n" + + "\005basic\030\002 \001(\01329.google." + + "cloud.aiplatform.v1beta1.RagManagedDbConfig.BasicH\000\032\014\n\n" + "Enterprise\032\007\n" + "\005BasicB\006\n" + "\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.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" + + "\025rag_managed_db_config\030\002 \001(\01323.googl" + + "e.cloud.aiplatform.v1beta1.RagManagedDbConfig:\213\001\352A\207\001\n" + + ")aiplatform.googleapis.com/RagEngineConfig\0227projects/{project}/loca" + + "tions/{location}/ragEngineConfig*\020ragEngineConfigs2\017ragEngineConfigB\351\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\022VertexRagDa" + + "taProtoP\001ZCcloud.google.com/go/aiplatfor" + + "m/apiv1beta1/aiplatformpb;aiplatformpb\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -394,6 +416,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -467,7 +490,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor, + new java.lang.String[] { + "Knn", "Ann", "RetrievalStrategy", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_KNN_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedDb_ANN_descriptor, + new java.lang.String[] { + "TreeDepth", "LeafCount", + }); internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_Weaviate_descriptor = internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_descriptor .getNestedTypes() @@ -549,6 +592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "CorpusStatus", "RagFilesCount", + "EncryptionSpec", "BackendConfig", }); internal_static_google_cloud_aiplatform_v1beta1_RagFile_descriptor = @@ -684,6 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagFileParsingConfig", "MaxEmbeddingRequestsPerMin", "GlobalMaxEmbeddingRequestsPerMin", + "RebuildAnnIndex", "ImportSource", "PartialFailureSink", "ImportResultSink", @@ -730,6 +775,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.ApiAuthProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.IoProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto index bdf4fa4ae850..6da519c5b076 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -24,6 +24,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +// LINT: LEGACY_NAMES // Represents a hardware accelerator type. enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. @@ -60,6 +61,12 @@ enum AcceleratorType { // Nvidia H100 Mega 80Gb GPU. NVIDIA_H100_MEGA_80GB = 14; + // Nvidia H200 141Gb GPU. + NVIDIA_H200_141GB = 15; + + // Nvidia B200 GPU. + NVIDIA_B200 = 16; + // TPU v2. TPU_V2 = 6; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto index 743bd4285f73..38967027e7fe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_software_config.proto @@ -27,43 +27,29 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; -// Post startup script config. message PostStartupScriptConfig { - // Represents a notebook runtime post startup script behavior. enum PostStartupScriptBehavior { - // Unspecified post startup script behavior. POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED = 0; - // Run post startup script after runtime is started. RUN_ONCE = 1; - // Run post startup script after runtime is stopped. RUN_EVERY_START = 2; - // Download and run post startup script every time runtime is started. DOWNLOAD_AND_RUN_EVERY_START = 3; } - // Optional. Post startup script to run after runtime is started. string post_startup_script = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Post startup script url to download. Example: - // https://bucket/script.sh string post_startup_script_url = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Post startup script behavior that defines download and execution - // behavior. PostStartupScriptBehavior post_startup_script_behavior = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Notebook Software Config. message NotebookSoftwareConfig { // Optional. Environment variables to be passed to the container. // Maximum limit is 100. repeated EnvVar env = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Post startup script config. PostStartupScriptConfig post_startup_script_config = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto index e7a7bac5b086..7439e94d8d12 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/openapi.proto @@ -139,6 +139,11 @@ message Schema { // subschemas in the list. repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Can either be a boolean or an object; controls the presence of + // additional properties. + google.protobuf.Value additional_properties = 26 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Allows indirect references between schema nodes. The value should // be a valid reference to a child of the root `defs`. // diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto index 7ff746aa6e52..46ed03ba34aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -43,7 +43,8 @@ message TuningJob { }; oneof source_model { - // The base model that is being tuned, e.g., "gemini-1.0-pro-002". + // The base model that is being tuned. See [Supported + // models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). string base_model = 4; } @@ -54,7 +55,7 @@ message TuningJob { // Tuning Spec for Distillation. DistillationSpec distillation_spec = 17; - // Tuning Spec for open sourced and third party partner models. + // Tuning Spec for open sourced and third party Partner models. PartnerModelTuningSpec partner_model_tuning_spec = 21; } @@ -125,7 +126,7 @@ message TuningJob { } ]; - // Output only. The tuned model resources assiociated with this + // Output only. The tuned model resources associated with this // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. TunedModel tuned_model = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -159,7 +160,7 @@ message TuningJob { string service_account = 22; } -// The Model Registry Model and Online Prediction Endpoint assiociated with +// The Model Registry Model and Online Prediction Endpoint associated with // this [TuningJob][google.cloud.aiplatform.v1.TuningJob]. message TunedModel { // Output only. The resource name of the TunedModel. Format: @@ -179,6 +180,12 @@ message TunedModel { type: "aiplatform.googleapis.com/Endpoint" } ]; + + // Output only. The checkpoints associated with this TunedModel. + // This field is only populated for tuning jobs that enable intermediate + // checkpoints. + repeated TunedModelCheckpoint checkpoints = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Dataset distribution for Supervised Tuning. @@ -262,13 +269,21 @@ message SupervisedTuningDataStats { repeated Content user_dataset_examples = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The number of examples in the dataset that have been truncated by any - // amount. - int64 total_truncated_example_count = 10; + // Output only. The number of examples in the dataset that have been dropped. + // An example can be dropped for reasons including: too many tokens, contains + // an invalid image, contains too many images, etc. + int64 total_truncated_example_count = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A partial sample of the indices (starting from 1) of the + // dropped examples. + repeated int64 truncated_example_indices = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // A partial sample of the indices (starting from 1) of the truncated - // examples. - repeated int64 truncated_example_indices = 11; + // Output only. For each index in `truncated_example_indices`, the user-facing + // reason why the example was dropped. + repeated string dropped_example_reasons = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Distribution computed over a tuning dataset. @@ -376,6 +391,9 @@ message SupervisedHyperParameters { // Adapter size 1. ADAPTER_SIZE_ONE = 1; + // Adapter size 2. + ADAPTER_SIZE_TWO = 6; + // Adapter size 4. ADAPTER_SIZE_FOUR = 2; @@ -384,6 +402,9 @@ message SupervisedHyperParameters { // Adapter size 16. ADAPTER_SIZE_SIXTEEN = 4; + + // Adapter size 32. + ADAPTER_SIZE_THIRTY_TWO = 5; } // Optional. Number of complete passes the model makes over the entire @@ -410,14 +431,20 @@ message SupervisedTuningSpec { // Optional. Hyperparameters for SFT. SupervisedHyperParameters hyper_parameters = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, disable intermediate checkpoints for SFT and only + // the last checkpoint will be exported. Otherwise, enable intermediate + // checkpoints for SFT. Default is false. + bool export_last_checkpoint_only = 6 [(google.api.field_behavior) = OPTIONAL]; } // Tuning Spec for Distillation. message DistillationSpec { - // The teacher model that is being distilled from, e.g., "gemini-1.0-pro-002". + // The teacher model that is being distilled from. See [Supported + // models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). oneof teacher_model { - // The base teacher model that is being distilled, e.g., - // "gemini-1.0-pro-002". + // The base teacher model that is being distilled. See [Supported + // models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). string base_teacher_model = 5; // The resource name of the Tuned teacher model. Format: @@ -501,3 +528,19 @@ message TunedModelRef { }]; } } + +// TunedModelCheckpoint for the Tuned Model of a Tuning Job. +message TunedModelCheckpoint { + // The ID of the checkpoint. + string checkpoint_id = 1; + + // The epoch of the checkpoint. + int64 epoch = 2; + + // The step of the checkpoint. + int64 step = 3; + + // The Endpoint resource name that the checkpoint is deployed to. Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}`. + string endpoint = 4; +} 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 2262bd435e81..a289d40e92c2 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 @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/api_auth.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/protobuf/timestamp.proto"; @@ -118,7 +119,47 @@ message RagEmbeddingModelConfig { // Config for the Vector DB to use for RAG. message RagVectorDbConfig { // The config for the default RAG-managed Vector DB. - message RagManagedDb {} + message RagManagedDb { + // Config for KNN search. + message KNN {} + + // Config for ANN search. + // + // RagManagedDb uses a tree-based structure to partition data and + // facilitate faster searches. As a tradeoff, it requires longer indexing + // time and manual triggering of index rebuild via the ImportRagFiles and + // UpdateRagCorpus API. + message ANN { + // The depth of the tree-based structure. Only depth values of 2 and 3 are + // supported. + // + // Recommended value is 2 if you have if you have O(10K) files in the + // RagCorpus and set this to 3 if more than that. + // + // Default value is 2. + int32 tree_depth = 1; + + // Number of leaf nodes in the tree-based structure. Each leaf node + // contains groups of closely related vectors along with their + // corresponding centroid. + // + // Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). + // + // Default value is 500. + int32 leaf_count = 2; + } + + // Choice of retrieval strategy. + oneof retrieval_strategy { + // Performs a KNN search on RagCorpus. + // Default choice if not specified. + KNN knn = 1; + + // Performs an ANN search on RagCorpus. Use this if you have a lot of + // files (> 10K) in your RagCorpus and want to reduce the search latency. + ANN ann = 2; + } + } // The config for the Weaviate. message Weaviate { @@ -308,6 +349,15 @@ message RagCorpus { // Output only. Number of RagFiles in the RagCorpus. int32 rag_files_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Immutable. The CMEK key name used to encrypt at-rest data related + // to this Corpus. Only applicable to RagManagedDb option for Vector DB. This + // field can only be set at corpus creation time, and cannot be updated or + // deleted. + EncryptionSpec encryption_spec = 12 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A RagFile contains user data for chunking, embedding and indexing. @@ -607,6 +657,15 @@ message ImportRagFilesConfig { // global limit. int32 global_max_embedding_requests_per_min = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Rebuilds the ANN index to optimize for recall on the imported data. + // Only applicable for RagCorpora running on RagManagedDb with + // `retrieval_strategy` set to `ANN`. The rebuild will be performed using the + // existing ANN config set on the RagCorpus. To change the ANN config, please + // use the UpdateRagCorpus API. + // + // Default is false, i.e., index is not rebuilt. + bool rebuild_ann_index = 19; } // Configuration message for RagManagedDb used by RagEngine. diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 96b3d86c1c29..e57f2cc80d87 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.59.0 + 26.60.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.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.39.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.40.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.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.40.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 b3c04ade912c..29ab592c7d86 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.59.0 + 26.60.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.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.50.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.51.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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.51.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/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java index 2254aefd5234..485f9482e54b 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminClient.java @@ -151,6 +151,66 @@ * * * + *

ExportCluster + *

Exports data from the cluster. Imperative only. + * + *

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

+ *
    + *
  • exportClusterAsync(ExportClusterRequest request) + *

+ *

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

+ *
    + *
  • exportClusterAsync(ClusterName name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, ExportClusterRequest.SqlExportOptions sqlExportOptions) + *

  • exportClusterAsync(String name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, ExportClusterRequest.SqlExportOptions sqlExportOptions) + *

+ *

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

+ *
    + *
  • exportClusterOperationCallable() + *

  • exportClusterCallable() + *

+ * + * + * + *

ImportCluster + *

Imports data to the cluster. Imperative only. + * + *

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

+ *
    + *
  • importClusterAsync(ImportClusterRequest request) + *

+ *

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

+ *
    + *
  • importClusterAsync(ClusterName name, String gcsUri, String database, String user) + *

  • importClusterAsync(String name, String gcsUri, String database, String user) + *

+ *

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

+ *
    + *
  • importClusterOperationCallable() + *

  • importClusterCallable() + *

+ * + * + * + *

UpgradeCluster + *

Upgrades a single Cluster. Imperative only. + * + *

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

+ *
    + *
  • upgradeClusterAsync(UpgradeClusterRequest request) + *

+ *

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

+ *
    + *
  • upgradeClusterAsync(ClusterName name, DatabaseVersion version) + *

  • upgradeClusterAsync(String name, DatabaseVersion version) + *

+ *

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

+ *
    + *
  • upgradeClusterOperationCallable() + *

  • upgradeClusterCallable() + *

+ * + * + * *

DeleteCluster *

Deletes a single Cluster. * @@ -1472,6 +1532,550 @@ public final UnaryCallable updateClusterCallabl return stub.updateClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   GcsDestination gcsDestination = GcsDestination.newBuilder().build();
+   *   String database = "database1789464955";
+   *   ExportClusterRequest.CsvExportOptions csvExportOptions =
+   *       ExportClusterRequest.CsvExportOptions.newBuilder().build();
+   *   ExportClusterRequest.SqlExportOptions sqlExportOptions =
+   *       ExportClusterRequest.SqlExportOptions.newBuilder().build();
+   *   ExportClusterResponse response =
+   *       alloyDBAdminClient
+   *           .exportClusterAsync(
+   *               name, gcsDestination, database, csvExportOptions, sqlExportOptions)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsDestination Required. Option to export data to cloud storage. + * @param database Required. Name of the database where the export command will be executed. Note + * - Value provided should be the same as expected from `SELECT current_database();` and NOT + * as a resource reference. + * @param csvExportOptions Options for exporting data in CSV format. Required field to be set for + * CSV file type. + * @param sqlExportOptions Options for exporting data in SQL format. Required field to be set for + * SQL file type. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportClusterAsync( + ClusterName name, + GcsDestination gcsDestination, + String database, + ExportClusterRequest.CsvExportOptions csvExportOptions, + ExportClusterRequest.SqlExportOptions sqlExportOptions) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setGcsDestination(gcsDestination) + .setDatabase(database) + .setCsvExportOptions(csvExportOptions) + .setSqlExportOptions(sqlExportOptions) + .build(); + return exportClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   GcsDestination gcsDestination = GcsDestination.newBuilder().build();
+   *   String database = "database1789464955";
+   *   ExportClusterRequest.CsvExportOptions csvExportOptions =
+   *       ExportClusterRequest.CsvExportOptions.newBuilder().build();
+   *   ExportClusterRequest.SqlExportOptions sqlExportOptions =
+   *       ExportClusterRequest.SqlExportOptions.newBuilder().build();
+   *   ExportClusterResponse response =
+   *       alloyDBAdminClient
+   *           .exportClusterAsync(
+   *               name, gcsDestination, database, csvExportOptions, sqlExportOptions)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsDestination Required. Option to export data to cloud storage. + * @param database Required. Name of the database where the export command will be executed. Note + * - Value provided should be the same as expected from `SELECT current_database();` and NOT + * as a resource reference. + * @param csvExportOptions Options for exporting data in CSV format. Required field to be set for + * CSV file type. + * @param sqlExportOptions Options for exporting data in SQL format. Required field to be set for + * SQL file type. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportClusterAsync( + String name, + GcsDestination gcsDestination, + String database, + ExportClusterRequest.CsvExportOptions csvExportOptions, + ExportClusterRequest.SqlExportOptions sqlExportOptions) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(name) + .setGcsDestination(gcsDestination) + .setDatabase(database) + .setCsvExportOptions(csvExportOptions) + .setSqlExportOptions(sqlExportOptions) + .build(); + return exportClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   ExportClusterResponse response = alloyDBAdminClient.exportClusterAsync(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 exportClusterAsync( + ExportClusterRequest request) { + return exportClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.exportClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + exportClusterOperationCallable() { + return stub.exportClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.exportClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportClusterCallable() { + return stub.exportClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + ClusterName name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + String name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(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 importClusterAsync( + ImportClusterRequest request) { + return importClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.importClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importClusterOperationCallable() { + return stub.importClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importClusterCallable() { + return stub.importClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades a single Cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   DatabaseVersion version = DatabaseVersion.forNumber(0);
+   *   UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(name, version).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param version Required. The version the cluster is going to be upgraded to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture upgradeClusterAsync( + ClusterName name, DatabaseVersion version) { + UpgradeClusterRequest request = + UpgradeClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setVersion(version) + .build(); + return upgradeClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades a single Cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   DatabaseVersion version = DatabaseVersion.forNumber(0);
+   *   UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(name, version).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param version Required. The version the cluster is going to be upgraded to. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture upgradeClusterAsync( + String name, DatabaseVersion version) { + UpgradeClusterRequest request = + UpgradeClusterRequest.newBuilder().setName(name).setVersion(version).build(); + return upgradeClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades a single Cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   UpgradeClusterRequest request =
+   *       UpgradeClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setVersion(DatabaseVersion.forNumber(0))
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(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 upgradeClusterAsync( + UpgradeClusterRequest request) { + return upgradeClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades a single Cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   UpgradeClusterRequest request =
+   *       UpgradeClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setVersion(DatabaseVersion.forNumber(0))
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.upgradeClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UpgradeClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + upgradeClusterOperationCallable() { + return stub.upgradeClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Upgrades a single Cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   UpgradeClusterRequest request =
+   *       UpgradeClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setVersion(DatabaseVersion.forNumber(0))
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.upgradeClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable upgradeClusterCallable() { + return stub.upgradeClusterCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Cluster. diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java index c232fd5f5836..06ba80a169a7 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminSettings.java @@ -158,6 +158,39 @@ public UnaryCallSettings updateClusterSettings( return ((AlloyDBAdminStubSettings) getStubSettings()).updateClusterOperationSettings(); } + /** Returns the object with the settings used for calls to exportCluster. */ + public UnaryCallSettings exportClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).exportClusterSettings(); + } + + /** Returns the object with the settings used for calls to exportCluster. */ + public OperationCallSettings + exportClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).exportClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterSettings(); + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to upgradeCluster. */ + public UnaryCallSettings upgradeClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).upgradeClusterSettings(); + } + + /** Returns the object with the settings used for calls to upgradeCluster. */ + public OperationCallSettings + upgradeClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).upgradeClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return ((AlloyDBAdminStubSettings) getStubSettings()).deleteClusterSettings(); @@ -574,6 +607,42 @@ public UnaryCallSettings.Builder updateClusterS return getStubSettingsBuilder().updateClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to exportCluster. */ + public UnaryCallSettings.Builder exportClusterSettings() { + return getStubSettingsBuilder().exportClusterSettings(); + } + + /** Returns the builder for the settings used for calls to exportCluster. */ + public OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings() { + return getStubSettingsBuilder().exportClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return getStubSettingsBuilder().importClusterSettings(); + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return getStubSettingsBuilder().importClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to upgradeCluster. */ + public UnaryCallSettings.Builder upgradeClusterSettings() { + return getStubSettingsBuilder().upgradeClusterSettings(); + } + + /** Returns the builder for the settings used for calls to upgradeCluster. */ + public OperationCallSettings.Builder< + UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> + upgradeClusterOperationSettings() { + return getStubSettingsBuilder().upgradeClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return getStubSettingsBuilder().deleteClusterSettings(); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.java new file mode 100644 index 000000000000..b79cad96443a --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClient.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. + */ + +package com.google.cloud.alloydb.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1.stub.AlloyDBCSQLAdminStub; +import com.google.cloud.alloydb.v1.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for interactions with CloudSQL. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * + *

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

RestoreFromCloudSQL

Restores an AlloyDB cluster from a CloudSQL resource.

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(LocationName parent, String clusterId) + *

  • restoreFromCloudSQLAsync(String parent, String clusterId) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLOperationCallable() + *

  • restoreFromCloudSQLCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClient implements BackgroundResource { + private final AlloyDBCSQLAdminSettings settings; + private final AlloyDBCSQLAdminStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AlloyDBCSQLAdminClient with default settings. */ + public static final AlloyDBCSQLAdminClient create() throws IOException { + return create(AlloyDBCSQLAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminSettings settings) + throws IOException { + return new AlloyDBCSQLAdminClient(settings); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AlloyDBCSQLAdminSettings). + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminStub stub) { + return new AlloyDBCSQLAdminClient(stub); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AlloyDBCSQLAdminStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AlloyDBCSQLAdminSettings getSettings() { + return settings; + } + + public AlloyDBCSQLAdminStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + LocationName parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClusterId(clusterId) + .build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + String parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder().setParent(parent).setClusterId(clusterId).build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(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 restoreFromCloudSQLAsync( + RestoreFromCloudSQLRequest request) { + return restoreFromCloudSQLOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + restoreFromCloudSQLOperationCallable() { + return stub.restoreFromCloudSQLOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable restoreFromCloudSQLCallable() { + return stub.restoreFromCloudSQLCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java new file mode 100644 index 000000000000..f3e1d7103428 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminSettings.java @@ -0,0 +1,287 @@ +/* + * 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.alloydb.v1; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.alloydb.v1.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).restoreFromCloudSQLSettings(); + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()) + .restoreFromCloudSQLOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AlloyDBCSQLAdminSettings create(AlloyDBCSQLAdminStubSettings stub) + throws IOException { + return new AlloyDBCSQLAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AlloyDBCSQLAdminStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AlloyDBCSQLAdminStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AlloyDBCSQLAdminStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AlloyDBCSQLAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); + } + + protected Builder(AlloyDBCSQLAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AlloyDBCSQLAdminStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder()); + } + + public AlloyDBCSQLAdminStubSettings.Builder getStubSettingsBuilder() { + return ((AlloyDBCSQLAdminStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLSettings(); + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AlloyDBCSQLAdminSettings build() throws IOException { + return new AlloyDBCSQLAdminSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json index 506253f1e827..8611dc76cff8 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/gapic_metadata.json @@ -5,6 +5,24 @@ "protoPackage": "google.cloud.alloydb.v1", "libraryPackage": "com.google.cloud.alloydb.v1", "services": { + "AlloyDBCSQLAdmin": { + "clients": { + "grpc": { + "libraryClient": "AlloyDBCSQLAdminClient", + "rpcs": { + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RestoreFromCloudSQL": { + "methods": ["restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLOperationCallable", "restoreFromCloudSQLCallable"] + } + } + } + } + }, "AlloyDBAdmin": { "clients": { "grpc": { @@ -46,6 +64,9 @@ "ExecuteSql": { "methods": ["executeSql", "executeSql", "executeSql", "executeSqlCallable"] }, + "ExportCluster": { + "methods": ["exportClusterAsync", "exportClusterAsync", "exportClusterAsync", "exportClusterOperationCallable", "exportClusterCallable"] + }, "FailoverInstance": { "methods": ["failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceOperationCallable", "failoverInstanceCallable"] }, @@ -70,6 +91,9 @@ "GetUser": { "methods": ["getUser", "getUser", "getUser", "getUserCallable"] }, + "ImportCluster": { + "methods": ["importClusterAsync", "importClusterAsync", "importClusterAsync", "importClusterOperationCallable", "importClusterCallable"] + }, "InjectFault": { "methods": ["injectFaultAsync", "injectFaultAsync", "injectFaultAsync", "injectFaultOperationCallable", "injectFaultCallable"] }, @@ -117,6 +141,9 @@ }, "UpdateUser": { "methods": ["updateUser", "updateUser", "updateUserCallable"] + }, + "UpgradeCluster": { + "methods": ["upgradeClusterAsync", "upgradeClusterAsync", "upgradeClusterAsync", "upgradeClusterOperationCallable", "upgradeClusterCallable"] } } } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/package-info.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/package-info.java index af49cf2d89a3..38f9aa96438a 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/package-info.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/package-info.java @@ -19,6 +19,24 @@ * *

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

======================= AlloyDBCSQLAdminClient ======================= + * + *

Service Description: Service for interactions with CloudSQL. + * + *

Sample for AlloyDBCSQLAdminClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * *

======================= AlloyDBAdminClient ======================= * *

Service Description: Service describing handlers for resources diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java index 335183af5b26..3af12e923ff1 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStub.java @@ -44,6 +44,8 @@ import com.google.cloud.alloydb.v1.DeleteUserRequest; import com.google.cloud.alloydb.v1.ExecuteSqlRequest; import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -52,6 +54,8 @@ import com.google.cloud.alloydb.v1.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1.GetInstanceRequest; import com.google.cloud.alloydb.v1.GetUserRequest; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; import com.google.cloud.alloydb.v1.InjectFaultRequest; import com.google.cloud.alloydb.v1.Instance; import com.google.cloud.alloydb.v1.ListBackupsRequest; @@ -75,6 +79,8 @@ import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; import com.google.cloud.alloydb.v1.UpdateUserRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; import com.google.cloud.alloydb.v1.User; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -132,6 +138,33 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } + public OperationCallable + exportClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: exportClusterOperationCallable()"); + } + + public UnaryCallable exportClusterCallable() { + throw new UnsupportedOperationException("Not implemented: exportClusterCallable()"); + } + + public OperationCallable + importClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterOperationCallable()"); + } + + public UnaryCallable importClusterCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterCallable()"); + } + + public OperationCallable + upgradeClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: upgradeClusterOperationCallable()"); + } + + public UnaryCallable upgradeClusterCallable() { + throw new UnsupportedOperationException("Not implemented: upgradeClusterCallable()"); + } + public OperationCallable deleteClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteClusterOperationCallable()"); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java index 817530f64b6a..904fc7c94b24 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBAdminStubSettings.java @@ -72,6 +72,8 @@ import com.google.cloud.alloydb.v1.DeleteUserRequest; import com.google.cloud.alloydb.v1.ExecuteSqlRequest; import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -80,6 +82,8 @@ import com.google.cloud.alloydb.v1.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1.GetInstanceRequest; import com.google.cloud.alloydb.v1.GetUserRequest; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; import com.google.cloud.alloydb.v1.InjectFaultRequest; import com.google.cloud.alloydb.v1.Instance; import com.google.cloud.alloydb.v1.ListBackupsRequest; @@ -104,6 +108,8 @@ import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; import com.google.cloud.alloydb.v1.UpdateUserRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; import com.google.cloud.alloydb.v1.User; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -212,6 +218,18 @@ public class AlloyDBAdminStubSettings extends StubSettings updateClusterSettings; private final OperationCallSettings updateClusterOperationSettings; + private final UnaryCallSettings exportClusterSettings; + private final OperationCallSettings< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings; + private final UnaryCallSettings importClusterSettings; + private final OperationCallSettings< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; + private final UnaryCallSettings upgradeClusterSettings; + private final OperationCallSettings< + UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> + upgradeClusterOperationSettings; private final UnaryCallSettings deleteClusterSettings; private final OperationCallSettings deleteClusterOperationSettings; @@ -710,6 +728,39 @@ public UnaryCallSettings updateClusterSettings( return updateClusterOperationSettings; } + /** Returns the object with the settings used for calls to exportCluster. */ + public UnaryCallSettings exportClusterSettings() { + return exportClusterSettings; + } + + /** Returns the object with the settings used for calls to exportCluster. */ + public OperationCallSettings + exportClusterOperationSettings() { + return exportClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return importClusterSettings; + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return importClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to upgradeCluster. */ + public UnaryCallSettings upgradeClusterSettings() { + return upgradeClusterSettings; + } + + /** Returns the object with the settings used for calls to upgradeCluster. */ + public OperationCallSettings + upgradeClusterOperationSettings() { + return upgradeClusterOperationSettings; + } + /** Returns the object with the settings used for calls to deleteCluster. */ public UnaryCallSettings deleteClusterSettings() { return deleteClusterSettings; @@ -1096,6 +1147,12 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); updateClusterSettings = settingsBuilder.updateClusterSettings().build(); updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + exportClusterSettings = settingsBuilder.exportClusterSettings().build(); + exportClusterOperationSettings = settingsBuilder.exportClusterOperationSettings().build(); + importClusterSettings = settingsBuilder.importClusterSettings().build(); + importClusterOperationSettings = settingsBuilder.importClusterOperationSettings().build(); + upgradeClusterSettings = settingsBuilder.upgradeClusterSettings().build(); + upgradeClusterOperationSettings = settingsBuilder.upgradeClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); promoteClusterSettings = settingsBuilder.promoteClusterSettings().build(); @@ -1164,6 +1221,19 @@ public static class Builder extends StubSettings.Builder updateClusterSettings; private final OperationCallSettings.Builder updateClusterOperationSettings; + private final UnaryCallSettings.Builder exportClusterSettings; + private final OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings; + private final UnaryCallSettings.Builder importClusterSettings; + private final OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; + private final UnaryCallSettings.Builder + upgradeClusterSettings; + private final OperationCallSettings.Builder< + UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> + upgradeClusterOperationSettings; private final UnaryCallSettings.Builder deleteClusterSettings; private final OperationCallSettings.Builder deleteClusterOperationSettings; @@ -1316,6 +1386,12 @@ protected Builder(ClientContext clientContext) { createClusterOperationSettings = OperationCallSettings.newBuilder(); updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterOperationSettings = OperationCallSettings.newBuilder(); + exportClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportClusterOperationSettings = OperationCallSettings.newBuilder(); + importClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importClusterOperationSettings = OperationCallSettings.newBuilder(); + upgradeClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + upgradeClusterOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteClusterOperationSettings = OperationCallSettings.newBuilder(); promoteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1372,6 +1448,9 @@ protected Builder(ClientContext clientContext) { getClusterSettings, createClusterSettings, updateClusterSettings, + exportClusterSettings, + importClusterSettings, + upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, switchoverClusterSettings, @@ -1416,6 +1495,12 @@ protected Builder(AlloyDBAdminStubSettings settings) { createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); updateClusterSettings = settings.updateClusterSettings.toBuilder(); updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + exportClusterSettings = settings.exportClusterSettings.toBuilder(); + exportClusterOperationSettings = settings.exportClusterOperationSettings.toBuilder(); + importClusterSettings = settings.importClusterSettings.toBuilder(); + importClusterOperationSettings = settings.importClusterOperationSettings.toBuilder(); + upgradeClusterSettings = settings.upgradeClusterSettings.toBuilder(); + upgradeClusterOperationSettings = settings.upgradeClusterOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); promoteClusterSettings = settings.promoteClusterSettings.toBuilder(); @@ -1474,6 +1559,9 @@ protected Builder(AlloyDBAdminStubSettings settings) { getClusterSettings, createClusterSettings, updateClusterSettings, + exportClusterSettings, + importClusterSettings, + upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, switchoverClusterSettings, @@ -1553,6 +1641,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .exportClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .importClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .upgradeClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .deleteClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1761,6 +1864,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ExportClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + + builder + .importClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + + builder + .upgradeClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(UpgradeClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + builder .deleteClusterOperationSettings() .setInitialCallSettings( @@ -2197,6 +2372,42 @@ public UnaryCallSettings.Builder updateClusterS return updateClusterOperationSettings; } + /** Returns the builder for the settings used for calls to exportCluster. */ + public UnaryCallSettings.Builder exportClusterSettings() { + return exportClusterSettings; + } + + /** Returns the builder for the settings used for calls to exportCluster. */ + public OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings() { + return exportClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return importClusterSettings; + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return importClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to upgradeCluster. */ + public UnaryCallSettings.Builder upgradeClusterSettings() { + return upgradeClusterSettings; + } + + /** Returns the builder for the settings used for calls to upgradeCluster. */ + public OperationCallSettings.Builder< + UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> + upgradeClusterOperationSettings() { + return upgradeClusterOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteCluster. */ public UnaryCallSettings.Builder deleteClusterSettings() { return deleteClusterSettings; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..7bdd829fae75 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStub.java @@ -0,0 +1,77 @@ +/* + * 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.alloydb.v1.stub; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + restoreFromCloudSQLOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreFromCloudSQLOperationCallable()"); + } + + public UnaryCallable restoreFromCloudSQLCallable() { + throw new UnsupportedOperationException("Not implemented: restoreFromCloudSQLCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java new file mode 100644 index 000000000000..6e6654b1c582 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/AlloyDBCSQLAdminStubSettings.java @@ -0,0 +1,525 @@ +/* + * 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.alloydb.v1.stub; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + restoreFromCloudSQLSettings; + private final OperationCallSettings + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AlloyDBCSQLAdminStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAlloyDBCSQLAdminStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAlloyDBCSQLAdminStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "alloydb"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "alloydb.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "alloydb.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + restoreFromCloudSQLSettings = settingsBuilder.restoreFromCloudSQLSettings().build(); + restoreFromCloudSQLOperationSettings = + settingsBuilder.restoreFromCloudSQLOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for AlloyDBCSQLAdminStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + restoreFromCloudSQLSettings; + private final OperationCallSettings.Builder< + RestoreFromCloudSQLRequest, Cluster, OperationMetadata> + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreFromCloudSQLOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + initDefaults(this); + } + + protected Builder(AlloyDBCSQLAdminStubSettings settings) { + super(settings); + + restoreFromCloudSQLSettings = settings.restoreFromCloudSQLSettings.toBuilder(); + restoreFromCloudSQLOperationSettings = + settings.restoreFromCloudSQLOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .restoreFromCloudSQLSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .restoreFromCloudSQLOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AlloyDBCSQLAdminStubSettings build() throws IOException { + return new AlloyDBCSQLAdminStubSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java index dc54b28e7967..87edac788f2e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBAdminStub.java @@ -49,6 +49,8 @@ import com.google.cloud.alloydb.v1.DeleteUserRequest; import com.google.cloud.alloydb.v1.ExecuteSqlRequest; import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -57,6 +59,8 @@ import com.google.cloud.alloydb.v1.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1.GetInstanceRequest; import com.google.cloud.alloydb.v1.GetUserRequest; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; import com.google.cloud.alloydb.v1.InjectFaultRequest; import com.google.cloud.alloydb.v1.Instance; import com.google.cloud.alloydb.v1.ListBackupsRequest; @@ -80,6 +84,8 @@ import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; import com.google.cloud.alloydb.v1.UpdateUserRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; import com.google.cloud.alloydb.v1.User; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -140,6 +146,36 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + exportClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExportCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ImportCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + upgradeClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/UpgradeCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpgradeClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -458,6 +494,15 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable exportClusterCallable; + private final OperationCallable + exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; + private final UnaryCallable upgradeClusterCallable; + private final OperationCallable + upgradeClusterOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; @@ -622,6 +667,36 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings exportClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings upgradeClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(upgradeClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -976,6 +1051,33 @@ protected GrpcAlloyDBAdminStub( settings.updateClusterOperationSettings(), clientContext, operationsStub); + this.exportClusterCallable = + callableFactory.createUnaryCallable( + exportClusterTransportSettings, settings.exportClusterSettings(), clientContext); + this.exportClusterOperationCallable = + callableFactory.createOperationCallable( + exportClusterTransportSettings, + settings.exportClusterOperationSettings(), + clientContext, + operationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + operationsStub); + this.upgradeClusterCallable = + callableFactory.createUnaryCallable( + upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); + this.upgradeClusterOperationCallable = + callableFactory.createOperationCallable( + upgradeClusterTransportSettings, + settings.upgradeClusterOperationSettings(), + clientContext, + operationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -1248,6 +1350,39 @@ public UnaryCallable updateClusterCallable() { return updateClusterOperationCallable; } + @Override + public UnaryCallable exportClusterCallable() { + return exportClusterCallable; + } + + @Override + public OperationCallable + exportClusterOperationCallable() { + return exportClusterOperationCallable; + } + + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + + @Override + public UnaryCallable upgradeClusterCallable() { + return upgradeClusterCallable; + } + + @Override + public OperationCallable + upgradeClusterOperationCallable() { + return upgradeClusterOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..e450f46633c6 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.alloydb.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..18ec2d39e3fd --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/GrpcAlloyDBCSQLAdminStub.java @@ -0,0 +1,255 @@ +/* + * 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.alloydb.v1.stub; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final MethodDescriptor + restoreFromCloudSQLMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreFromCloudSQLRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAlloyDBCSQLAdminStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings restoreFromCloudSQLTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java index 73e90e5bbfac..c2b39039930f 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBAdminStub.java @@ -57,6 +57,8 @@ import com.google.cloud.alloydb.v1.DeleteUserRequest; import com.google.cloud.alloydb.v1.ExecuteSqlRequest; import com.google.cloud.alloydb.v1.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; import com.google.cloud.alloydb.v1.FailoverInstanceRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1.GenerateClientCertificateResponse; @@ -65,6 +67,8 @@ import com.google.cloud.alloydb.v1.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1.GetInstanceRequest; import com.google.cloud.alloydb.v1.GetUserRequest; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; import com.google.cloud.alloydb.v1.InjectFaultRequest; import com.google.cloud.alloydb.v1.Instance; import com.google.cloud.alloydb.v1.ListBackupsRequest; @@ -88,6 +92,8 @@ import com.google.cloud.alloydb.v1.UpdateClusterRequest; import com.google.cloud.alloydb.v1.UpdateInstanceRequest; import com.google.cloud.alloydb.v1.UpdateUserRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; import com.google.cloud.alloydb.v1.User; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -116,7 +122,10 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(BatchCreateInstancesResponse.getDescriptor()) + .add(ExportClusterResponse.getDescriptor()) .add(Empty.getDescriptor()) + .add(ImportClusterResponse.getDescriptor()) + .add(UpgradeClusterResponse.getDescriptor()) .add(Cluster.getDescriptor()) .add(Backup.getDescriptor()) .add(OperationMetadata.getDescriptor()) @@ -286,6 +295,126 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + exportClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ExportCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:export", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/ImportCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:import", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + upgradeClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBAdmin/UpgradeCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:upgrade", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpgradeClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1168,6 +1297,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "scope", request.getScopeValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1552,6 +1682,15 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable exportClusterCallable; + private final OperationCallable + exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; + private final UnaryCallable upgradeClusterCallable; + private final OperationCallable + upgradeClusterOperationCallable; private final UnaryCallable deleteClusterCallable; private final OperationCallable deleteClusterOperationCallable; @@ -1748,6 +1887,39 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings exportClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings importClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings upgradeClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(upgradeClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteClusterMethodDescriptor) @@ -2139,6 +2311,33 @@ protected HttpJsonAlloyDBAdminStub( settings.updateClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.exportClusterCallable = + callableFactory.createUnaryCallable( + exportClusterTransportSettings, settings.exportClusterSettings(), clientContext); + this.exportClusterOperationCallable = + callableFactory.createOperationCallable( + exportClusterTransportSettings, + settings.exportClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.upgradeClusterCallable = + callableFactory.createUnaryCallable( + upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); + this.upgradeClusterOperationCallable = + callableFactory.createOperationCallable( + upgradeClusterTransportSettings, + settings.upgradeClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteClusterCallable = callableFactory.createUnaryCallable( deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); @@ -2377,6 +2576,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(getClusterMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(exportClusterMethodDescriptor); + methodDescriptors.add(importClusterMethodDescriptor); + methodDescriptors.add(upgradeClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(promoteClusterMethodDescriptor); methodDescriptors.add(switchoverClusterMethodDescriptor); @@ -2453,6 +2655,39 @@ public UnaryCallable updateClusterCallable() { return updateClusterOperationCallable; } + @Override + public UnaryCallable exportClusterCallable() { + return exportClusterCallable; + } + + @Override + public OperationCallable + exportClusterOperationCallable() { + return exportClusterOperationCallable; + } + + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + + @Override + public UnaryCallable upgradeClusterCallable() { + return upgradeClusterCallable; + } + + @Override + public OperationCallable + upgradeClusterOperationCallable() { + return upgradeClusterOperationCallable; + } + @Override public UnaryCallable deleteClusterCallable() { return deleteClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..fd11490012b2 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,101 @@ +/* + * 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.alloydb.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..163ce381e1e1 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/HttpJsonAlloyDBCSQLAdminStub.java @@ -0,0 +1,391 @@ +/* + * 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.alloydb.v1.stub; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Cluster.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + restoreFromCloudSQLMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreFromCloudSQLRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + restoreFromCloudSQLTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(restoreFromCloudSQLMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java index 9a18ff412cbd..14571d822760 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClient.java @@ -151,6 +151,46 @@ * * * + *

ExportCluster + *

Exports data from the cluster. Imperative only. + * + *

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

+ *
    + *
  • exportClusterAsync(ExportClusterRequest request) + *

+ *

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

+ *
    + *
  • exportClusterAsync(ClusterName name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, ExportClusterRequest.SqlExportOptions sqlExportOptions) + *

  • exportClusterAsync(String name, GcsDestination gcsDestination, String database, ExportClusterRequest.CsvExportOptions csvExportOptions, ExportClusterRequest.SqlExportOptions sqlExportOptions) + *

+ *

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

+ *
    + *
  • exportClusterOperationCallable() + *

  • exportClusterCallable() + *

+ * + * + * + *

ImportCluster + *

Imports data to the cluster. Imperative only. + * + *

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

+ *
    + *
  • importClusterAsync(ImportClusterRequest request) + *

+ *

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

+ *
    + *
  • importClusterAsync(ClusterName name, String gcsUri, String database, String user) + *

  • importClusterAsync(String name, String gcsUri, String database, String user) + *

+ *

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

+ *
    + *
  • importClusterOperationCallable() + *

  • importClusterCallable() + *

+ * + * + * *

UpgradeCluster *

Upgrades a single Cluster. Imperative only. * @@ -1493,6 +1533,390 @@ public final UnaryCallable updateClusterCallabl return stub.updateClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   GcsDestination gcsDestination = GcsDestination.newBuilder().build();
+   *   String database = "database1789464955";
+   *   ExportClusterRequest.CsvExportOptions csvExportOptions =
+   *       ExportClusterRequest.CsvExportOptions.newBuilder().build();
+   *   ExportClusterRequest.SqlExportOptions sqlExportOptions =
+   *       ExportClusterRequest.SqlExportOptions.newBuilder().build();
+   *   ExportClusterResponse response =
+   *       alloyDBAdminClient
+   *           .exportClusterAsync(
+   *               name, gcsDestination, database, csvExportOptions, sqlExportOptions)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsDestination Required. Option to export data to cloud storage. + * @param database Required. Name of the database where the export command will be executed. Note + * - Value provided should be the same as expected from `SELECT current_database();` and NOT + * as a resource reference. + * @param csvExportOptions Options for exporting data in CSV format. Required field to be set for + * CSV file type. + * @param sqlExportOptions Options for exporting data in SQL format. Required field to be set for + * SQL file type. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportClusterAsync( + ClusterName name, + GcsDestination gcsDestination, + String database, + ExportClusterRequest.CsvExportOptions csvExportOptions, + ExportClusterRequest.SqlExportOptions sqlExportOptions) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setGcsDestination(gcsDestination) + .setDatabase(database) + .setCsvExportOptions(csvExportOptions) + .setSqlExportOptions(sqlExportOptions) + .build(); + return exportClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   GcsDestination gcsDestination = GcsDestination.newBuilder().build();
+   *   String database = "database1789464955";
+   *   ExportClusterRequest.CsvExportOptions csvExportOptions =
+   *       ExportClusterRequest.CsvExportOptions.newBuilder().build();
+   *   ExportClusterRequest.SqlExportOptions sqlExportOptions =
+   *       ExportClusterRequest.SqlExportOptions.newBuilder().build();
+   *   ExportClusterResponse response =
+   *       alloyDBAdminClient
+   *           .exportClusterAsync(
+   *               name, gcsDestination, database, csvExportOptions, sqlExportOptions)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsDestination Required. Option to export data to cloud storage. + * @param database Required. Name of the database where the export command will be executed. Note + * - Value provided should be the same as expected from `SELECT current_database();` and NOT + * as a resource reference. + * @param csvExportOptions Options for exporting data in CSV format. Required field to be set for + * CSV file type. + * @param sqlExportOptions Options for exporting data in SQL format. Required field to be set for + * SQL file type. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportClusterAsync( + String name, + GcsDestination gcsDestination, + String database, + ExportClusterRequest.CsvExportOptions csvExportOptions, + ExportClusterRequest.SqlExportOptions sqlExportOptions) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(name) + .setGcsDestination(gcsDestination) + .setDatabase(database) + .setCsvExportOptions(csvExportOptions) + .setSqlExportOptions(sqlExportOptions) + .build(); + return exportClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   ExportClusterResponse response = alloyDBAdminClient.exportClusterAsync(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 exportClusterAsync( + ExportClusterRequest request) { + return exportClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.exportClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + exportClusterOperationCallable() { + return stub.exportClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports data from the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ExportClusterRequest request =
+   *       ExportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setDatabase("database1789464955")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.exportClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportClusterCallable() { + return stub.exportClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + ClusterName name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + String name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(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 importClusterAsync( + ImportClusterRequest request) { + return importClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.importClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importClusterOperationCallable() { + return stub.importClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importClusterCallable() { + return stub.importClusterCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Upgrades a single Cluster. Imperative only. diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java index c3c1fd9c431d..9611bdb9c590 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminSettings.java @@ -159,6 +159,28 @@ public UnaryCallSettings updateClusterSettings( return ((AlloyDBAdminStubSettings) getStubSettings()).updateClusterOperationSettings(); } + /** Returns the object with the settings used for calls to exportCluster. */ + public UnaryCallSettings exportClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).exportClusterSettings(); + } + + /** Returns the object with the settings used for calls to exportCluster. */ + public OperationCallSettings + exportClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).exportClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterSettings(); + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to upgradeCluster. */ public UnaryCallSettings upgradeClusterSettings() { return ((AlloyDBAdminStubSettings) getStubSettings()).upgradeClusterSettings(); @@ -586,6 +608,30 @@ public UnaryCallSettings.Builder updateClusterS return getStubSettingsBuilder().updateClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to exportCluster. */ + public UnaryCallSettings.Builder exportClusterSettings() { + return getStubSettingsBuilder().exportClusterSettings(); + } + + /** Returns the builder for the settings used for calls to exportCluster. */ + public OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings() { + return getStubSettingsBuilder().exportClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return getStubSettingsBuilder().importClusterSettings(); + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return getStubSettingsBuilder().importClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to upgradeCluster. */ public UnaryCallSettings.Builder upgradeClusterSettings() { return getStubSettingsBuilder().upgradeClusterSettings(); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java new file mode 100644 index 000000000000..d64d61d0b10b --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClient.java @@ -0,0 +1,675 @@ +/* + * 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.alloydb.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1alpha.stub.AlloyDBCSQLAdminStub; +import com.google.cloud.alloydb.v1alpha.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for interactions with CloudSQL. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * + *

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

RestoreFromCloudSQL

Restores an AlloyDB cluster from a CloudSQL resource.

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(LocationName parent, String clusterId) + *

  • restoreFromCloudSQLAsync(String parent, String clusterId) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLOperationCallable() + *

  • restoreFromCloudSQLCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClient implements BackgroundResource { + private final AlloyDBCSQLAdminSettings settings; + private final AlloyDBCSQLAdminStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AlloyDBCSQLAdminClient with default settings. */ + public static final AlloyDBCSQLAdminClient create() throws IOException { + return create(AlloyDBCSQLAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminSettings settings) + throws IOException { + return new AlloyDBCSQLAdminClient(settings); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AlloyDBCSQLAdminSettings). + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminStub stub) { + return new AlloyDBCSQLAdminClient(stub); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AlloyDBCSQLAdminStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AlloyDBCSQLAdminSettings getSettings() { + return settings; + } + + public AlloyDBCSQLAdminStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + LocationName parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClusterId(clusterId) + .build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + String parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder().setParent(parent).setClusterId(clusterId).build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(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 restoreFromCloudSQLAsync( + RestoreFromCloudSQLRequest request) { + return restoreFromCloudSQLOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + restoreFromCloudSQLOperationCallable() { + return stub.restoreFromCloudSQLOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable restoreFromCloudSQLCallable() { + return stub.restoreFromCloudSQLCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java new file mode 100644 index 000000000000..4a43885d3beb --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminSettings.java @@ -0,0 +1,288 @@ +/* + * 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.alloydb.v1alpha; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.alloydb.v1alpha.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).restoreFromCloudSQLSettings(); + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()) + .restoreFromCloudSQLOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AlloyDBCSQLAdminSettings create(AlloyDBCSQLAdminStubSettings stub) + throws IOException { + return new AlloyDBCSQLAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AlloyDBCSQLAdminStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AlloyDBCSQLAdminStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AlloyDBCSQLAdminStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AlloyDBCSQLAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); + } + + protected Builder(AlloyDBCSQLAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AlloyDBCSQLAdminStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder()); + } + + public AlloyDBCSQLAdminStubSettings.Builder getStubSettingsBuilder() { + return ((AlloyDBCSQLAdminStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLSettings(); + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AlloyDBCSQLAdminSettings build() throws IOException { + return new AlloyDBCSQLAdminSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/gapic_metadata.json b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/gapic_metadata.json index a24ea45c63dd..6b71986d2845 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/gapic_metadata.json +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/gapic_metadata.json @@ -5,6 +5,24 @@ "protoPackage": "google.cloud.alloydb.v1alpha", "libraryPackage": "com.google.cloud.alloydb.v1alpha", "services": { + "AlloyDBCSQLAdmin": { + "clients": { + "grpc": { + "libraryClient": "AlloyDBCSQLAdminClient", + "rpcs": { + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RestoreFromCloudSQL": { + "methods": ["restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLOperationCallable", "restoreFromCloudSQLCallable"] + } + } + } + } + }, "AlloyDBAdmin": { "clients": { "grpc": { @@ -46,6 +64,9 @@ "ExecuteSql": { "methods": ["executeSql", "executeSql", "executeSql", "executeSqlCallable"] }, + "ExportCluster": { + "methods": ["exportClusterAsync", "exportClusterAsync", "exportClusterAsync", "exportClusterOperationCallable", "exportClusterCallable"] + }, "FailoverInstance": { "methods": ["failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceAsync", "failoverInstanceOperationCallable", "failoverInstanceCallable"] }, @@ -70,6 +91,9 @@ "GetUser": { "methods": ["getUser", "getUser", "getUser", "getUserCallable"] }, + "ImportCluster": { + "methods": ["importClusterAsync", "importClusterAsync", "importClusterAsync", "importClusterOperationCallable", "importClusterCallable"] + }, "InjectFault": { "methods": ["injectFaultAsync", "injectFaultAsync", "injectFaultAsync", "injectFaultOperationCallable", "injectFaultCallable"] }, diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/package-info.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/package-info.java index 044991dd07b8..835009327da1 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/package-info.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/package-info.java @@ -19,6 +19,24 @@ * *

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

======================= AlloyDBCSQLAdminClient ======================= + * + *

Service Description: Service for interactions with CloudSQL. + * + *

Sample for AlloyDBCSQLAdminClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * *

======================= AlloyDBAdminClient ======================= * *

Service Description: Service describing handlers for resources diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java index f2319c2793a1..d2bb252789cb 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStub.java @@ -45,6 +45,8 @@ import com.google.cloud.alloydb.v1alpha.DeleteUserRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; import com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse; @@ -53,6 +55,8 @@ import com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1alpha.GetInstanceRequest; import com.google.cloud.alloydb.v1alpha.GetUserRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; import com.google.cloud.alloydb.v1alpha.InjectFaultRequest; import com.google.cloud.alloydb.v1alpha.Instance; import com.google.cloud.alloydb.v1alpha.ListBackupsRequest; @@ -136,6 +140,24 @@ public UnaryCallable updateClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); } + public OperationCallable + exportClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: exportClusterOperationCallable()"); + } + + public UnaryCallable exportClusterCallable() { + throw new UnsupportedOperationException("Not implemented: exportClusterCallable()"); + } + + public OperationCallable + importClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterOperationCallable()"); + } + + public UnaryCallable importClusterCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterCallable()"); + } + public OperationCallable upgradeClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: upgradeClusterOperationCallable()"); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java index 7b77da8b1f0e..a80f26e37c32 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBAdminStubSettings.java @@ -72,6 +72,8 @@ import com.google.cloud.alloydb.v1alpha.DeleteUserRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; import com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse; @@ -80,6 +82,8 @@ import com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1alpha.GetInstanceRequest; import com.google.cloud.alloydb.v1alpha.GetUserRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; import com.google.cloud.alloydb.v1alpha.InjectFaultRequest; import com.google.cloud.alloydb.v1alpha.Instance; import com.google.cloud.alloydb.v1alpha.ListBackupsRequest; @@ -215,6 +219,14 @@ public class AlloyDBAdminStubSettings extends StubSettings updateClusterSettings; private final OperationCallSettings updateClusterOperationSettings; + private final UnaryCallSettings exportClusterSettings; + private final OperationCallSettings< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings; + private final UnaryCallSettings importClusterSettings; + private final OperationCallSettings< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; private final UnaryCallSettings upgradeClusterSettings; private final OperationCallSettings< UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> @@ -717,6 +729,28 @@ public UnaryCallSettings updateClusterSettings( return updateClusterOperationSettings; } + /** Returns the object with the settings used for calls to exportCluster. */ + public UnaryCallSettings exportClusterSettings() { + return exportClusterSettings; + } + + /** Returns the object with the settings used for calls to exportCluster. */ + public OperationCallSettings + exportClusterOperationSettings() { + return exportClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return importClusterSettings; + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return importClusterOperationSettings; + } + /** Returns the object with the settings used for calls to upgradeCluster. */ public UnaryCallSettings upgradeClusterSettings() { return upgradeClusterSettings; @@ -1114,6 +1148,10 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); updateClusterSettings = settingsBuilder.updateClusterSettings().build(); updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); + exportClusterSettings = settingsBuilder.exportClusterSettings().build(); + exportClusterOperationSettings = settingsBuilder.exportClusterOperationSettings().build(); + importClusterSettings = settingsBuilder.importClusterSettings().build(); + importClusterOperationSettings = settingsBuilder.importClusterOperationSettings().build(); upgradeClusterSettings = settingsBuilder.upgradeClusterSettings().build(); upgradeClusterOperationSettings = settingsBuilder.upgradeClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); @@ -1184,6 +1222,14 @@ public static class Builder extends StubSettings.Builder updateClusterSettings; private final OperationCallSettings.Builder updateClusterOperationSettings; + private final UnaryCallSettings.Builder exportClusterSettings; + private final OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings; + private final UnaryCallSettings.Builder importClusterSettings; + private final OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; private final UnaryCallSettings.Builder upgradeClusterSettings; private final OperationCallSettings.Builder< @@ -1341,6 +1387,10 @@ protected Builder(ClientContext clientContext) { createClusterOperationSettings = OperationCallSettings.newBuilder(); updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateClusterOperationSettings = OperationCallSettings.newBuilder(); + exportClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportClusterOperationSettings = OperationCallSettings.newBuilder(); + importClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importClusterOperationSettings = OperationCallSettings.newBuilder(); upgradeClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); upgradeClusterOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1399,6 +1449,8 @@ protected Builder(ClientContext clientContext) { getClusterSettings, createClusterSettings, updateClusterSettings, + exportClusterSettings, + importClusterSettings, upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, @@ -1444,6 +1496,10 @@ protected Builder(AlloyDBAdminStubSettings settings) { createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); updateClusterSettings = settings.updateClusterSettings.toBuilder(); updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); + exportClusterSettings = settings.exportClusterSettings.toBuilder(); + exportClusterOperationSettings = settings.exportClusterOperationSettings.toBuilder(); + importClusterSettings = settings.importClusterSettings.toBuilder(); + importClusterOperationSettings = settings.importClusterOperationSettings.toBuilder(); upgradeClusterSettings = settings.upgradeClusterSettings.toBuilder(); upgradeClusterOperationSettings = settings.upgradeClusterOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); @@ -1504,6 +1560,8 @@ protected Builder(AlloyDBAdminStubSettings settings) { getClusterSettings, createClusterSettings, updateClusterSettings, + exportClusterSettings, + importClusterSettings, upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, @@ -1584,6 +1642,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .exportClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .importClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .upgradeClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1797,6 +1865,54 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ExportClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + + builder + .importClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + builder .upgradeClusterOperationSettings() .setInitialCallSettings( @@ -2257,6 +2373,30 @@ public UnaryCallSettings.Builder updateClusterS return updateClusterOperationSettings; } + /** Returns the builder for the settings used for calls to exportCluster. */ + public UnaryCallSettings.Builder exportClusterSettings() { + return exportClusterSettings; + } + + /** Returns the builder for the settings used for calls to exportCluster. */ + public OperationCallSettings.Builder< + ExportClusterRequest, ExportClusterResponse, OperationMetadata> + exportClusterOperationSettings() { + return exportClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return importClusterSettings; + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return importClusterOperationSettings; + } + /** Returns the builder for the settings used for calls to upgradeCluster. */ public UnaryCallSettings.Builder upgradeClusterSettings() { return upgradeClusterSettings; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..2fb2ba009bf5 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStub.java @@ -0,0 +1,79 @@ +/* + * 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.alloydb.v1alpha.stub; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + restoreFromCloudSQLOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreFromCloudSQLOperationCallable()"); + } + + public UnaryCallable restoreFromCloudSQLCallable() { + throw new UnsupportedOperationException("Not implemented: restoreFromCloudSQLCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java new file mode 100644 index 000000000000..56f0cb9ebbc2 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/AlloyDBCSQLAdminStubSettings.java @@ -0,0 +1,526 @@ +/* + * 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.alloydb.v1alpha.stub; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + restoreFromCloudSQLSettings; + private final OperationCallSettings + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AlloyDBCSQLAdminStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAlloyDBCSQLAdminStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAlloyDBCSQLAdminStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "alloydb"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "alloydb.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "alloydb.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + restoreFromCloudSQLSettings = settingsBuilder.restoreFromCloudSQLSettings().build(); + restoreFromCloudSQLOperationSettings = + settingsBuilder.restoreFromCloudSQLOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for AlloyDBCSQLAdminStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + restoreFromCloudSQLSettings; + private final OperationCallSettings.Builder< + RestoreFromCloudSQLRequest, Cluster, OperationMetadata> + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreFromCloudSQLOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + initDefaults(this); + } + + protected Builder(AlloyDBCSQLAdminStubSettings settings) { + super(settings); + + restoreFromCloudSQLSettings = settings.restoreFromCloudSQLSettings.toBuilder(); + restoreFromCloudSQLOperationSettings = + settings.restoreFromCloudSQLOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .restoreFromCloudSQLSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .restoreFromCloudSQLOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AlloyDBCSQLAdminStubSettings build() throws IOException { + return new AlloyDBCSQLAdminStubSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBAdminStub.java index 0d5808850684..9aee1dfbde3e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBAdminStub.java @@ -50,6 +50,8 @@ import com.google.cloud.alloydb.v1alpha.DeleteUserRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; import com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse; @@ -58,6 +60,8 @@ import com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1alpha.GetInstanceRequest; import com.google.cloud.alloydb.v1alpha.GetUserRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; import com.google.cloud.alloydb.v1alpha.InjectFaultRequest; import com.google.cloud.alloydb.v1alpha.Instance; import com.google.cloud.alloydb.v1alpha.ListBackupsRequest; @@ -144,6 +148,26 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + exportClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1alpha.AlloyDBAdmin/ExportCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + importClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1alpha.AlloyDBAdmin/ImportCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor upgradeClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -475,6 +499,12 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable exportClusterCallable; + private final OperationCallable + exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; private final UnaryCallable upgradeClusterCallable; private final OperationCallable upgradeClusterOperationCallable; @@ -642,6 +672,26 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings exportClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings importClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings upgradeClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(upgradeClusterMethodDescriptor) @@ -1006,6 +1056,24 @@ protected GrpcAlloyDBAdminStub( settings.updateClusterOperationSettings(), clientContext, operationsStub); + this.exportClusterCallable = + callableFactory.createUnaryCallable( + exportClusterTransportSettings, settings.exportClusterSettings(), clientContext); + this.exportClusterOperationCallable = + callableFactory.createOperationCallable( + exportClusterTransportSettings, + settings.exportClusterOperationSettings(), + clientContext, + operationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + operationsStub); this.upgradeClusterCallable = callableFactory.createUnaryCallable( upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); @@ -1287,6 +1355,28 @@ public UnaryCallable updateClusterCallable() { return updateClusterOperationCallable; } + @Override + public UnaryCallable exportClusterCallable() { + return exportClusterCallable; + } + + @Override + public OperationCallable + exportClusterOperationCallable() { + return exportClusterOperationCallable; + } + + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + @Override public UnaryCallable upgradeClusterCallable() { return upgradeClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..45b4e3fb941c --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.alloydb.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..17a27ee2c043 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/GrpcAlloyDBCSQLAdminStub.java @@ -0,0 +1,258 @@ +/* + * 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.alloydb.v1alpha.stub; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final MethodDescriptor + restoreFromCloudSQLMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreFromCloudSQLRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAlloyDBCSQLAdminStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings restoreFromCloudSQLTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBAdminStub.java index fa8a7cd223b6..38ac5c4acd67 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBAdminStub.java @@ -58,6 +58,8 @@ import com.google.cloud.alloydb.v1alpha.DeleteUserRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlRequest; import com.google.cloud.alloydb.v1alpha.ExecuteSqlResponse; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; import com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest; import com.google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse; @@ -66,6 +68,8 @@ import com.google.cloud.alloydb.v1alpha.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1alpha.GetInstanceRequest; import com.google.cloud.alloydb.v1alpha.GetUserRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; import com.google.cloud.alloydb.v1alpha.InjectFaultRequest; import com.google.cloud.alloydb.v1alpha.Instance; import com.google.cloud.alloydb.v1alpha.ListBackupsRequest; @@ -124,6 +128,8 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { .add(BatchCreateInstancesResponse.getDescriptor()) .add(OperationMetadata.getDescriptor()) .add(Instance.getDescriptor()) + .add(ImportClusterResponse.getDescriptor()) + .add(ExportClusterResponse.getDescriptor()) .add(Backup.getDescriptor()) .add(Cluster.getDescriptor()) .build(); @@ -291,6 +297,86 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + exportClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1alpha.AlloyDBAdmin/ExportCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/clusters/*}:export", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1alpha.AlloyDBAdmin/ImportCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/clusters/*}:import", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor upgradeClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1215,6 +1301,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "scope", request.getScopeValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1600,6 +1687,12 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable updateClusterCallable; private final OperationCallable updateClusterOperationCallable; + private final UnaryCallable exportClusterCallable; + private final OperationCallable + exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; private final UnaryCallable upgradeClusterCallable; private final OperationCallable upgradeClusterOperationCallable; @@ -1799,6 +1892,28 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings exportClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings importClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings upgradeClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(upgradeClusterMethodDescriptor) @@ -2201,6 +2316,24 @@ protected HttpJsonAlloyDBAdminStub( settings.updateClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.exportClusterCallable = + callableFactory.createUnaryCallable( + exportClusterTransportSettings, settings.exportClusterSettings(), clientContext); + this.exportClusterOperationCallable = + callableFactory.createOperationCallable( + exportClusterTransportSettings, + settings.exportClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); this.upgradeClusterCallable = callableFactory.createUnaryCallable( upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); @@ -2448,6 +2581,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(getClusterMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(exportClusterMethodDescriptor); + methodDescriptors.add(importClusterMethodDescriptor); methodDescriptors.add(upgradeClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(promoteClusterMethodDescriptor); @@ -2525,6 +2660,28 @@ public UnaryCallable updateClusterCallable() { return updateClusterOperationCallable; } + @Override + public UnaryCallable exportClusterCallable() { + return exportClusterCallable; + } + + @Override + public OperationCallable + exportClusterOperationCallable() { + return exportClusterOperationCallable; + } + + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + @Override public UnaryCallable upgradeClusterCallable() { return upgradeClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..c3ae13ec6290 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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.alloydb.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..161a183ae208 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/HttpJsonAlloyDBCSQLAdminStub.java @@ -0,0 +1,394 @@ +/* + * 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.alloydb.v1alpha.stub; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(OperationMetadata.getDescriptor()) + .add(Cluster.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + restoreFromCloudSQLMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreFromCloudSQLRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1alpha/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + restoreFromCloudSQLTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(restoreFromCloudSQLMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java index 567cca4f0be8..00c1844f1eaa 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClient.java @@ -171,6 +171,26 @@ * * * + *

ImportCluster + *

Imports data to the cluster. Imperative only. + * + *

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

+ *
    + *
  • importClusterAsync(ImportClusterRequest request) + *

+ *

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

+ *
    + *
  • importClusterAsync(ClusterName name, String gcsUri, String database, String user) + *

  • importClusterAsync(String name, String gcsUri, String database, String user) + *

+ *

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

+ *
    + *
  • importClusterOperationCallable() + *

  • importClusterCallable() + *

+ * + * + * *

UpgradeCluster *

Upgrades a single Cluster. Imperative only. * @@ -1713,6 +1733,190 @@ public final UnaryCallable exportClusterCallabl return stub.exportClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + ClusterName name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   String gcsUri = "gcsUri-1251224875";
+   *   String database = "database1789464955";
+   *   String user = "user3599307";
+   *   ImportClusterResponse response =
+   *       alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the cluster. + * @param gcsUri Required. The path to the file in Google Cloud Storage where the source file for + * import will be stored. The URI is in the form `gs://bucketName/fileName`. + * @param database Optional. Name of the database to which the import will be done. For import + * from SQL file, this is required only if the file does not specify a database. Note - Value + * provided should be the same as expected from `SELECT current_database();` and NOT as a + * resource reference. + * @param user Optional. Database user to be used for importing the data. Note - Value provided + * should be the same as expected from `SELECT current_user;` and NOT as a resource reference. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture importClusterAsync( + String name, String gcsUri, String database, String user) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(name) + .setGcsUri(gcsUri) + .setDatabase(database) + .setUser(user) + .build(); + return importClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(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 importClusterAsync( + ImportClusterRequest request) { + return importClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBAdminClient.importClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ImportClusterResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + importClusterOperationCallable() { + return stub.importClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports data to the cluster. Imperative only. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) {
+   *   ImportClusterRequest request =
+   *       ImportClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setGcsUri("gcsUri-1251224875")
+   *           .setDatabase("database1789464955")
+   *           .setUser("user3599307")
+   *           .build();
+   *   ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable importClusterCallable() { + return stub.importClusterCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Upgrades a single Cluster. Imperative only. diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java index 0ff29956d3a9..98b3769c0fa0 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminSettings.java @@ -170,6 +170,17 @@ public UnaryCallSettings exportClusterSettings( return ((AlloyDBAdminStubSettings) getStubSettings()).exportClusterOperationSettings(); } + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterSettings(); + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return ((AlloyDBAdminStubSettings) getStubSettings()).importClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to upgradeCluster. */ public UnaryCallSettings upgradeClusterSettings() { return ((AlloyDBAdminStubSettings) getStubSettings()).upgradeClusterSettings(); @@ -609,6 +620,18 @@ public UnaryCallSettings.Builder exportClusterS return getStubSettingsBuilder().exportClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return getStubSettingsBuilder().importClusterSettings(); + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return getStubSettingsBuilder().importClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to upgradeCluster. */ public UnaryCallSettings.Builder upgradeClusterSettings() { return getStubSettingsBuilder().upgradeClusterSettings(); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java new file mode 100644 index 000000000000..0fca4c21fef5 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClient.java @@ -0,0 +1,675 @@ +/* + * 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.alloydb.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1beta.stub.AlloyDBCSQLAdminStub; +import com.google.cloud.alloydb.v1beta.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for interactions with CloudSQL. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * + *

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

RestoreFromCloudSQL

Restores an AlloyDB cluster from a CloudSQL resource.

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLAsync(LocationName parent, String clusterId) + *

  • restoreFromCloudSQLAsync(String parent, String clusterId) + *

+ *

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

+ *
    + *
  • restoreFromCloudSQLOperationCallable() + *

  • restoreFromCloudSQLCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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

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

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

To customize credentials: + * + *

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

To customize the endpoint: + * + *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClient implements BackgroundResource { + private final AlloyDBCSQLAdminSettings settings; + private final AlloyDBCSQLAdminStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AlloyDBCSQLAdminClient with default settings. */ + public static final AlloyDBCSQLAdminClient create() throws IOException { + return create(AlloyDBCSQLAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminSettings settings) + throws IOException { + return new AlloyDBCSQLAdminClient(settings); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AlloyDBCSQLAdminSettings). + */ + public static final AlloyDBCSQLAdminClient create(AlloyDBCSQLAdminStub stub) { + return new AlloyDBCSQLAdminClient(stub); + } + + /** + * Constructs an instance of AlloyDBCSQLAdminClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AlloyDBCSQLAdminStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AlloyDBCSQLAdminClient(AlloyDBCSQLAdminStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AlloyDBCSQLAdminSettings getSettings() { + return settings; + } + + public AlloyDBCSQLAdminStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + LocationName parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setClusterId(clusterId) + .build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String clusterId = "clusterId561939637";
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get();
+   * }
+   * }
+ * + * @param parent Required. The location of the new cluster. For the required format, see the + * comment on Cluster.name field. + * @param clusterId Required. ID of the requesting object. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreFromCloudSQLAsync( + String parent, String clusterId) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder().setParent(parent).setClusterId(clusterId).build(); + return restoreFromCloudSQLAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(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 restoreFromCloudSQLAsync( + RestoreFromCloudSQLRequest request) { + return restoreFromCloudSQLOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + restoreFromCloudSQLOperationCallable() { + return stub.restoreFromCloudSQLOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores an AlloyDB cluster from a CloudSQL resource. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   RestoreFromCloudSQLRequest request =
+   *       RestoreFromCloudSQLRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setClusterId("clusterId561939637")
+   *           .setCluster(Cluster.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable restoreFromCloudSQLCallable() { + return stub.restoreFromCloudSQLCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java new file mode 100644 index 000000000000..8dd243a06af1 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminSettings.java @@ -0,0 +1,288 @@ +/* + * 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.alloydb.v1beta; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.alloydb.v1beta.stub.AlloyDBCSQLAdminStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminClient}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).restoreFromCloudSQLSettings(); + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()) + .restoreFromCloudSQLOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AlloyDBCSQLAdminStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AlloyDBCSQLAdminSettings create(AlloyDBCSQLAdminStubSettings stub) + throws IOException { + return new AlloyDBCSQLAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AlloyDBCSQLAdminStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AlloyDBCSQLAdminStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AlloyDBCSQLAdminStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AlloyDBCSQLAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AlloyDBCSQLAdminStubSettings.newBuilder(clientContext)); + } + + protected Builder(AlloyDBCSQLAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AlloyDBCSQLAdminStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder()); + } + + public AlloyDBCSQLAdminStubSettings.Builder getStubSettingsBuilder() { + return ((AlloyDBCSQLAdminStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLSettings(); + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return getStubSettingsBuilder().restoreFromCloudSQLOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AlloyDBCSQLAdminSettings build() throws IOException { + return new AlloyDBCSQLAdminSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/gapic_metadata.json b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/gapic_metadata.json index b3f86c863488..6fbcaaa0425e 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/gapic_metadata.json +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/gapic_metadata.json @@ -5,6 +5,24 @@ "protoPackage": "google.cloud.alloydb.v1beta", "libraryPackage": "com.google.cloud.alloydb.v1beta", "services": { + "AlloyDBCSQLAdmin": { + "clients": { + "grpc": { + "libraryClient": "AlloyDBCSQLAdminClient", + "rpcs": { + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RestoreFromCloudSQL": { + "methods": ["restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLAsync", "restoreFromCloudSQLOperationCallable", "restoreFromCloudSQLCallable"] + } + } + } + } + }, "AlloyDBAdmin": { "clients": { "grpc": { @@ -73,6 +91,9 @@ "GetUser": { "methods": ["getUser", "getUser", "getUser", "getUserCallable"] }, + "ImportCluster": { + "methods": ["importClusterAsync", "importClusterAsync", "importClusterAsync", "importClusterOperationCallable", "importClusterCallable"] + }, "InjectFault": { "methods": ["injectFaultAsync", "injectFaultAsync", "injectFaultAsync", "injectFaultOperationCallable", "injectFaultCallable"] }, diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/package-info.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/package-info.java index 7995e8851f6d..3bf6d0ff8b6c 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/package-info.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/package-info.java @@ -19,6 +19,24 @@ * *

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

======================= AlloyDBCSQLAdminClient ======================= + * + *

Service Description: Service for interactions with CloudSQL. + * + *

Sample for AlloyDBCSQLAdminClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) {
+ *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ *   Location response = alloyDBCSQLAdminClient.getLocation(request);
+ * }
+ * }
+ * *

======================= AlloyDBAdminClient ======================= * *

Service Description: Service describing handlers for resources diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java index 493ef677926d..ab5905297d46 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStub.java @@ -55,6 +55,8 @@ import com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1beta.GetInstanceRequest; import com.google.cloud.alloydb.v1beta.GetUserRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; import com.google.cloud.alloydb.v1beta.InjectFaultRequest; import com.google.cloud.alloydb.v1beta.Instance; import com.google.cloud.alloydb.v1beta.ListBackupsRequest; @@ -147,6 +149,15 @@ public UnaryCallable exportClusterCallable() { throw new UnsupportedOperationException("Not implemented: exportClusterCallable()"); } + public OperationCallable + importClusterOperationCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterOperationCallable()"); + } + + public UnaryCallable importClusterCallable() { + throw new UnsupportedOperationException("Not implemented: importClusterCallable()"); + } + public OperationCallable upgradeClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: upgradeClusterOperationCallable()"); diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java index 88574f3840f7..42b513bf3e3c 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBAdminStubSettings.java @@ -82,6 +82,8 @@ import com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1beta.GetInstanceRequest; import com.google.cloud.alloydb.v1beta.GetUserRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; import com.google.cloud.alloydb.v1beta.InjectFaultRequest; import com.google.cloud.alloydb.v1beta.Instance; import com.google.cloud.alloydb.v1beta.ListBackupsRequest; @@ -221,6 +223,10 @@ public class AlloyDBAdminStubSettings extends StubSettings exportClusterOperationSettings; + private final UnaryCallSettings importClusterSettings; + private final OperationCallSettings< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; private final UnaryCallSettings upgradeClusterSettings; private final OperationCallSettings< UpgradeClusterRequest, UpgradeClusterResponse, OperationMetadata> @@ -734,6 +740,17 @@ public UnaryCallSettings exportClusterSettings( return exportClusterOperationSettings; } + /** Returns the object with the settings used for calls to importCluster. */ + public UnaryCallSettings importClusterSettings() { + return importClusterSettings; + } + + /** Returns the object with the settings used for calls to importCluster. */ + public OperationCallSettings + importClusterOperationSettings() { + return importClusterOperationSettings; + } + /** Returns the object with the settings used for calls to upgradeCluster. */ public UnaryCallSettings upgradeClusterSettings() { return upgradeClusterSettings; @@ -1133,6 +1150,8 @@ protected AlloyDBAdminStubSettings(Builder settingsBuilder) throws IOException { updateClusterOperationSettings = settingsBuilder.updateClusterOperationSettings().build(); exportClusterSettings = settingsBuilder.exportClusterSettings().build(); exportClusterOperationSettings = settingsBuilder.exportClusterOperationSettings().build(); + importClusterSettings = settingsBuilder.importClusterSettings().build(); + importClusterOperationSettings = settingsBuilder.importClusterOperationSettings().build(); upgradeClusterSettings = settingsBuilder.upgradeClusterSettings().build(); upgradeClusterOperationSettings = settingsBuilder.upgradeClusterOperationSettings().build(); deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); @@ -1207,6 +1226,10 @@ public static class Builder extends StubSettings.Builder exportClusterOperationSettings; + private final UnaryCallSettings.Builder importClusterSettings; + private final OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings; private final UnaryCallSettings.Builder upgradeClusterSettings; private final OperationCallSettings.Builder< @@ -1366,6 +1389,8 @@ protected Builder(ClientContext clientContext) { updateClusterOperationSettings = OperationCallSettings.newBuilder(); exportClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportClusterOperationSettings = OperationCallSettings.newBuilder(); + importClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importClusterOperationSettings = OperationCallSettings.newBuilder(); upgradeClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); upgradeClusterOperationSettings = OperationCallSettings.newBuilder(); deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1425,6 +1450,7 @@ protected Builder(ClientContext clientContext) { createClusterSettings, updateClusterSettings, exportClusterSettings, + importClusterSettings, upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, @@ -1472,6 +1498,8 @@ protected Builder(AlloyDBAdminStubSettings settings) { updateClusterOperationSettings = settings.updateClusterOperationSettings.toBuilder(); exportClusterSettings = settings.exportClusterSettings.toBuilder(); exportClusterOperationSettings = settings.exportClusterOperationSettings.toBuilder(); + importClusterSettings = settings.importClusterSettings.toBuilder(); + importClusterOperationSettings = settings.importClusterOperationSettings.toBuilder(); upgradeClusterSettings = settings.upgradeClusterSettings.toBuilder(); upgradeClusterOperationSettings = settings.upgradeClusterOperationSettings.toBuilder(); deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); @@ -1533,6 +1561,7 @@ protected Builder(AlloyDBAdminStubSettings settings) { createClusterSettings, updateClusterSettings, exportClusterSettings, + importClusterSettings, upgradeClusterSettings, deleteClusterSettings, promoteClusterSettings, @@ -1618,6 +1647,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .importClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .upgradeClusterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1855,6 +1889,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .importClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ImportClusterResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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())); + builder .upgradeClusterOperationSettings() .setInitialCallSettings( @@ -2327,6 +2385,18 @@ public UnaryCallSettings.Builder exportClusterS return exportClusterOperationSettings; } + /** Returns the builder for the settings used for calls to importCluster. */ + public UnaryCallSettings.Builder importClusterSettings() { + return importClusterSettings; + } + + /** Returns the builder for the settings used for calls to importCluster. */ + public OperationCallSettings.Builder< + ImportClusterRequest, ImportClusterResponse, OperationMetadata> + importClusterOperationSettings() { + return importClusterOperationSettings; + } + /** Returns the builder for the settings used for calls to upgradeCluster. */ public UnaryCallSettings.Builder upgradeClusterSettings() { return upgradeClusterSettings; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..5b5e1f07d0e7 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStub.java @@ -0,0 +1,79 @@ +/* + * 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.alloydb.v1beta.stub; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.OperationMetadata; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AlloyDBCSQLAdminStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + restoreFromCloudSQLOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreFromCloudSQLOperationCallable()"); + } + + public UnaryCallable restoreFromCloudSQLCallable() { + throw new UnsupportedOperationException("Not implemented: restoreFromCloudSQLCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java new file mode 100644 index 000000000000..bd5ea072233c --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/AlloyDBCSQLAdminStubSettings.java @@ -0,0 +1,526 @@ +/* + * 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.alloydb.v1beta.stub; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.OperationMetadata; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AlloyDBCSQLAdminStub}. + * + *

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

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

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

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .getLocationSettings()
+ *     .setRetrySettings(
+ *         alloyDBCSQLAdminSettingsBuilder
+ *             .getLocationSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder =
+ *     AlloyDBCSQLAdminStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * alloyDBCSQLAdminSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + restoreFromCloudSQLSettings; + private final OperationCallSettings + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the object with the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AlloyDBCSQLAdminStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAlloyDBCSQLAdminStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAlloyDBCSQLAdminStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "alloydb"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "alloydb.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "alloydb.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlloyDBCSQLAdminStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlloyDBCSQLAdminStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AlloyDBCSQLAdminStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + restoreFromCloudSQLSettings = settingsBuilder.restoreFromCloudSQLSettings().build(); + restoreFromCloudSQLOperationSettings = + settingsBuilder.restoreFromCloudSQLOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for AlloyDBCSQLAdminStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + restoreFromCloudSQLSettings; + private final OperationCallSettings.Builder< + RestoreFromCloudSQLRequest, Cluster, OperationMetadata> + restoreFromCloudSQLOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + restoreFromCloudSQLSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreFromCloudSQLOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + initDefaults(this); + } + + protected Builder(AlloyDBCSQLAdminStubSettings settings) { + super(settings); + + restoreFromCloudSQLSettings = settings.restoreFromCloudSQLSettings.toBuilder(); + restoreFromCloudSQLOperationSettings = + settings.restoreFromCloudSQLOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + restoreFromCloudSQLSettings, listLocationsSettings, getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .restoreFromCloudSQLSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .restoreFromCloudSQLOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Cluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.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; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public UnaryCallSettings.Builder + restoreFromCloudSQLSettings() { + return restoreFromCloudSQLSettings; + } + + /** Returns the builder for the settings used for calls to restoreFromCloudSQL. */ + public OperationCallSettings.Builder + restoreFromCloudSQLOperationSettings() { + return restoreFromCloudSQLOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AlloyDBCSQLAdminStubSettings build() throws IOException { + return new AlloyDBCSQLAdminStubSettings(this); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBAdminStub.java index 26904a086055..decdd64584f7 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBAdminStub.java @@ -60,6 +60,8 @@ import com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1beta.GetInstanceRequest; import com.google.cloud.alloydb.v1beta.GetUserRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; import com.google.cloud.alloydb.v1beta.InjectFaultRequest; import com.google.cloud.alloydb.v1beta.Instance; import com.google.cloud.alloydb.v1beta.ListBackupsRequest; @@ -156,6 +158,16 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + importClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1beta.AlloyDBAdmin/ImportCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor upgradeClusterMethodDescriptor = MethodDescriptor.newBuilder() @@ -489,6 +501,9 @@ public class GrpcAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable exportClusterCallable; private final OperationCallable exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; private final UnaryCallable upgradeClusterCallable; private final OperationCallable upgradeClusterOperationCallable; @@ -666,6 +681,16 @@ protected GrpcAlloyDBAdminStub( return builder.build(); }) .build(); + GrpcCallSettings importClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings upgradeClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(upgradeClusterMethodDescriptor) @@ -1039,6 +1064,15 @@ protected GrpcAlloyDBAdminStub( settings.exportClusterOperationSettings(), clientContext, operationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + operationsStub); this.upgradeClusterCallable = callableFactory.createUnaryCallable( upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); @@ -1331,6 +1365,17 @@ public UnaryCallable exportClusterCallable() { return exportClusterOperationCallable; } + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + @Override public UnaryCallable upgradeClusterCallable() { return upgradeClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..af14c9331d51 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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.alloydb.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..983f9cf1ace2 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/GrpcAlloyDBCSQLAdminStub.java @@ -0,0 +1,257 @@ +/* + * 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.alloydb.v1beta.stub; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.OperationMetadata; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final MethodDescriptor + restoreFromCloudSQLMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreFromCloudSQLRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAlloyDBCSQLAdminStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of GrpcAlloyDBCSQLAdminStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings restoreFromCloudSQLTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBAdminStub.java index e3639090ab5f..a5b855fbcc3b 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBAdminStub.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBAdminStub.java @@ -68,6 +68,8 @@ import com.google.cloud.alloydb.v1beta.GetConnectionInfoRequest; import com.google.cloud.alloydb.v1beta.GetInstanceRequest; import com.google.cloud.alloydb.v1beta.GetUserRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; import com.google.cloud.alloydb.v1beta.InjectFaultRequest; import com.google.cloud.alloydb.v1beta.Instance; import com.google.cloud.alloydb.v1beta.ListBackupsRequest; @@ -129,6 +131,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { .add(BatchCreateInstancesResponse.getDescriptor()) .add(ExportClusterResponse.getDescriptor()) .add(Instance.getDescriptor()) + .add(ImportClusterResponse.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -334,6 +337,46 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + importClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1beta.AlloyDBAdmin/ImportCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/clusters/*}:import", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor upgradeClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1257,6 +1300,7 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "scope", request.getScopeValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1645,6 +1689,9 @@ public class HttpJsonAlloyDBAdminStub extends AlloyDBAdminStub { private final UnaryCallable exportClusterCallable; private final OperationCallable exportClusterOperationCallable; + private final UnaryCallable importClusterCallable; + private final OperationCallable + importClusterOperationCallable; private final UnaryCallable upgradeClusterCallable; private final OperationCallable upgradeClusterOperationCallable; @@ -1855,6 +1902,17 @@ protected HttpJsonAlloyDBAdminStub( return builder.build(); }) .build(); + HttpJsonCallSettings importClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings upgradeClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(upgradeClusterMethodDescriptor) @@ -2266,6 +2324,15 @@ protected HttpJsonAlloyDBAdminStub( settings.exportClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.importClusterCallable = + callableFactory.createUnaryCallable( + importClusterTransportSettings, settings.importClusterSettings(), clientContext); + this.importClusterOperationCallable = + callableFactory.createOperationCallable( + importClusterTransportSettings, + settings.importClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); this.upgradeClusterCallable = callableFactory.createUnaryCallable( upgradeClusterTransportSettings, settings.upgradeClusterSettings(), clientContext); @@ -2514,6 +2581,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(createClusterMethodDescriptor); methodDescriptors.add(updateClusterMethodDescriptor); methodDescriptors.add(exportClusterMethodDescriptor); + methodDescriptors.add(importClusterMethodDescriptor); methodDescriptors.add(upgradeClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(promoteClusterMethodDescriptor); @@ -2602,6 +2670,17 @@ public UnaryCallable exportClusterCallable() { return exportClusterOperationCallable; } + @Override + public UnaryCallable importClusterCallable() { + return importClusterCallable; + } + + @Override + public OperationCallable + importClusterOperationCallable() { + return importClusterOperationCallable; + } + @Override public UnaryCallable upgradeClusterCallable() { return upgradeClusterCallable; diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java new file mode 100644 index 000000000000..cc01feaaa35e --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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.alloydb.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminStub.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminStub.java new file mode 100644 index 000000000000..da955cb30ed3 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/HttpJsonAlloyDBCSQLAdminStub.java @@ -0,0 +1,393 @@ +/* + * 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.alloydb.v1beta.stub; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.OperationMetadata; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AlloyDBCSQLAdmin service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlloyDBCSQLAdminStub extends AlloyDBCSQLAdminStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(OperationMetadata.getDescriptor()) + .add(Cluster.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + restoreFromCloudSQLMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin/RestoreFromCloudSQL") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreFromCloudSQLRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable restoreFromCloudSQLCallable; + private final OperationCallable + restoreFromCloudSQLOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAlloyDBCSQLAdminStub create(AlloyDBCSQLAdminStubSettings settings) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAlloyDBCSQLAdminStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAlloyDBCSQLAdminCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAlloyDBCSQLAdminStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAlloyDBCSQLAdminStub( + AlloyDBCSQLAdminStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1beta/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + restoreFromCloudSQLTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreFromCloudSQLMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.restoreFromCloudSQLCallable = + callableFactory.createUnaryCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLSettings(), + clientContext); + this.restoreFromCloudSQLOperationCallable = + callableFactory.createOperationCallable( + restoreFromCloudSQLTransportSettings, + settings.restoreFromCloudSQLOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(restoreFromCloudSQLMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable restoreFromCloudSQLCallable() { + return restoreFromCloudSQLCallable; + } + + @Override + public OperationCallable + restoreFromCloudSQLOperationCallable() { + return restoreFromCloudSQLOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json index bc6efe3e50ce..bd0a20349384 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1/reflect-config.json @@ -683,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.CloudSQLBackupRunSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.CloudSQLBackupRunSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Cluster", "queryAllDeclaredConstructors": true, @@ -1223,6 +1241,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest$CsvExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest$CsvExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest$SqlExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterRequest$SqlExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ExportClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.FailoverInstanceRequest", "queryAllDeclaredConstructors": true, @@ -1241,6 +1331,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.GenerateClientCertificateRequest", "queryAllDeclaredConstructors": true, @@ -1367,6 +1475,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest$CsvImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest$CsvImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest$SqlImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterRequest$SqlImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.ImportClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.InjectFaultRequest", "queryAllDeclaredConstructors": true, @@ -1520,6 +1700,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$ObservabilityInstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscAutoConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscAutoConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1538,6 +1754,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscInterfaceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.Instance$PscInterfaceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.Instance$QueryInsightsInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1961,6 +2195,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.SqlResult", "queryAllDeclaredConstructors": true, @@ -2114,6 +2366,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.SupportedDatabaseFlag$Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.SupportedDatabaseFlag$StringRestrictions", "queryAllDeclaredConstructors": true, @@ -2231,6 +2492,186 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$ClusterUpgradeDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$ClusterUpgradeDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$InstanceUpgradeDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$InstanceUpgradeDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$Stage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$StageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$StageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterResponse$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$ReadPoolInstancesUpgradeStageStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$ReadPoolInstancesUpgradeStageStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$ReadPoolInstancesUpgradeStageStatus$Stats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$ReadPoolInstancesUpgradeStageStatus$Stats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$StageStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1.UpgradeClusterStatus$StageStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1.User", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json index 1c3a81d059fa..52605e43d27a 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1alpha/reflect-config.json @@ -1241,6 +1241,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest$CsvExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest$CsvExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest$SqlExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterRequest$SqlExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ExportClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.FailoverInstanceRequest", "queryAllDeclaredConstructors": true, @@ -1259,6 +1331,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.GCAEntitlementType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.GCAInstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.GCAInstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.GcsDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.GcsDestination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.GeminiClusterConfig", "queryAllDeclaredConstructors": true, @@ -1421,6 +1538,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest$CsvImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest$CsvImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest$SqlImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterRequest$SqlImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.ImportClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.InjectFaultRequest", "queryAllDeclaredConstructors": true, @@ -1592,6 +1781,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscAutoConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscAutoConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -2105,6 +2312,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.SqlResult", "queryAllDeclaredConstructors": true, @@ -2258,6 +2483,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag$Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag$StringRestrictions", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json index bfe9071ad8c3..22779432c99c 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json +++ b/java-alloydb/google-cloud-alloydb/src/main/resources/META-INF/native-image/com.google.cloud.alloydb.v1beta/reflect-config.json @@ -1331,6 +1331,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.GCAEntitlementType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.GCAInstanceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.GCAInstanceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.GcsDestination", "queryAllDeclaredConstructors": true, @@ -1511,6 +1538,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest$CsvImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest$CsvImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest$SqlImportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterRequest$SqlImportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.ImportClusterResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.InjectFaultRequest", "queryAllDeclaredConstructors": true, @@ -1682,6 +1781,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoConnectionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoConnectionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1700,6 +1817,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInterfaceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInterfaceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$QueryInsightsInstanceConfig", "queryAllDeclaredConstructors": true, @@ -2177,6 +2312,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.SqlResult", "queryAllDeclaredConstructors": true, @@ -2330,6 +2483,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag$Scope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag$StringRestrictions", "queryAllDeclaredConstructors": true, diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java index a7dbd6f72ff8..c36b3c015c4d 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientHttpJsonTest.java @@ -640,6 +640,346 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void exportClusterTest() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportClusterTest2() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void upgradeClusterTest() throws Exception { + UpgradeClusterResponse expectedResponse = + UpgradeClusterResponse.newBuilder() + .setMessage("message954925063") + .addAllClusterUpgradeDetails( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + DatabaseVersion version = DatabaseVersion.forNumber(0); + + UpgradeClusterResponse actualResponse = client.upgradeClusterAsync(name, version).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 upgradeClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + DatabaseVersion version = DatabaseVersion.forNumber(0); + client.upgradeClusterAsync(name, version).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void upgradeClusterTest2() throws Exception { + UpgradeClusterResponse expectedResponse = + UpgradeClusterResponse.newBuilder() + .setMessage("message954925063") + .addAllClusterUpgradeDetails( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + DatabaseVersion version = DatabaseVersion.forNumber(0); + + UpgradeClusterResponse actualResponse = client.upgradeClusterAsync(name, version).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 upgradeClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + DatabaseVersion version = DatabaseVersion.forNumber(0); + client.upgradeClusterAsync(name, version).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -1409,6 +1749,7 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1477,6 +1818,7 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1547,6 +1889,7 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1624,6 +1967,7 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1701,6 +2045,7 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1779,6 +2124,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1916,6 +2262,7 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1952,6 +2299,7 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2008,6 +2356,7 @@ public void updateInstanceExceptionTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2137,6 +2486,7 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2210,6 +2560,7 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2285,6 +2636,7 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2360,6 +2712,7 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2437,6 +2790,7 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2510,6 +2864,7 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java index b9e5e026fb0f..932f2567ab80 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBAdminClientTest.java @@ -559,6 +559,344 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void exportClusterTest() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportClusterRequest actualRequest = ((ExportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(gcsDestination, actualRequest.getGcsDestination()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(csvExportOptions, actualRequest.getCsvExportOptions()); + Assert.assertEquals(sqlExportOptions, actualRequest.getSqlExportOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterTest2() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportClusterRequest actualRequest = ((ExportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(gcsDestination, actualRequest.getGcsDestination()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(csvExportOptions, actualRequest.getCsvExportOptions()); + Assert.assertEquals(sqlExportOptions, actualRequest.getSqlExportOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 upgradeClusterTest() throws Exception { + UpgradeClusterResponse expectedResponse = + UpgradeClusterResponse.newBuilder() + .setMessage("message954925063") + .addAllClusterUpgradeDetails( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + DatabaseVersion version = DatabaseVersion.forNumber(0); + + UpgradeClusterResponse actualResponse = client.upgradeClusterAsync(name, version).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpgradeClusterRequest actualRequest = ((UpgradeClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(version, actualRequest.getVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void upgradeClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + DatabaseVersion version = DatabaseVersion.forNumber(0); + client.upgradeClusterAsync(name, version).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 upgradeClusterTest2() throws Exception { + UpgradeClusterResponse expectedResponse = + UpgradeClusterResponse.newBuilder() + .setMessage("message954925063") + .addAllClusterUpgradeDetails( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("upgradeClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + DatabaseVersion version = DatabaseVersion.forNumber(0); + + UpgradeClusterResponse actualResponse = client.upgradeClusterAsync(name, version).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpgradeClusterRequest actualRequest = ((UpgradeClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(version, actualRequest.getVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void upgradeClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + DatabaseVersion version = DatabaseVersion.forNumber(0); + client.upgradeClusterAsync(name, version).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteClusterTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -1302,6 +1640,7 @@ public void getInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1364,6 +1703,7 @@ public void getInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1426,6 +1766,7 @@ public void createInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1502,6 +1843,7 @@ public void createInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1578,6 +1920,7 @@ public void createSecondaryInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1656,6 +1999,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1793,6 +2137,7 @@ public void updateInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -1950,6 +2295,7 @@ public void failoverInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2020,6 +2366,7 @@ public void failoverInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2090,6 +2437,7 @@ public void injectFaultTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2163,6 +2511,7 @@ public void injectFaultTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2236,6 +2585,7 @@ public void restartInstanceTest() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") @@ -2306,6 +2656,7 @@ public void restartInstanceTest2() throws Exception { .setWritableNode(Instance.Node.newBuilder().build()) .addAllNodes(new ArrayList()) .setQueryInsightsConfig(Instance.QueryInsightsInstanceConfig.newBuilder().build()) + .setObservabilityConfig(Instance.ObservabilityInstanceConfig.newBuilder().build()) .setReadPoolConfig(Instance.ReadPoolConfig.newBuilder().build()) .setIpAddress("ipAddress1634032845") .setPublicIpAddress("publicIpAddress2055303268") diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientHttpJsonTest.java new file mode 100644 index 000000000000..a6365dfc12d6 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientHttpJsonTest.java @@ -0,0 +1,360 @@ +/* + * 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.alloydb.v1; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.alloydb.v1.stub.HttpJsonAlloyDBCSQLAdminStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAlloyDBCSQLAdminStub.getMethodDescriptors(), + AlloyDBCSQLAdminSettings.getDefaultEndpoint()); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AlloyDBCSQLAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest() 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]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientTest.java new file mode 100644 index 000000000000..d2a35715e045 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminClientTest.java @@ -0,0 +1,350 @@ +/* + * 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.alloydb.v1; + +import static com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientTest { + private static MockAlloyDBCSQLAdmin mockAlloyDBCSQLAdmin; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockAlloyDBCSQLAdmin = new MockAlloyDBCSQLAdmin(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAlloyDBCSQLAdmin, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java index d1b1ae458431..62ea8a212f07 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBAdminImpl.java @@ -143,6 +143,69 @@ public void updateCluster( } } + @Override + public void exportCluster( + ExportClusterRequest 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 ExportCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importCluster( + ImportClusterRequest 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 ImportCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void upgradeCluster( + UpgradeClusterRequest 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 UpgradeCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteCluster( DeleteClusterRequest request, StreamObserver responseObserver) { diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdmin.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdmin.java new file mode 100644 index 000000000000..0c7b525b08a9 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdmin.java @@ -0,0 +1,59 @@ +/* + * 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.alloydb.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdmin implements MockGrpcService { + private final MockAlloyDBCSQLAdminImpl serviceImpl; + + public MockAlloyDBCSQLAdmin() { + serviceImpl = new MockAlloyDBCSQLAdminImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdminImpl.java new file mode 100644 index 000000000000..d52d7e35b65c --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1/MockAlloyDBCSQLAdminImpl.java @@ -0,0 +1,82 @@ +/* + * 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.alloydb.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminGrpc.AlloyDBCSQLAdminImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdminImpl extends AlloyDBCSQLAdminImplBase { + private List requests; + private Queue responses; + + public MockAlloyDBCSQLAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void restoreFromCloudSQL( + RestoreFromCloudSQLRequest 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 RestoreFromCloudSQL, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java index 7d0cf38f67ec..5182db02e618 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientHttpJsonTest.java @@ -654,6 +654,240 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void exportClusterTest() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportClusterTest2() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void upgradeClusterTest() throws Exception { UpgradeClusterResponse expectedResponse = @@ -1558,6 +1792,7 @@ public void getInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1630,6 +1865,7 @@ public void getInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1704,6 +1940,7 @@ public void createInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1785,6 +2022,7 @@ public void createInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1866,6 +2104,7 @@ public void createSecondaryInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1948,6 +2187,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2089,6 +2329,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2129,6 +2370,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2189,6 +2431,7 @@ public void updateInstanceExceptionTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, updateMask).get(); @@ -2322,6 +2565,7 @@ public void failoverInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2399,6 +2643,7 @@ public void failoverInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2478,6 +2723,7 @@ public void injectFaultTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2557,6 +2803,7 @@ public void injectFaultTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2638,6 +2885,7 @@ public void restartInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2715,6 +2963,7 @@ public void restartInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java index 362412eab6f5..79194e5af150 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminClientTest.java @@ -569,6 +569,242 @@ public void updateClusterExceptionTest() throws Exception { } } + @Test + public void exportClusterTest() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportClusterRequest actualRequest = ((ExportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(gcsDestination, actualRequest.getGcsDestination()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(csvExportOptions, actualRequest.getCsvExportOptions()); + Assert.assertEquals(sqlExportOptions, actualRequest.getSqlExportOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 exportClusterTest2() throws Exception { + ExportClusterResponse expectedResponse = ExportClusterResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + + ExportClusterResponse actualResponse = + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportClusterRequest actualRequest = ((ExportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(gcsDestination, actualRequest.getGcsDestination()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(csvExportOptions, actualRequest.getCsvExportOptions()); + Assert.assertEquals(sqlExportOptions, actualRequest.getSqlExportOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + client + .exportClusterAsync(name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .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 importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 upgradeClusterTest() throws Exception { UpgradeClusterResponse expectedResponse = @@ -1443,6 +1679,7 @@ public void getInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1509,6 +1746,7 @@ public void getInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1575,6 +1813,7 @@ public void createInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1655,6 +1894,7 @@ public void createInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1735,6 +1975,7 @@ public void createSecondaryInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1817,6 +2058,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1958,6 +2200,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2119,6 +2362,7 @@ public void failoverInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2193,6 +2437,7 @@ public void failoverInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2267,6 +2512,7 @@ public void injectFaultTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2344,6 +2590,7 @@ public void injectFaultTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2421,6 +2668,7 @@ public void restartInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2495,6 +2743,7 @@ public void restartInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientHttpJsonTest.java new file mode 100644 index 000000000000..1cbaf48a0691 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientHttpJsonTest.java @@ -0,0 +1,364 @@ +/* + * 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.alloydb.v1alpha; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.alloydb.v1alpha.stub.HttpJsonAlloyDBCSQLAdminStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAlloyDBCSQLAdminStub.getMethodDescriptors(), + AlloyDBCSQLAdminSettings.getDefaultEndpoint()); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AlloyDBCSQLAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest() 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]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientTest.java new file mode 100644 index 000000000000..af4f5a6bb36e --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminClientTest.java @@ -0,0 +1,354 @@ +/* + * 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.alloydb.v1alpha; + +import static com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientTest { + private static MockAlloyDBCSQLAdmin mockAlloyDBCSQLAdmin; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockAlloyDBCSQLAdmin = new MockAlloyDBCSQLAdmin(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAlloyDBCSQLAdmin, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzi(true) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBAdminImpl.java index caa72b8612e8..f0796669259a 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBAdminImpl.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBAdminImpl.java @@ -143,6 +143,48 @@ public void updateCluster( } } + @Override + public void exportCluster( + ExportClusterRequest 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 ExportCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importCluster( + ImportClusterRequest 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 ImportCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void upgradeCluster( UpgradeClusterRequest request, StreamObserver responseObserver) { diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdmin.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdmin.java new file mode 100644 index 000000000000..a2d4f4cdd342 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdmin.java @@ -0,0 +1,59 @@ +/* + * 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.alloydb.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdmin implements MockGrpcService { + private final MockAlloyDBCSQLAdminImpl serviceImpl; + + public MockAlloyDBCSQLAdmin() { + serviceImpl = new MockAlloyDBCSQLAdminImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdminImpl.java new file mode 100644 index 000000000000..737b8c371c33 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1alpha/MockAlloyDBCSQLAdminImpl.java @@ -0,0 +1,82 @@ +/* + * 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.alloydb.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminGrpc.AlloyDBCSQLAdminImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdminImpl extends AlloyDBCSQLAdminImplBase { + private List requests; + private Queue responses; + + public MockAlloyDBCSQLAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void restoreFromCloudSQL( + RestoreFromCloudSQLRequest 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 RestoreFromCloudSQL, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java index 376fd12fdad2..724c5e0652c7 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientHttpJsonTest.java @@ -773,6 +773,114 @@ public void exportClusterExceptionTest2() throws Exception { } } + @Test + public void importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).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 importClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void upgradeClusterTest() throws Exception { UpgradeClusterResponse expectedResponse = @@ -1669,6 +1777,7 @@ public void getInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1740,6 +1849,7 @@ public void getInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1813,6 +1923,7 @@ public void createInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1893,6 +2004,7 @@ public void createInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1973,6 +2085,7 @@ public void createSecondaryInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2054,6 +2167,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2194,6 +2308,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2233,6 +2348,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2292,6 +2408,7 @@ public void updateInstanceExceptionTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, updateMask).get(); @@ -2424,6 +2541,7 @@ public void failoverInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2500,6 +2618,7 @@ public void failoverInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2578,6 +2697,7 @@ public void injectFaultTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2656,6 +2776,7 @@ public void injectFaultTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2736,6 +2857,7 @@ public void restartInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2812,6 +2934,7 @@ public void restartInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java index 6643989bba07..77c56f99043d 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminClientTest.java @@ -692,6 +692,114 @@ public void exportClusterExceptionTest2() throws Exception { } } + @Test + public void importClusterTest() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 importClusterTest2() throws Exception { + ImportClusterResponse expectedResponse = + ImportClusterResponse.newBuilder().setBytesDownloaded(1945339771).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBAdmin.addResponse(resultOperation); + + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + + ImportClusterResponse actualResponse = + client.importClusterAsync(name, gcsUri, database, user).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportClusterRequest actualRequest = ((ImportClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(gcsUri, actualRequest.getGcsUri()); + Assert.assertEquals(database, actualRequest.getDatabase()); + Assert.assertEquals(user, actualRequest.getUser()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBAdmin.addException(exception); + + try { + String name = "name3373707"; + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + client.importClusterAsync(name, gcsUri, database, user).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 upgradeClusterTest() throws Exception { UpgradeClusterResponse expectedResponse = @@ -1558,6 +1666,7 @@ public void getInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1623,6 +1732,7 @@ public void getInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -1688,6 +1798,7 @@ public void createInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1767,6 +1878,7 @@ public void createInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1846,6 +1958,7 @@ public void createSecondaryInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1927,6 +2040,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2067,6 +2181,7 @@ public void updateInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2227,6 +2342,7 @@ public void failoverInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2300,6 +2416,7 @@ public void failoverInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2373,6 +2490,7 @@ public void injectFaultTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2449,6 +2567,7 @@ public void injectFaultTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2525,6 +2644,7 @@ public void restartInstanceTest() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2598,6 +2718,7 @@ public void restartInstanceTest2() throws Exception { .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) + .setGcaConfig(GCAInstanceConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientHttpJsonTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientHttpJsonTest.java new file mode 100644 index 000000000000..a48b732276e4 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientHttpJsonTest.java @@ -0,0 +1,362 @@ +/* + * 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.alloydb.v1beta; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.alloydb.v1beta.stub.HttpJsonAlloyDBCSQLAdminStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAlloyDBCSQLAdminStub.getMethodDescriptors(), + AlloyDBCSQLAdminSettings.getDefaultEndpoint()); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AlloyDBCSQLAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest() 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]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientTest.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientTest.java new file mode 100644 index 000000000000..ae726f07e79a --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminClientTest.java @@ -0,0 +1,352 @@ +/* + * 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.alloydb.v1beta; + +import static com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlloyDBCSQLAdminClientTest { + private static MockAlloyDBCSQLAdmin mockAlloyDBCSQLAdmin; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AlloyDBCSQLAdminClient client; + + @BeforeClass + public static void startStaticServer() { + mockAlloyDBCSQLAdmin = new MockAlloyDBCSQLAdmin(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAlloyDBCSQLAdmin, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AlloyDBCSQLAdminSettings settings = + AlloyDBCSQLAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlloyDBCSQLAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void restoreFromCloudSQLTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreFromCloudSQLTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDatabaseVersion(DatabaseVersion.forNumber(0)) + .setNetworkConfig(Cluster.NetworkConfig.newBuilder().build()) + .setNetwork("network1843485230") + .setEtag("etag3123477") + .putAllAnnotations(new HashMap()) + .setReconciling(true) + .setInitialUser(UserPassword.newBuilder().build()) + .setAutomatedBackupPolicy(AutomatedBackupPolicy.newBuilder().build()) + .setSslConfig(SslConfig.newBuilder().build()) + .setEncryptionConfig(EncryptionConfig.newBuilder().build()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setContinuousBackupConfig(ContinuousBackupConfig.newBuilder().build()) + .setContinuousBackupInfo(ContinuousBackupInfo.newBuilder().build()) + .setSecondaryConfig(Cluster.SecondaryConfig.newBuilder().build()) + .setPrimaryConfig(Cluster.PrimaryConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setPscConfig(Cluster.PscConfig.newBuilder().build()) + .setMaintenanceUpdatePolicy(MaintenanceUpdatePolicy.newBuilder().build()) + .setMaintenanceSchedule(MaintenanceSchedule.newBuilder().build()) + .setGeminiConfig(GeminiClusterConfig.newBuilder().build()) + .setSubscriptionType(SubscriptionType.forNumber(0)) + .setTrialMetadata(Cluster.TrialMetadata.newBuilder().build()) + .putAllTags(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreFromCloudSQLTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAlloyDBCSQLAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlloyDBCSQLAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreFromCloudSQLRequest actualRequest = ((RestoreFromCloudSQLRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(clusterId, actualRequest.getClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreFromCloudSQLExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlloyDBCSQLAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String clusterId = "clusterId561939637"; + client.restoreFromCloudSQLAsync(parent, clusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBAdminImpl.java index eea71553016e..51e56bd29e20 100644 --- a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBAdminImpl.java +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBAdminImpl.java @@ -164,6 +164,27 @@ public void exportCluster( } } + @Override + public void importCluster( + ImportClusterRequest 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 ImportCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void upgradeCluster( UpgradeClusterRequest request, StreamObserver responseObserver) { diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdmin.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdmin.java new file mode 100644 index 000000000000..ecc9a056e764 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdmin.java @@ -0,0 +1,59 @@ +/* + * 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.alloydb.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdmin implements MockGrpcService { + private final MockAlloyDBCSQLAdminImpl serviceImpl; + + public MockAlloyDBCSQLAdmin() { + serviceImpl = new MockAlloyDBCSQLAdminImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdminImpl.java b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdminImpl.java new file mode 100644 index 000000000000..159d911848f8 --- /dev/null +++ b/java-alloydb/google-cloud-alloydb/src/test/java/com/google/cloud/alloydb/v1beta/MockAlloyDBCSQLAdminImpl.java @@ -0,0 +1,82 @@ +/* + * 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.alloydb.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminGrpc.AlloyDBCSQLAdminImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAlloyDBCSQLAdminImpl extends AlloyDBCSQLAdminImplBase { + private List requests; + private Queue responses; + + public MockAlloyDBCSQLAdminImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void restoreFromCloudSQL( + RestoreFromCloudSQLRequest 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 RestoreFromCloudSQL, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java index 7e19e2d71e83..2c2e2e0a662f 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBAdminGrpc.java @@ -207,6 +207,135 @@ private AlloyDBAdminGrpc() {} return getUpdateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportCluster", + requestType = com.google.cloud.alloydb.v1.ExportClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod; + if ((getExportClusterMethod = AlloyDBAdminGrpc.getExportClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getExportClusterMethod = AlloyDBAdminGrpc.getExportClusterMethod) == null) { + AlloyDBAdminGrpc.getExportClusterMethod = + getExportClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ExportClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ExportCluster")) + .build(); + } + } + } + return getExportClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCluster", + requestType = com.google.cloud.alloydb.v1.ImportClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + AlloyDBAdminGrpc.getImportClusterMethod = + getImportClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.ImportClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ImportCluster")) + .build(); + } + } + } + return getImportClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.UpgradeClusterRequest, com.google.longrunning.Operation> + getUpgradeClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeCluster", + requestType = com.google.cloud.alloydb.v1.UpgradeClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.UpgradeClusterRequest, com.google.longrunning.Operation> + getUpgradeClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.UpgradeClusterRequest, com.google.longrunning.Operation> + getUpgradeClusterMethod; + if ((getUpgradeClusterMethod = AlloyDBAdminGrpc.getUpgradeClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getUpgradeClusterMethod = AlloyDBAdminGrpc.getUpgradeClusterMethod) == null) { + AlloyDBAdminGrpc.getUpgradeClusterMethod = + getUpgradeClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.UpgradeClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("UpgradeCluster")) + .build(); + } + } + } + return getUpgradeClusterMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.alloydb.v1.DeleteClusterRequest, com.google.longrunning.Operation> getDeleteClusterMethod; @@ -1640,6 +1769,51 @@ default void updateCluster( getUpdateClusterMethod(), responseObserver); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + default void exportCluster( + com.google.cloud.alloydb.v1.ExportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + default void importCluster( + com.google.cloud.alloydb.v1.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Upgrades a single Cluster.
+     * Imperative only.
+     * 
+ */ + default void upgradeCluster( + com.google.cloud.alloydb.v1.UpgradeClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeClusterMethod(), responseObserver); + } + /** * * @@ -2183,6 +2357,57 @@ public void updateCluster( responseObserver); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public void exportCluster( + com.google.cloud.alloydb.v1.ExportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public void importCluster( + com.google.cloud.alloydb.v1.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Upgrades a single Cluster.
+     * Imperative only.
+     * 
+ */ + public void upgradeCluster( + com.google.cloud.alloydb.v1.UpgradeClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeClusterMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2753,6 +2978,48 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation exportCluster( + com.google.cloud.alloydb.v1.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upgrades a single Cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation upgradeCluster( + com.google.cloud.alloydb.v1.UpgradeClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3241,6 +3508,48 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation exportCluster( + com.google.cloud.alloydb.v1.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upgrades a single Cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation upgradeCluster( + com.google.cloud.alloydb.v1.UpgradeClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3730,6 +4039,48 @@ protected AlloyDBAdminFutureStub build( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportCluster(com.google.cloud.alloydb.v1.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importCluster(com.google.cloud.alloydb.v1.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Upgrades a single Cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + upgradeCluster(com.google.cloud.alloydb.v1.UpgradeClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeClusterMethod(), getCallOptions()), request); + } + /** * * @@ -4161,36 +4512,39 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4230,6 +4584,21 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_CLUSTER: + serviceImpl.exportCluster( + (com.google.cloud.alloydb.v1.ExportClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_CLUSTER: + serviceImpl.importCluster( + (com.google.cloud.alloydb.v1.ImportClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPGRADE_CLUSTER: + serviceImpl.upgradeCluster( + (com.google.cloud.alloydb.v1.UpgradeClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_CLUSTER: serviceImpl.deleteCluster( (com.google.cloud.alloydb.v1.DeleteClusterRequest) request, @@ -4433,6 +4802,24 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1.UpdateClusterRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getExportClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.ExportClusterRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_CLUSTER))) + .addMethod( + getImportClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.ImportClusterRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_CLUSTER))) + .addMethod( + getUpgradeClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.UpgradeClusterRequest, + com.google.longrunning.Operation>(service, METHODID_UPGRADE_CLUSTER))) .addMethod( getDeleteClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4674,6 +5061,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetClusterMethod()) .addMethod(getCreateClusterMethod()) .addMethod(getUpdateClusterMethod()) + .addMethod(getExportClusterMethod()) + .addMethod(getImportClusterMethod()) + .addMethod(getUpgradeClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getPromoteClusterMethod()) .addMethod(getSwitchoverClusterMethod()) diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java new file mode 100644 index 000000000000..6c5f444a6af1 --- /dev/null +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AlloyDBCSQLAdminGrpc.java @@ -0,0 +1,420 @@ +/* + * 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.alloydb.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interactions with CloudSQL.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/alloydb/v1/csql_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AlloyDBCSQLAdminGrpc { + + private AlloyDBCSQLAdminGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.alloydb.v1.AlloyDBCSQLAdmin"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest, com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreFromCloudSQL", + requestType = com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest, com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod = + getRestoreFromCloudSQLMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreFromCloudSQL")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBCSQLAdminMethodDescriptorSupplier("RestoreFromCloudSQL")) + .build(); + } + } + } + return getRestoreFromCloudSQLMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AlloyDBCSQLAdminStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AlloyDBCSQLAdminBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AlloyDBCSQLAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AlloyDBCSQLAdminFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + default void restoreFromCloudSQL( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreFromCloudSQLMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public abstract static class AlloyDBCSQLAdminImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AlloyDBCSQLAdminGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminStub + extends io.grpc.stub.AbstractAsyncStub { + private AlloyDBCSQLAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public void restoreFromCloudSQL( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AlloyDBCSQLAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreFromCloudSQL(com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RESTORE_FROM_CLOUD_SQL = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RESTORE_FROM_CLOUD_SQL: + serviceImpl.restoreFromCloudSQL( + (com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRestoreFromCloudSQLMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_FROM_CLOUD_SQL))) + .build(); + } + + private abstract static class AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AlloyDBCSQLAdminBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.alloydb.v1.CSQLServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AlloyDBCSQLAdmin"); + } + } + + private static final class AlloyDBCSQLAdminFileDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier { + AlloyDBCSQLAdminFileDescriptorSupplier() {} + } + + private static final class AlloyDBCSQLAdminMethodDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AlloyDBCSQLAdminMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AlloyDBCSQLAdminFileDescriptorSupplier()) + .addMethod(getRestoreFromCloudSQLMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java index b0cd64cfb474..ea8231d7fc8e 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBAdminGrpc.java @@ -212,6 +212,92 @@ private AlloyDBAdminGrpc() {} return getUpdateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportCluster", + requestType = com.google.cloud.alloydb.v1alpha.ExportClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest, com.google.longrunning.Operation> + getExportClusterMethod; + if ((getExportClusterMethod = AlloyDBAdminGrpc.getExportClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getExportClusterMethod = AlloyDBAdminGrpc.getExportClusterMethod) == null) { + AlloyDBAdminGrpc.getExportClusterMethod = + getExportClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ExportCluster")) + .build(); + } + } + } + return getExportClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCluster", + requestType = com.google.cloud.alloydb.v1alpha.ImportClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + AlloyDBAdminGrpc.getImportClusterMethod = + getImportClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ImportCluster")) + .build(); + } + } + } + return getImportClusterMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.alloydb.v1alpha.UpgradeClusterRequest, com.google.longrunning.Operation> getUpgradeClusterMethod; @@ -1727,6 +1813,36 @@ default void updateCluster( getUpdateClusterMethod(), responseObserver); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + default void exportCluster( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + default void importCluster( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportClusterMethod(), responseObserver); + } + /** * * @@ -2288,6 +2404,40 @@ public void updateCluster( responseObserver); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public void exportCluster( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public void importCluster( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2878,6 +3028,34 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation exportCluster( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3381,6 +3559,34 @@ public com.google.longrunning.Operation updateCluster( getChannel(), getUpdateClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation exportCluster( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3886,6 +4092,34 @@ protected AlloyDBAdminFutureStub build( getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Exports data from the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportCluster(com.google.cloud.alloydb.v1alpha.ExportClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importCluster(com.google.cloud.alloydb.v1alpha.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), request); + } + /** * * @@ -4334,37 +4568,39 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4405,6 +4641,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1alpha.UpdateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_CLUSTER: + serviceImpl.exportCluster( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_CLUSTER: + serviceImpl.importCluster( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPGRADE_CLUSTER: serviceImpl.upgradeCluster( (com.google.cloud.alloydb.v1alpha.UpgradeClusterRequest) request, @@ -4618,6 +4864,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1alpha.UpdateClusterRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getExportClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_CLUSTER))) + .addMethod( + getImportClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_CLUSTER))) .addMethod( getUpgradeClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4867,6 +5125,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetClusterMethod()) .addMethod(getCreateClusterMethod()) .addMethod(getUpdateClusterMethod()) + .addMethod(getExportClusterMethod()) + .addMethod(getImportClusterMethod()) .addMethod(getUpgradeClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getPromoteClusterMethod()) diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java new file mode 100644 index 000000000000..d5c66a32886e --- /dev/null +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AlloyDBCSQLAdminGrpc.java @@ -0,0 +1,423 @@ +/* + * 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.alloydb.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interactions with CloudSQL.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/alloydb/v1alpha/csql_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AlloyDBCSQLAdminGrpc { + + private AlloyDBCSQLAdminGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreFromCloudSQL", + requestType = com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod = + getRestoreFromCloudSQLMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreFromCloudSQL")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBCSQLAdminMethodDescriptorSupplier("RestoreFromCloudSQL")) + .build(); + } + } + } + return getRestoreFromCloudSQLMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AlloyDBCSQLAdminStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AlloyDBCSQLAdminBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AlloyDBCSQLAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AlloyDBCSQLAdminFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + default void restoreFromCloudSQL( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreFromCloudSQLMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public abstract static class AlloyDBCSQLAdminImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AlloyDBCSQLAdminGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminStub + extends io.grpc.stub.AbstractAsyncStub { + private AlloyDBCSQLAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public void restoreFromCloudSQL( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AlloyDBCSQLAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreFromCloudSQL(com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RESTORE_FROM_CLOUD_SQL = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RESTORE_FROM_CLOUD_SQL: + serviceImpl.restoreFromCloudSQL( + (com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRestoreFromCloudSQLMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_FROM_CLOUD_SQL))) + .build(); + } + + private abstract static class AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AlloyDBCSQLAdminBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AlloyDBCSQLAdmin"); + } + } + + private static final class AlloyDBCSQLAdminFileDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier { + AlloyDBCSQLAdminFileDescriptorSupplier() {} + } + + private static final class AlloyDBCSQLAdminMethodDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AlloyDBCSQLAdminMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AlloyDBCSQLAdminFileDescriptorSupplier()) + .addMethod(getRestoreFromCloudSQLMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java index 3ca20e47ff19..c04dbf5f89c4 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBAdminGrpc.java @@ -255,6 +255,49 @@ private AlloyDBAdminGrpc() {} return getExportClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportCluster", + requestType = com.google.cloud.alloydb.v1beta.ImportClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.ImportClusterRequest, com.google.longrunning.Operation> + getImportClusterMethod; + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + synchronized (AlloyDBAdminGrpc.class) { + if ((getImportClusterMethod = AlloyDBAdminGrpc.getImportClusterMethod) == null) { + AlloyDBAdminGrpc.getImportClusterMethod = + getImportClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1beta.ImportClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBAdminMethodDescriptorSupplier("ImportCluster")) + .build(); + } + } + } + return getImportClusterMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.alloydb.v1beta.UpgradeClusterRequest, com.google.longrunning.Operation> getUpgradeClusterMethod; @@ -1773,6 +1816,21 @@ default void exportCluster( getExportClusterMethod(), responseObserver); } + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + default void importCluster( + com.google.cloud.alloydb.v1beta.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportClusterMethod(), responseObserver); + } + /** * * @@ -2351,6 +2409,23 @@ public void exportCluster( responseObserver); } + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public void importCluster( + com.google.cloud.alloydb.v1beta.ImportClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2955,6 +3030,20 @@ public com.google.longrunning.Operation exportCluster( getChannel(), getExportClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1beta.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3472,6 +3561,20 @@ public com.google.longrunning.Operation exportCluster( getChannel(), getExportClusterMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.longrunning.Operation importCluster( + com.google.cloud.alloydb.v1beta.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportClusterMethod(), getCallOptions(), request); + } + /** * * @@ -3991,6 +4094,20 @@ protected AlloyDBAdminFutureStub build( getChannel().newCall(getExportClusterMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Imports data to the cluster.
+     * Imperative only.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importCluster(com.google.cloud.alloydb.v1beta.ImportClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportClusterMethod(), getCallOptions()), request); + } + /** * * @@ -4440,37 +4557,38 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4516,6 +4634,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.alloydb.v1beta.ExportClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_IMPORT_CLUSTER: + serviceImpl.importCluster( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPGRADE_CLUSTER: serviceImpl.upgradeCluster( (com.google.cloud.alloydb.v1beta.UpgradeClusterRequest) request, @@ -4732,6 +4855,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.alloydb.v1beta.ExportClusterRequest, com.google.longrunning.Operation>(service, METHODID_EXPORT_CLUSTER))) + .addMethod( + getImportClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1beta.ImportClusterRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_CLUSTER))) .addMethod( getUpgradeClusterMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4982,6 +5111,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateClusterMethod()) .addMethod(getUpdateClusterMethod()) .addMethod(getExportClusterMethod()) + .addMethod(getImportClusterMethod()) .addMethod(getUpgradeClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getPromoteClusterMethod()) diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java new file mode 100644 index 000000000000..59410ea395b1 --- /dev/null +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AlloyDBCSQLAdminGrpc.java @@ -0,0 +1,423 @@ +/* + * 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.alloydb.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interactions with CloudSQL.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/alloydb/v1beta/csql_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AlloyDBCSQLAdminGrpc { + + private AlloyDBCSQLAdminGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreFromCloudSQL", + requestType = com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation> + getRestoreFromCloudSQLMethod; + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + if ((getRestoreFromCloudSQLMethod = AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod) + == null) { + AlloyDBCSQLAdminGrpc.getRestoreFromCloudSQLMethod = + getRestoreFromCloudSQLMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreFromCloudSQL")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AlloyDBCSQLAdminMethodDescriptorSupplier("RestoreFromCloudSQL")) + .build(); + } + } + } + return getRestoreFromCloudSQLMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AlloyDBCSQLAdminStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AlloyDBCSQLAdminBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AlloyDBCSQLAdminBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AlloyDBCSQLAdminFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlloyDBCSQLAdminFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + }; + return AlloyDBCSQLAdminFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + default void restoreFromCloudSQL( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreFromCloudSQLMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public abstract static class AlloyDBCSQLAdminImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AlloyDBCSQLAdminGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminStub + extends io.grpc.stub.AbstractAsyncStub { + private AlloyDBCSQLAdminStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public void restoreFromCloudSQL( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AlloyDBCSQLAdminBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.longrunning.Operation restoreFromCloudSQL( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreFromCloudSQLMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AlloyDBCSQLAdmin. + * + *
+   * Service for interactions with CloudSQL.
+   * 
+ */ + public static final class AlloyDBCSQLAdminFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AlloyDBCSQLAdminFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlloyDBCSQLAdminFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlloyDBCSQLAdminFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Restores an AlloyDB cluster from a CloudSQL resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreFromCloudSQL(com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreFromCloudSQLMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RESTORE_FROM_CLOUD_SQL = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RESTORE_FROM_CLOUD_SQL: + serviceImpl.restoreFromCloudSQL( + (com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRestoreFromCloudSQLMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_FROM_CLOUD_SQL))) + .build(); + } + + private abstract static class AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AlloyDBCSQLAdminBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AlloyDBCSQLAdmin"); + } + } + + private static final class AlloyDBCSQLAdminFileDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier { + AlloyDBCSQLAdminFileDescriptorSupplier() {} + } + + private static final class AlloyDBCSQLAdminMethodDescriptorSupplier + extends AlloyDBCSQLAdminBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AlloyDBCSQLAdminMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AlloyDBCSQLAdminGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AlloyDBCSQLAdminFileDescriptorSupplier()) + .addMethod(getRestoreFromCloudSQLMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicy.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicy.java index f0911552ac53..a6501894471f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicy.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicy.java @@ -3495,8 +3495,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3516,8 +3515,7 @@ public boolean hasEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3539,8 +3537,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -5472,8 +5469,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5492,8 +5488,7 @@ public boolean hasEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5518,8 +5513,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5546,8 +5540,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5572,8 +5565,7 @@ public Builder setEncryptionConfig( *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5606,8 +5598,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfi *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5631,8 +5622,7 @@ public Builder clearEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5651,8 +5641,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig.Builder getEncryptionConfigB *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5675,8 +5664,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfig *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicyOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicyOrBuilder.java index e6a3668faa73..511c047a4ebe 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicyOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/AutomatedBackupPolicyOrBuilder.java @@ -237,8 +237,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -255,8 +254,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -273,8 +271,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CSQLServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CSQLServiceProto.java new file mode 100644 index 000000000000..e8cd897f4fa6 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CSQLServiceProto.java @@ -0,0 +1,117 @@ +/* + * 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/alloydb/v1/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public final class CSQLServiceProto { + private CSQLServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/alloydb/v1/csql_service.p" + + "roto\022\027google.cloud.alloydb.v1\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032,google/cloud/a" + + "lloydb/v1/csql_resources.proto\032\'google/c" + + "loud/alloydb/v1/resources.proto\032%google/" + + "cloud/alloydb/v1/service.proto\032#google/l" + + "ongrunning/operations.proto\"\207\002\n\032RestoreF" + + "romCloudSQLRequest\022V\n\032cloudsql_backup_ru" + + "n_source\030e \001(\01320.google.cloud.alloydb.v1" + + ".CloudSQLBackupRunSourceH\000\0226\n\006parent\030\001 \001" + + "(\tB&\340A\002\372A \022\036alloydb.googleapis.com/Clust" + + "er\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\0226\n\007cluster\030\003" + + " \001(\0132 .google.cloud.alloydb.v1.ClusterB\003" + + "\340A\002B\010\n\006source2\312\002\n\020AlloyDBCSQLAdmin\022\351\001\n\023R" + + "estoreFromCloudSQL\0223.google.cloud.alloyd" + + "b.v1.RestoreFromCloudSQLRequest\032\035.google" + + ".longrunning.Operation\"~\312A\034\n\007Cluster\022\021Op" + + "erationMetadata\332A\021parent,cluster_id\202\323\344\223\002" + + "E\"@/v1/{parent=projects/*/locations/*}/c" + + "lusters:restoreFromCloudSQL:\001*\032J\312A\026alloy" + + "db.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\271\001\n\033com.googl" + + "e.cloud.alloydb.v1B\020CSQLServiceProtoP\001Z5" + + "cloud.google.com/go/alloydb/apiv1/alloyd" + + "bpb;alloydbpb\252\002\027Google.Cloud.AlloyDb.V1\312" + + "\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Google::Clou" + + "d::AlloyDB::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.alloydb.v1.CsqlResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1.ResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1.ServiceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor, + new java.lang.String[] { + "CloudsqlBackupRunSource", "Parent", "ClusterId", "Cluster", "Source", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.alloydb.v1.CsqlResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1.ResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1.ServiceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSource.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSource.java new file mode 100644 index 000000000000..9a787e1e6679 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSource.java @@ -0,0 +1,927 @@ +/* + * 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/alloydb/v1/csql_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * The source CloudSQL backup resource.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.CloudSQLBackupRunSource} + */ +public final class CloudSQLBackupRunSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.CloudSQLBackupRunSource) + CloudSQLBackupRunSourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudSQLBackupRunSource.newBuilder() to construct. + private CloudSQLBackupRunSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudSQLBackupRunSource() { + project_ = ""; + instanceId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudSQLBackupRunSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.CsqlResourcesProto + .internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.CsqlResourcesProto + .internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.class, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + + /** + * + * + *
+   * The project ID of the source CloudSQL instance. This should be the same as
+   * the AlloyDB cluster's project.
+   * 
+ * + * string project = 1; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + + /** + * + * + *
+   * The project ID of the source CloudSQL instance. This should be the same as
+   * the AlloyDB cluster's project.
+   * 
+ * + * string project = 1; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
+   * Required. The CloudSQL instance ID.
+   * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The CloudSQL instance ID.
+   * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_RUN_ID_FIELD_NUMBER = 3; + private long backupRunId_ = 0L; + + /** + * + * + *
+   * Required. The CloudSQL backup run ID.
+   * 
+ * + * int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupRunId. + */ + @java.lang.Override + public long getBackupRunId() { + return backupRunId_; + } + + 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(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); + } + if (backupRunId_ != 0L) { + output.writeInt64(3, backupRunId_); + } + 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(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); + } + if (backupRunId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, backupRunId_); + } + 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.alloydb.v1.CloudSQLBackupRunSource)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource other = + (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (getBackupRunId() != other.getBackupRunId()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + BACKUP_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBackupRunId()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource 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.alloydb.v1.CloudSQLBackupRunSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource 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.alloydb.v1.CloudSQLBackupRunSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource parseDelimitedFrom( + java.io.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.alloydb.v1.CloudSQLBackupRunSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource 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.alloydb.v1.CloudSQLBackupRunSource 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 source CloudSQL backup resource.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.CloudSQLBackupRunSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.CloudSQLBackupRunSource) + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.CsqlResourcesProto + .internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.CsqlResourcesProto + .internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.class, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + instanceId_ = ""; + backupRunId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.CsqlResourcesProto + .internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource build() { + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource buildPartial() { + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource result = + new com.google.cloud.alloydb.v1.CloudSQLBackupRunSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.CloudSQLBackupRunSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backupRunId_ = backupRunId_; + } + } + + @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.alloydb.v1.CloudSQLBackupRunSource) { + return mergeFrom((com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.CloudSQLBackupRunSource other) { + if (other == com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getBackupRunId() != 0L) { + setBackupRunId(other.getBackupRunId()); + } + 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: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + backupRunId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object project_ = ""; + + /** + * + * + *
+     * The project ID of the source CloudSQL instance. This should be the same as
+     * the AlloyDB cluster's project.
+     * 
+ * + * string project = 1; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The project ID of the source CloudSQL instance. This should be the same as
+     * the AlloyDB cluster's project.
+     * 
+ * + * string project = 1; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The project ID of the source CloudSQL instance. This should be the same as
+     * the AlloyDB cluster's project.
+     * 
+ * + * string project = 1; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The project ID of the source CloudSQL instance. This should be the same as
+     * the AlloyDB cluster's project.
+     * 
+ * + * string project = 1; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The project ID of the source CloudSQL instance. This should be the same as
+     * the AlloyDB cluster's project.
+     * 
+ * + * string project = 1; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceId_ = ""; + + /** + * + * + *
+     * Required. The CloudSQL instance ID.
+     * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The CloudSQL instance ID.
+     * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The CloudSQL instance ID.
+     * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The CloudSQL instance ID.
+     * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The CloudSQL instance ID.
+     * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long backupRunId_; + + /** + * + * + *
+     * Required. The CloudSQL backup run ID.
+     * 
+ * + * int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupRunId. + */ + @java.lang.Override + public long getBackupRunId() { + return backupRunId_; + } + + /** + * + * + *
+     * Required. The CloudSQL backup run ID.
+     * 
+ * + * int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backupRunId to set. + * @return This builder for chaining. + */ + public Builder setBackupRunId(long value) { + + backupRunId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The CloudSQL backup run ID.
+     * 
+ * + * int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackupRunId() { + bitField0_ = (bitField0_ & ~0x00000004); + backupRunId_ = 0L; + 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.alloydb.v1.CloudSQLBackupRunSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.CloudSQLBackupRunSource) + private static final com.google.cloud.alloydb.v1.CloudSQLBackupRunSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.CloudSQLBackupRunSource(); + } + + public static com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSQLBackupRunSource 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.alloydb.v1.CloudSQLBackupRunSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSourceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSourceOrBuilder.java new file mode 100644 index 000000000000..47260d6503ca --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CloudSQLBackupRunSourceOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/alloydb/v1/csql_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface CloudSQLBackupRunSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.CloudSQLBackupRunSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The project ID of the source CloudSQL instance. This should be the same as
+   * the AlloyDB cluster's project.
+   * 
+ * + * string project = 1; + * + * @return The project. + */ + java.lang.String getProject(); + + /** + * + * + *
+   * The project ID of the source CloudSQL instance. This should be the same as
+   * the AlloyDB cluster's project.
+   * 
+ * + * string project = 1; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Required. The CloudSQL instance ID.
+   * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + java.lang.String getInstanceId(); + + /** + * + * + *
+   * Required. The CloudSQL instance ID.
+   * 
+ * + * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString getInstanceIdBytes(); + + /** + * + * + *
+   * Required. The CloudSQL backup run ID.
+   * 
+ * + * int64 backup_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupRunId. + */ + long getBackupRunId(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java index a7fb86b74919..0c3b2bb2ce41 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java @@ -3092,6 +3092,21 @@ public interface PscConfigOrBuilder * @return The pscEnabled. */ boolean getPscEnabled(); + + /** + * + * + *
+     * Output only. The project number that needs to be allowlisted on the
+     * network attachment to enable outbound connectivity.
+     * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + long getServiceOwnedProjectNumber(); } /** @@ -3157,6 +3172,27 @@ public boolean getPscEnabled() { return pscEnabled_; } + public static final int SERVICE_OWNED_PROJECT_NUMBER_FIELD_NUMBER = 3; + private long serviceOwnedProjectNumber_ = 0L; + + /** + * + * + *
+     * Output only. The project number that needs to be allowlisted on the
+     * network attachment to enable outbound connectivity.
+     * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + @java.lang.Override + public long getServiceOwnedProjectNumber() { + return serviceOwnedProjectNumber_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3174,6 +3210,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pscEnabled_ != false) { output.writeBool(1, pscEnabled_); } + if (serviceOwnedProjectNumber_ != 0L) { + output.writeInt64(3, serviceOwnedProjectNumber_); + } getUnknownFields().writeTo(output); } @@ -3186,6 +3225,10 @@ public int getSerializedSize() { if (pscEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, pscEnabled_); } + if (serviceOwnedProjectNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, serviceOwnedProjectNumber_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3203,6 +3246,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.alloydb.v1.Cluster.PscConfig) obj; if (getPscEnabled() != other.getPscEnabled()) return false; + if (getServiceOwnedProjectNumber() != other.getServiceOwnedProjectNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3216,6 +3260,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PSC_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPscEnabled()); + hash = (37 * hash) + SERVICE_OWNED_PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getServiceOwnedProjectNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3359,6 +3405,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; pscEnabled_ = false; + serviceOwnedProjectNumber_ = 0L; return this; } @@ -3398,6 +3445,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Cluster.PscConfig result) if (((from_bitField0_ & 0x00000001) != 0)) { result.pscEnabled_ = pscEnabled_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceOwnedProjectNumber_ = serviceOwnedProjectNumber_; + } } @java.lang.Override @@ -3451,6 +3501,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster.PscConfig other) { if (other.getPscEnabled() != false) { setPscEnabled(other.getPscEnabled()); } + if (other.getServiceOwnedProjectNumber() != 0L) { + setServiceOwnedProjectNumber(other.getServiceOwnedProjectNumber()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3483,6 +3536,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 24: + { + serviceOwnedProjectNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3561,6 +3620,68 @@ public Builder clearPscEnabled() { return this; } + private long serviceOwnedProjectNumber_; + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + @java.lang.Override + public long getServiceOwnedProjectNumber() { + return serviceOwnedProjectNumber_; + } + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceOwnedProjectNumber to set. + * @return This builder for chaining. + */ + public Builder setServiceOwnedProjectNumber(long value) { + + serviceOwnedProjectNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceOwnedProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + serviceOwnedProjectNumber_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5342,6 +5463,7 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKUP_SOURCE(15), MIGRATION_SOURCE(16), + CLOUDSQL_BACKUP_RUN_SOURCE(42), SOURCE_NOT_SET(0); private final int value; @@ -5365,6 +5487,8 @@ public static SourceCase forNumber(int value) { return BACKUP_SOURCE; case 16: return MIGRATION_SOURCE; + case 42: + return CLOUDSQL_BACKUP_RUN_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -5501,6 +5625,67 @@ public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOr return com.google.cloud.alloydb.v1.MigrationSource.getDefaultInstance(); } + public static final int CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER = 42; + + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 42; + } + + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (sourceCase_ == 42) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if (sourceCase_ == 42) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -6132,7 +6317,7 @@ public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConf *
* * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The network. */ @java.lang.Override @@ -6165,7 +6350,7 @@ public java.lang.String getNetwork() { *
* * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The bytes for network. */ @java.lang.Override @@ -6521,7 +6706,7 @@ public com.google.cloud.alloydb.v1.AutomatedBackupPolicy getAutomatedBackupPolic * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -6540,7 +6725,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return The sslConfig. */ @java.lang.Override @@ -7486,6 +7671,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 41); + if (sourceCase_ == 42) { + output.writeMessage(42, (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_); + } getUnknownFields().writeTo(output); } @@ -7628,6 +7816,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, tags__); } + if (sourceCase_ == 42) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 42, (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7733,6 +7926,9 @@ public boolean equals(final java.lang.Object obj) { case 16: if (!getMigrationSource().equals(other.getMigrationSource())) return false; break; + case 42: + if (!getCloudsqlBackupRunSource().equals(other.getCloudsqlBackupRunSource())) return false; + break; case 0: default: } @@ -7858,6 +8054,10 @@ public int hashCode() { hash = (37 * hash) + MIGRATION_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getMigrationSource().hashCode(); break; + case 42: + hash = (37 * hash) + CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudsqlBackupRunSource().hashCode(); + break; case 0: default: } @@ -8064,6 +8264,9 @@ public Builder clear() { if (migrationSourceBuilder_ != null) { migrationSourceBuilder_.clear(); } + if (cloudsqlBackupRunSourceBuilder_ != null) { + cloudsqlBackupRunSourceBuilder_.clear(); + } name_ = ""; displayName_ = ""; uid_ = ""; @@ -8204,147 +8407,149 @@ public com.google.cloud.alloydb.v1.Cluster buildPartial() { private void buildPartial0(com.google.cloud.alloydb.v1.Cluster result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.uid_ = uid_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.clusterType_ = clusterType_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.databaseVersion_ = databaseVersion_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.networkConfig_ = networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.initialUser_ = initialUserBuilder_ == null ? initialUser_ : initialUserBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.automatedBackupPolicy_ = automatedBackupPolicyBuilder_ == null ? automatedBackupPolicy_ : automatedBackupPolicyBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.encryptionInfo_ = encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.continuousBackupConfig_ = continuousBackupConfigBuilder_ == null ? continuousBackupConfig_ : continuousBackupConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.continuousBackupInfo_ = continuousBackupInfoBuilder_ == null ? continuousBackupInfo_ : continuousBackupInfoBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.secondaryConfig_ = secondaryConfigBuilder_ == null ? secondaryConfig_ : secondaryConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.primaryConfig_ = primaryConfigBuilder_ == null ? primaryConfig_ : primaryConfigBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.pscConfig_ = pscConfigBuilder_ == null ? pscConfig_ : pscConfigBuilder_.build(); to_bitField0_ |= 0x00002000; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.maintenanceUpdatePolicy_ = maintenanceUpdatePolicyBuilder_ == null ? maintenanceUpdatePolicy_ : maintenanceUpdatePolicyBuilder_.build(); to_bitField0_ |= 0x00004000; } - if (((from_bitField0_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.maintenanceSchedule_ = maintenanceScheduleBuilder_ == null ? maintenanceSchedule_ : maintenanceScheduleBuilder_.build(); to_bitField0_ |= 0x00008000; } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.subscriptionType_ = subscriptionType_; - } if (((from_bitField0_ & 0x80000000) != 0)) { - result.trialMetadata_ = - trialMetadataBuilder_ == null ? trialMetadata_ : trialMetadataBuilder_.build(); - to_bitField0_ |= 0x00010000; + result.subscriptionType_ = subscriptionType_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.alloydb.v1.Cluster result) { int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { + result.trialMetadata_ = + trialMetadataBuilder_ == null ? trialMetadata_ : trialMetadataBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { result.tags_ = internalGetTags(); result.tags_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.alloydb.v1.Cluster result) { @@ -8356,6 +8561,9 @@ private void buildPartialOneofs(com.google.cloud.alloydb.v1.Cluster result) { if (sourceCase_ == 16 && migrationSourceBuilder_ != null) { result.source_ = migrationSourceBuilder_.build(); } + if (sourceCase_ == 42 && cloudsqlBackupRunSourceBuilder_ != null) { + result.source_ = cloudsqlBackupRunSourceBuilder_.build(); + } } @java.lang.Override @@ -8405,17 +8613,17 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { if (other == com.google.cloud.alloydb.v1.Cluster.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -8428,7 +8636,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { mergeDeleteTime(other.getDeleteTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; if (other.state_ != 0) { setStateValue(other.getStateValue()); } @@ -8443,16 +8651,16 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } @@ -8502,7 +8710,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { mergeTrialMetadata(other.getTrialMetadata()); } internalGetMutableTags().mergeFrom(other.internalGetTags()); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; switch (other.getSourceCase()) { case BACKUP_SOURCE: { @@ -8514,6 +8722,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Cluster other) { mergeMigrationSource(other.getMigrationSource()); break; } + case CLOUDSQL_BACKUP_RUN_SOURCE: + { + mergeCloudsqlBackupRunSource(other.getCloudsqlBackupRunSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -8548,37 +8761,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 42 case 50: { input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: @@ -8590,31 +8803,31 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 64: { state_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 64 case 72: { databaseVersion_ = input.readEnum(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 72 case 82: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 82 case 90: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 90 case 98: @@ -8626,19 +8839,19 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 98 case 104: { reconciling_ = input.readBool(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 104 case 114: { input.readMessage(getInitialUserFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 114 case 122: @@ -8657,102 +8870,102 @@ public Builder mergeFrom( { input.readMessage( getAutomatedBackupPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 138 case 146: { input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 146 case 154: { input.readMessage( getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 154 case 162: { input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 162 case 178: { input.readMessage(getSecondaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 178 case 186: { input.readMessage(getPrimaryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 186 case 192: { clusterType_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 192 case 218: { input.readMessage( getContinuousBackupConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 218 case 226: { input.readMessage( getContinuousBackupInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 226 case 234: { input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 234 case 240: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 240 case 250: { input.readMessage(getPscConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 250 case 258: { input.readMessage( getMaintenanceUpdatePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 258 case 298: { input.readMessage( getMaintenanceScheduleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; break; } // case 298 case 304: { subscriptionType_ = input.readEnum(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 304 case 314: { input.readMessage(getTrialMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 314 case 330: @@ -8761,9 +8974,16 @@ public Builder mergeFrom( input.readMessage( TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 330 + case 338: + { + input.readMessage( + getCloudsqlBackupRunSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 42; + break; + } // case 338 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9270,6 +9490,247 @@ public com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOr return migrationSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder> + cloudsqlBackupRunSourceBuilder_; + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 42; + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 42) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } else { + if (sourceCase_ == 42) { + return cloudsqlBackupRunSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + sourceCase_ = 42; + return this; + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder builderForValue) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 42; + return this; + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 42 + && source_ + != com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.newBuilder( + (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 42) { + cloudsqlBackupRunSourceBuilder_.mergeFrom(value); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 42; + return this; + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 42) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 42) { + sourceCase_ = 0; + source_ = null; + } + cloudsqlBackupRunSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder + getCloudsqlBackupRunSourceBuilder() { + return getCloudsqlBackupRunSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if ((sourceCase_ == 42) && (cloudsqlBackupRunSourceBuilder_ != null)) { + return cloudsqlBackupRunSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 42) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. Cluster created from CloudSQL snapshot.
+     * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder> + getCloudsqlBackupRunSourceFieldBuilder() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (!(sourceCase_ == 42)) { + source_ = com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + cloudsqlBackupRunSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder>( + (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 42; + onChanged(); + return cloudsqlBackupRunSourceBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -9350,7 +9811,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9373,7 +9834,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -9401,7 +9862,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9471,7 +9932,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9489,7 +9950,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -9512,7 +9973,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -9585,7 +10046,7 @@ public Builder setUid(java.lang.String value) { throw new NullPointerException(); } uid_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9604,7 +10065,7 @@ public Builder setUid(java.lang.String value) { */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -9628,7 +10089,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uid_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -9654,7 +10115,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -9700,7 +10161,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9722,7 +10183,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9740,7 +10201,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -9751,7 +10212,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -9769,7 +10230,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -9791,7 +10252,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -9866,7 +10327,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -9912,7 +10373,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9934,7 +10395,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9952,7 +10413,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -9963,7 +10424,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -9981,7 +10442,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -10003,7 +10464,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -10078,7 +10539,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -10124,7 +10585,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { } else { deleteTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10146,7 +10607,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal } else { deleteTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10164,7 +10625,7 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && deleteTime_ != null && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); @@ -10175,7 +10636,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { deleteTimeBuilder_.mergeFrom(value); } if (deleteTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -10193,7 +10654,7 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); deleteTime_ = null; if (deleteTimeBuilder_ != null) { deleteTimeBuilder_.dispose(); @@ -10215,7 +10676,7 @@ public Builder clearDeleteTime() { *
*/ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } @@ -10286,7 +10747,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return labels_; } @@ -10376,7 +10837,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -10401,7 +10862,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } @@ -10422,7 +10883,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10437,7 +10898,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -10477,7 +10938,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10520,7 +10981,7 @@ public Builder setState(com.google.cloud.alloydb.v1.Cluster.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -10540,7 +11001,7 @@ public Builder setState(com.google.cloud.alloydb.v1.Cluster.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; @@ -10588,7 +11049,7 @@ public int getClusterTypeValue() { */ public Builder setClusterTypeValue(int value) { clusterType_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10637,7 +11098,7 @@ public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; clusterType_ = value.getNumber(); onChanged(); return this; @@ -10660,7 +11121,7 @@ public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType va * @return This builder for chaining. */ public Builder clearClusterType() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); clusterType_ = 0; onChanged(); return this; @@ -10708,7 +11169,7 @@ public int getDatabaseVersionValue() { */ public Builder setDatabaseVersionValue(int value) { databaseVersion_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -10757,7 +11218,7 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; databaseVersion_ = value.getNumber(); onChanged(); return this; @@ -10780,7 +11241,7 @@ public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion va * @return This builder for chaining. */ public Builder clearDatabaseVersion() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); databaseVersion_ = 0; onChanged(); return this; @@ -10801,7 +11262,7 @@ public Builder clearDatabaseVersion() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -10835,7 +11296,7 @@ public Builder setNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfi } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -10852,7 +11313,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -10864,7 +11325,7 @@ public Builder setNetworkConfig( */ public Builder mergeNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1.Cluster.NetworkConfig.getDefaultInstance()) { @@ -10876,7 +11337,7 @@ public Builder mergeNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkCon networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -10888,7 +11349,7 @@ public Builder mergeNetworkConfig(com.google.cloud.alloydb.v1.Cluster.NetworkCon * */ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -10904,7 +11365,7 @@ public Builder clearNetworkConfig() { * */ public com.google.cloud.alloydb.v1.Cluster.NetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getNetworkConfigFieldBuilder().getBuilder(); } @@ -10964,7 +11425,7 @@ public com.google.cloud.alloydb.v1.Cluster.NetworkConfigOrBuilder getNetworkConf * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The network. */ @java.lang.Deprecated @@ -10996,7 +11457,7 @@ public java.lang.String getNetwork() { * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The bytes for network. */ @java.lang.Deprecated @@ -11028,7 +11489,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @param value The network to set. * @return This builder for chaining. */ @@ -11038,7 +11499,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -11059,13 +11520,13 @@ public Builder setNetwork(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -11086,7 +11547,7 @@ public Builder clearNetwork() { * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @param value The bytes for network to set. * @return This builder for chaining. */ @@ -11097,7 +11558,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -11167,7 +11628,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11185,7 +11646,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -11208,7 +11669,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11233,7 +11694,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return annotations_; } @@ -11331,7 +11792,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -11358,7 +11819,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableAnnotations().getMutableMap(); } @@ -11381,7 +11842,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -11398,7 +11859,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } @@ -11443,7 +11904,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11464,7 +11925,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); reconciling_ = false; onChanged(); return this; @@ -11492,7 +11953,7 @@ public Builder clearReconciling() { * @return Whether the initialUser field is set. */ public boolean hasInitialUser() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -11540,7 +12001,7 @@ public Builder setInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { } else { initialUserBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -11564,7 +12025,7 @@ public Builder setInitialUser( } else { initialUserBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -11583,7 +12044,7 @@ public Builder setInitialUser( */ public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { if (initialUserBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && initialUser_ != null && initialUser_ != com.google.cloud.alloydb.v1.UserPassword.getDefaultInstance()) { getInitialUserBuilder().mergeFrom(value); @@ -11594,7 +12055,7 @@ public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) initialUserBuilder_.mergeFrom(value); } if (initialUser_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -11613,7 +12074,7 @@ public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) * */ public Builder clearInitialUser() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); initialUser_ = null; if (initialUserBuilder_ != null) { initialUserBuilder_.dispose(); @@ -11636,7 +12097,7 @@ public Builder clearInitialUser() { * */ public com.google.cloud.alloydb.v1.UserPassword.Builder getInitialUserBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getInitialUserFieldBuilder().getBuilder(); } @@ -11717,7 +12178,7 @@ public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder * @return Whether the automatedBackupPolicy field is set. */ public boolean hasAutomatedBackupPolicy() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -11772,7 +12233,7 @@ public Builder setAutomatedBackupPolicy( } else { automatedBackupPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -11799,7 +12260,7 @@ public Builder setAutomatedBackupPolicy( } else { automatedBackupPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -11822,7 +12283,7 @@ public Builder setAutomatedBackupPolicy( public Builder mergeAutomatedBackupPolicy( com.google.cloud.alloydb.v1.AutomatedBackupPolicy value) { if (automatedBackupPolicyBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && automatedBackupPolicy_ != null && automatedBackupPolicy_ != com.google.cloud.alloydb.v1.AutomatedBackupPolicy.getDefaultInstance()) { @@ -11834,7 +12295,7 @@ public Builder mergeAutomatedBackupPolicy( automatedBackupPolicyBuilder_.mergeFrom(value); } if (automatedBackupPolicy_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -11856,7 +12317,7 @@ public Builder mergeAutomatedBackupPolicy( * .google.cloud.alloydb.v1.AutomatedBackupPolicy automated_backup_policy = 17; */ public Builder clearAutomatedBackupPolicy() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); automatedBackupPolicy_ = null; if (automatedBackupPolicyBuilder_ != null) { automatedBackupPolicyBuilder_.dispose(); @@ -11883,7 +12344,7 @@ public Builder clearAutomatedBackupPolicy() { */ public com.google.cloud.alloydb.v1.AutomatedBackupPolicy.Builder getAutomatedBackupPolicyBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return getAutomatedBackupPolicyFieldBuilder().getBuilder(); } @@ -11963,12 +12424,12 @@ public Builder clearAutomatedBackupPolicy() { * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated public boolean hasSslConfig() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -11981,7 +12442,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return The sslConfig. */ @java.lang.Deprecated @@ -12014,7 +12475,7 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { } else { sslConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -12035,7 +12496,7 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builde } else { sslConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -12052,7 +12513,7 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builde @java.lang.Deprecated public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && sslConfig_ != null && sslConfig_ != com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance()) { getSslConfigBuilder().mergeFrom(value); @@ -12063,7 +12524,7 @@ public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { sslConfigBuilder_.mergeFrom(value); } if (sslConfig_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -12080,7 +12541,7 @@ public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { */ @java.lang.Deprecated public Builder clearSslConfig() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); sslConfig_ = null; if (sslConfigBuilder_ != null) { sslConfigBuilder_.dispose(); @@ -12101,7 +12562,7 @@ public Builder clearSslConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getSslConfigFieldBuilder().getBuilder(); } @@ -12177,7 +12638,7 @@ public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -12231,7 +12692,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig } else { encryptionConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12258,7 +12719,7 @@ public Builder setEncryptionConfig( } else { encryptionConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12280,7 +12741,7 @@ public Builder setEncryptionConfig( */ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && encryptionConfig_ != null && encryptionConfig_ != com.google.cloud.alloydb.v1.EncryptionConfig.getDefaultInstance()) { @@ -12292,7 +12753,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfi encryptionConfigBuilder_.mergeFrom(value); } if (encryptionConfig_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -12314,7 +12775,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfi * */ public Builder clearEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -12340,7 +12801,7 @@ public Builder clearEncryptionConfig() { * */ public com.google.cloud.alloydb.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } @@ -12423,7 +12884,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfig * @return Whether the encryptionInfo field is set. */ public boolean hasEncryptionInfo() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -12469,7 +12930,7 @@ public Builder setEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo valu } else { encryptionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -12492,7 +12953,7 @@ public Builder setEncryptionInfo( } else { encryptionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -12510,7 +12971,7 @@ public Builder setEncryptionInfo( */ public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo value) { if (encryptionInfoBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && encryptionInfo_ != null && encryptionInfo_ != com.google.cloud.alloydb.v1.EncryptionInfo.getDefaultInstance()) { getEncryptionInfoBuilder().mergeFrom(value); @@ -12521,7 +12982,7 @@ public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo va encryptionInfoBuilder_.mergeFrom(value); } if (encryptionInfo_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -12539,7 +13000,7 @@ public Builder mergeEncryptionInfo(com.google.cloud.alloydb.v1.EncryptionInfo va * */ public Builder clearEncryptionInfo() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); encryptionInfo_ = null; if (encryptionInfoBuilder_ != null) { encryptionInfoBuilder_.dispose(); @@ -12561,7 +13022,7 @@ public Builder clearEncryptionInfo() { * */ public com.google.cloud.alloydb.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return getEncryptionInfoFieldBuilder().getBuilder(); } @@ -12636,7 +13097,7 @@ public com.google.cloud.alloydb.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBu * @return Whether the continuousBackupConfig field is set. */ public boolean hasContinuousBackupConfig() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** @@ -12683,7 +13144,7 @@ public Builder setContinuousBackupConfig( } else { continuousBackupConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -12706,7 +13167,7 @@ public Builder setContinuousBackupConfig( } else { continuousBackupConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -12725,7 +13186,7 @@ public Builder setContinuousBackupConfig( public Builder mergeContinuousBackupConfig( com.google.cloud.alloydb.v1.ContinuousBackupConfig value) { if (continuousBackupConfigBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && continuousBackupConfig_ != null && continuousBackupConfig_ != com.google.cloud.alloydb.v1.ContinuousBackupConfig.getDefaultInstance()) { @@ -12737,7 +13198,7 @@ public Builder mergeContinuousBackupConfig( continuousBackupConfigBuilder_.mergeFrom(value); } if (continuousBackupConfig_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -12755,7 +13216,7 @@ public Builder mergeContinuousBackupConfig( * */ public Builder clearContinuousBackupConfig() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); continuousBackupConfig_ = null; if (continuousBackupConfigBuilder_ != null) { continuousBackupConfigBuilder_.dispose(); @@ -12778,7 +13239,7 @@ public Builder clearContinuousBackupConfig() { */ public com.google.cloud.alloydb.v1.ContinuousBackupConfig.Builder getContinuousBackupConfigBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getContinuousBackupConfigFieldBuilder().getBuilder(); } @@ -12854,7 +13315,7 @@ public Builder clearContinuousBackupConfig() { * @return Whether the continuousBackupInfo field is set. */ public boolean hasContinuousBackupInfo() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x01000000) != 0); } /** @@ -12900,7 +13361,7 @@ public Builder setContinuousBackupInfo(com.google.cloud.alloydb.v1.ContinuousBac } else { continuousBackupInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -12923,7 +13384,7 @@ public Builder setContinuousBackupInfo( } else { continuousBackupInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -12942,7 +13403,7 @@ public Builder setContinuousBackupInfo( public Builder mergeContinuousBackupInfo( com.google.cloud.alloydb.v1.ContinuousBackupInfo value) { if (continuousBackupInfoBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) + if (((bitField0_ & 0x01000000) != 0) && continuousBackupInfo_ != null && continuousBackupInfo_ != com.google.cloud.alloydb.v1.ContinuousBackupInfo.getDefaultInstance()) { @@ -12954,7 +13415,7 @@ public Builder mergeContinuousBackupInfo( continuousBackupInfoBuilder_.mergeFrom(value); } if (continuousBackupInfo_ != null) { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -12972,7 +13433,7 @@ public Builder mergeContinuousBackupInfo( * */ public Builder clearContinuousBackupInfo() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); continuousBackupInfo_ = null; if (continuousBackupInfoBuilder_ != null) { continuousBackupInfoBuilder_.dispose(); @@ -12995,7 +13456,7 @@ public Builder clearContinuousBackupInfo() { */ public com.google.cloud.alloydb.v1.ContinuousBackupInfo.Builder getContinuousBackupInfoBuilder() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return getContinuousBackupInfoFieldBuilder().getBuilder(); } @@ -13069,7 +13530,7 @@ public Builder clearContinuousBackupInfo() { * @return Whether the secondaryConfig field is set. */ public boolean hasSecondaryConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -13111,7 +13572,7 @@ public Builder setSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryC } else { secondaryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13132,7 +13593,7 @@ public Builder setSecondaryConfig( } else { secondaryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13148,7 +13609,7 @@ public Builder setSecondaryConfig( */ public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.SecondaryConfig value) { if (secondaryConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x02000000) != 0) && secondaryConfig_ != null && secondaryConfig_ != com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.getDefaultInstance()) { @@ -13160,7 +13621,7 @@ public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.Secondar secondaryConfigBuilder_.mergeFrom(value); } if (secondaryConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -13176,7 +13637,7 @@ public Builder mergeSecondaryConfig(com.google.cloud.alloydb.v1.Cluster.Secondar * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ public Builder clearSecondaryConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); secondaryConfig_ = null; if (secondaryConfigBuilder_ != null) { secondaryConfigBuilder_.dispose(); @@ -13196,7 +13657,7 @@ public Builder clearSecondaryConfig() { * .google.cloud.alloydb.v1.Cluster.SecondaryConfig secondary_config = 22; */ public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder getSecondaryConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getSecondaryConfigFieldBuilder().getBuilder(); } @@ -13268,7 +13729,7 @@ public com.google.cloud.alloydb.v1.Cluster.SecondaryConfig.Builder getSecondaryC * @return Whether the primaryConfig field is set. */ public boolean hasPrimaryConfig() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -13314,7 +13775,7 @@ public Builder setPrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfi } else { primaryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13337,7 +13798,7 @@ public Builder setPrimaryConfig( } else { primaryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13355,7 +13816,7 @@ public Builder setPrimaryConfig( */ public Builder mergePrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryConfig value) { if (primaryConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && primaryConfig_ != null && primaryConfig_ != com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.getDefaultInstance()) { @@ -13367,7 +13828,7 @@ public Builder mergePrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryCon primaryConfigBuilder_.mergeFrom(value); } if (primaryConfig_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -13385,7 +13846,7 @@ public Builder mergePrimaryConfig(com.google.cloud.alloydb.v1.Cluster.PrimaryCon * */ public Builder clearPrimaryConfig() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); primaryConfig_ = null; if (primaryConfigBuilder_ != null) { primaryConfigBuilder_.dispose(); @@ -13407,7 +13868,7 @@ public Builder clearPrimaryConfig() { * */ public com.google.cloud.alloydb.v1.Cluster.PrimaryConfig.Builder getPrimaryConfigBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return getPrimaryConfigFieldBuilder().getBuilder(); } @@ -13494,7 +13955,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -13511,7 +13972,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); satisfiesPzs_ = false; onChanged(); return this; @@ -13539,7 +14000,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscConfig field is set. */ public boolean hasPscConfig() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -13587,7 +14048,7 @@ public Builder setPscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig value) } else { pscConfigBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -13611,7 +14072,7 @@ public Builder setPscConfig( } else { pscConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -13630,7 +14091,7 @@ public Builder setPscConfig( */ public Builder mergePscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig value) { if (pscConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && pscConfig_ != null && pscConfig_ != com.google.cloud.alloydb.v1.Cluster.PscConfig.getDefaultInstance()) { getPscConfigBuilder().mergeFrom(value); @@ -13641,7 +14102,7 @@ public Builder mergePscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig valu pscConfigBuilder_.mergeFrom(value); } if (pscConfig_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -13660,7 +14121,7 @@ public Builder mergePscConfig(com.google.cloud.alloydb.v1.Cluster.PscConfig valu * */ public Builder clearPscConfig() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); pscConfig_ = null; if (pscConfigBuilder_ != null) { pscConfigBuilder_.dispose(); @@ -13683,7 +14144,7 @@ public Builder clearPscConfig() { * */ public com.google.cloud.alloydb.v1.Cluster.PscConfig.Builder getPscConfigBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return getPscConfigFieldBuilder().getBuilder(); } @@ -13761,7 +14222,7 @@ public com.google.cloud.alloydb.v1.Cluster.PscConfigOrBuilder getPscConfigOrBuil * @return Whether the maintenanceUpdatePolicy field is set. */ public boolean hasMaintenanceUpdatePolicy() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -13810,7 +14271,7 @@ public Builder setMaintenanceUpdatePolicy( } else { maintenanceUpdatePolicyBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -13834,7 +14295,7 @@ public Builder setMaintenanceUpdatePolicy( } else { maintenanceUpdatePolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -13854,7 +14315,7 @@ public Builder setMaintenanceUpdatePolicy( public Builder mergeMaintenanceUpdatePolicy( com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy value) { if (maintenanceUpdatePolicyBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && maintenanceUpdatePolicy_ != null && maintenanceUpdatePolicy_ != com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.getDefaultInstance()) { @@ -13866,7 +14327,7 @@ public Builder mergeMaintenanceUpdatePolicy( maintenanceUpdatePolicyBuilder_.mergeFrom(value); } if (maintenanceUpdatePolicy_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -13885,7 +14346,7 @@ public Builder mergeMaintenanceUpdatePolicy( * */ public Builder clearMaintenanceUpdatePolicy() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); maintenanceUpdatePolicy_ = null; if (maintenanceUpdatePolicyBuilder_ != null) { maintenanceUpdatePolicyBuilder_.dispose(); @@ -13909,7 +14370,7 @@ public Builder clearMaintenanceUpdatePolicy() { */ public com.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.Builder getMaintenanceUpdatePolicyBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return getMaintenanceUpdatePolicyFieldBuilder().getBuilder(); } @@ -13988,7 +14449,7 @@ public Builder clearMaintenanceUpdatePolicy() { * @return Whether the maintenanceSchedule field is set. */ public boolean hasMaintenanceSchedule() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -14036,7 +14497,7 @@ public Builder setMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceSch } else { maintenanceScheduleBuilder_.setMessage(value); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -14060,7 +14521,7 @@ public Builder setMaintenanceSchedule( } else { maintenanceScheduleBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -14079,7 +14540,7 @@ public Builder setMaintenanceSchedule( */ public Builder mergeMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceSchedule value) { if (maintenanceScheduleBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && maintenanceSchedule_ != null && maintenanceSchedule_ != com.google.cloud.alloydb.v1.MaintenanceSchedule.getDefaultInstance()) { @@ -14091,7 +14552,7 @@ public Builder mergeMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceS maintenanceScheduleBuilder_.mergeFrom(value); } if (maintenanceSchedule_ != null) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -14110,7 +14571,7 @@ public Builder mergeMaintenanceSchedule(com.google.cloud.alloydb.v1.MaintenanceS * */ public Builder clearMaintenanceSchedule() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x40000000); maintenanceSchedule_ = null; if (maintenanceScheduleBuilder_ != null) { maintenanceScheduleBuilder_.dispose(); @@ -14133,7 +14594,7 @@ public Builder clearMaintenanceSchedule() { * */ public com.google.cloud.alloydb.v1.MaintenanceSchedule.Builder getMaintenanceScheduleBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return getMaintenanceScheduleFieldBuilder().getBuilder(); } @@ -14226,7 +14687,7 @@ public int getSubscriptionTypeValue() { */ public Builder setSubscriptionTypeValue(int value) { subscriptionType_ = value; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -14269,7 +14730,7 @@ public Builder setSubscriptionType(com.google.cloud.alloydb.v1.SubscriptionType if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; subscriptionType_ = value.getNumber(); onChanged(); return this; @@ -14289,7 +14750,7 @@ public Builder setSubscriptionType(com.google.cloud.alloydb.v1.SubscriptionType * @return This builder for chaining. */ public Builder clearSubscriptionType() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); subscriptionType_ = 0; onChanged(); return this; @@ -14316,7 +14777,7 @@ public Builder clearSubscriptionType() { * @return Whether the trialMetadata field is set. */ public boolean hasTrialMetadata() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField1_ & 0x00000001) != 0); } /** @@ -14362,7 +14823,7 @@ public Builder setTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetadat } else { trialMetadataBuilder_.setMessage(value); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14385,7 +14846,7 @@ public Builder setTrialMetadata( } else { trialMetadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -14403,7 +14864,7 @@ public Builder setTrialMetadata( */ public Builder mergeTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetadata value) { if (trialMetadataBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) + if (((bitField1_ & 0x00000001) != 0) && trialMetadata_ != null && trialMetadata_ != com.google.cloud.alloydb.v1.Cluster.TrialMetadata.getDefaultInstance()) { @@ -14415,7 +14876,7 @@ public Builder mergeTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetad trialMetadataBuilder_.mergeFrom(value); } if (trialMetadata_ != null) { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); } return this; @@ -14433,7 +14894,7 @@ public Builder mergeTrialMetadata(com.google.cloud.alloydb.v1.Cluster.TrialMetad * */ public Builder clearTrialMetadata() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); trialMetadata_ = null; if (trialMetadataBuilder_ != null) { trialMetadataBuilder_.dispose(); @@ -14455,7 +14916,7 @@ public Builder clearTrialMetadata() { * */ public com.google.cloud.alloydb.v1.Cluster.TrialMetadata.Builder getTrialMetadataBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return getTrialMetadataFieldBuilder().getBuilder(); } @@ -14526,7 +14987,7 @@ private com.google.protobuf.MapField interna if (!tags_.isMutable()) { tags_ = tags_.copy(); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return tags_; } @@ -14644,7 +15105,7 @@ public java.lang.String getTagsOrThrow(java.lang.String key) { } public Builder clearTags() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); internalGetMutableTags().getMutableMap().clear(); return this; } @@ -14676,7 +15137,7 @@ public Builder removeTags(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTags() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; return internalGetMutableTags().getMutableMap(); } @@ -14704,7 +15165,7 @@ public Builder putTags(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableTags().getMutableMap().put(key, value); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; return this; } @@ -14726,7 +15187,7 @@ public Builder putTags(java.lang.String key, java.lang.String value) { */ public Builder putAllTags(java.util.Map values) { internalGetMutableTags().getMutableMap().putAll(values); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; return this; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java index c0e85eae4f99..6ce458b5f7ed 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java @@ -110,6 +110,50 @@ public interface ClusterOrBuilder */ com.google.cloud.alloydb.v1.MigrationSourceOrBuilder getMigrationSourceOrBuilder(); + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + boolean hasCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudsqlBackupRunSource. + */ + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Output only. Cluster created from CloudSQL snapshot.
+   * 
+ * + * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder(); + /** * * @@ -526,7 +570,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The network. */ @java.lang.Deprecated @@ -548,7 +592,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.alloydb.v1.Cluster.network is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=616 + * google/cloud/alloydb/v1/resources.proto;l=624 * @return The bytes for network. */ @java.lang.Deprecated @@ -781,7 +825,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -797,7 +841,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1/resources.proto;l=651 + * google/cloud/alloydb/v1/resources.proto;l=659 * @return The sslConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfig.java index 96ea81e5b292..7054ad74750b 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfig.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfig.java @@ -129,8 +129,7 @@ public int getRecoveryWindowDays() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -148,8 +147,7 @@ public boolean hasEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -169,8 +167,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -744,8 +741,7 @@ public Builder clearRecoveryWindowDays() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -762,8 +758,7 @@ public boolean hasEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -786,8 +781,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig getEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -812,8 +806,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfig *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -836,8 +829,7 @@ public Builder setEncryptionConfig( *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -868,8 +860,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1.EncryptionConfi *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -891,8 +882,7 @@ public Builder clearEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -909,8 +899,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfig.Builder getEncryptionConfigB *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -931,8 +920,7 @@ public com.google.cloud.alloydb.v1.EncryptionConfigOrBuilder getEncryptionConfig *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfigOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfigOrBuilder.java index bbe12e8369af..b94e425c009e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfigOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ContinuousBackupConfigOrBuilder.java @@ -71,8 +71,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -87,8 +86,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; @@ -103,8 +101,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CsqlResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CsqlResourcesProto.java new file mode 100644 index 000000000000..e20bcf2fbb23 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/CsqlResourcesProto.java @@ -0,0 +1,78 @@ +/* + * 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/alloydb/v1/csql_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public final class CsqlResourcesProto { + private CsqlResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/alloydb/v1/csql_resources" + + ".proto\022\027google.cloud.alloydb.v1\032\037google/" + + "api/field_behavior.proto\"`\n\027CloudSQLBack" + + "upRunSource\022\017\n\007project\030\001 \001(\t\022\030\n\013instance" + + "_id\030\002 \001(\tB\003\340A\002\022\032\n\rbackup_run_id\030\003 \001(\003B\003\340" + + "A\002B\273\001\n\033com.google.cloud.alloydb.v1B\022Csql" + + "ResourcesProtoP\001Z5cloud.google.com/go/al" + + "loydb/apiv1/alloydbpb;alloydbpb\252\002\027Google" + + ".Cloud.AlloyDb.V1\312\002\027Google\\Cloud\\AlloyDb" + + "\\V1\352\002\032Google::Cloud::AlloyDB::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_CloudSQLBackupRunSource_descriptor, + new java.lang.String[] { + "Project", "InstanceId", "BackupRunId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java index e931f1f35ad7..da2a9b22052e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequest.java @@ -317,7 +317,7 @@ public com.google.protobuf.ByteString getDatabaseBytes() { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The user. */ @@ -343,7 +343,7 @@ public java.lang.String getUser() { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for user. */ @@ -1290,7 +1290,7 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The user. */ @@ -1315,7 +1315,7 @@ public java.lang.String getUser() { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for user. */ @@ -1340,7 +1340,7 @@ public com.google.protobuf.ByteString getUserBytes() { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The user to set. * @return This builder for chaining. @@ -1364,7 +1364,7 @@ public Builder setUser(java.lang.String value) { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1384,7 +1384,7 @@ public Builder clearUser() { * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for user to set. * @return This builder for chaining. diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java index b981d9e4a760..2cecbe2d1437 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExecuteSqlRequestOrBuilder.java @@ -134,7 +134,7 @@ public interface ExecuteSqlRequestOrBuilder * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The user. */ @@ -149,7 +149,7 @@ public interface ExecuteSqlRequestOrBuilder * `SELECT current_user;` and NOT as a resource reference. * * - * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * string user = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for user. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequest.java new file mode 100644 index 000000000000..3131fa48567b --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequest.java @@ -0,0 +1,4717 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Export cluster request.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest} + */ +public final class ExportClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExportClusterRequest) + ExportClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportClusterRequest.newBuilder() to construct. + private ExportClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportClusterRequest() { + name_ = ""; + database_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.Builder.class); + } + + public interface CsvExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + java.lang.String getSelectQuery(); + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + com.google.protobuf.ByteString getSelectQueryBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + java.lang.String getFieldDelimiter(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + com.google.protobuf.ByteString getFieldDelimiterBytes(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + java.lang.String getQuoteCharacter(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + com.google.protobuf.ByteString getQuoteCharacterBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + java.lang.String getEscapeCharacter(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + com.google.protobuf.ByteString getEscapeCharacterBytes(); + } + + /** + * + * + *
+   * Options for exporting data in CSV format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions} + */ + public static final class CsvExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + CsvExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CsvExportOptions.newBuilder() to construct. + private CsvExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvExportOptions() { + selectQuery_ = ""; + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvExportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder.class); + } + + public static final int SELECT_QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object selectQuery_ = ""; + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + @java.lang.Override + public java.lang.String getSelectQuery() { + java.lang.Object ref = selectQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selectQuery_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelectQueryBytes() { + java.lang.Object ref = selectQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selectQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_DELIMITER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + @java.lang.Override + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUOTE_CHARACTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + @java.lang.Override + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ESCAPE_CHARACTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + @java.lang.Override + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = 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(selectQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, escapeCharacter_); + } + 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(selectQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selectQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, escapeCharacter_); + } + 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.alloydb.v1.ExportClusterRequest.CsvExportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions other = + (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) obj; + + if (!getSelectQuery().equals(other.getSelectQuery())) return false; + if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false; + if (!getQuoteCharacter().equals(other.getQuoteCharacter())) return false; + if (!getEscapeCharacter().equals(other.getEscapeCharacter())) 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) + SELECT_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSelectQuery().hashCode(); + hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getFieldDelimiter().hashCode(); + hash = (37 * hash) + QUOTE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getQuoteCharacter().hashCode(); + hash = (37 * hash) + ESCAPE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getEscapeCharacter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions 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.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions 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.alloydb.v1.ExportClusterRequest.CsvExportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions 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.alloydb.v1.ExportClusterRequest.CsvExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for exporting data in CSV format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + selectQuery_ = ""; + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions build() { + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions buildPartial() { + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions result = + new com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.selectQuery_ = selectQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldDelimiter_ = fieldDelimiter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.quoteCharacter_ = quoteCharacter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.escapeCharacter_ = escapeCharacter_; + } + } + + @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.alloydb.v1.ExportClusterRequest.CsvExportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions other) { + if (other + == com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance()) return this; + if (!other.getSelectQuery().isEmpty()) { + selectQuery_ = other.selectQuery_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFieldDelimiter().isEmpty()) { + fieldDelimiter_ = other.fieldDelimiter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuoteCharacter().isEmpty()) { + quoteCharacter_ = other.quoteCharacter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEscapeCharacter().isEmpty()) { + escapeCharacter_ = other.escapeCharacter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + selectQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + fieldDelimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + quoteCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + escapeCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object selectQuery_ = ""; + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + public java.lang.String getSelectQuery() { + java.lang.Object ref = selectQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selectQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + public com.google.protobuf.ByteString getSelectQueryBytes() { + java.lang.Object ref = selectQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selectQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The selectQuery to set. + * @return This builder for chaining. + */ + public Builder setSelectQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selectQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSelectQuery() { + selectQuery_ = getDefaultInstance().getSelectQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for selectQuery to set. + * @return This builder for chaining. + */ + public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selectQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldDelimiter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldDelimiter() { + fieldDelimiter_ = getDefaultInstance().getFieldDelimiter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldDelimiter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + quoteCharacter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuoteCharacter() { + quoteCharacter_ = getDefaultInstance().getQuoteCharacter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + quoteCharacter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + escapeCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscapeCharacter() { + escapeCharacter_ = getDefaultInstance().getEscapeCharacter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + escapeCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + private static final com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions(); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvExportOptions 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.alloydb.v1.ExportClusterRequest.CsvExportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SqlExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + java.util.List getTablesList(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + int getTablesCount(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + java.lang.String getTables(int index); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + com.google.protobuf.ByteString getTablesBytes(int index); + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + boolean hasSchemaOnly(); + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + boolean getSchemaOnly(); + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + boolean hasCleanTargetObjects(); + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + boolean getCleanTargetObjects(); + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + boolean hasIfExistTargetObjects(); + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + boolean getIfExistTargetObjects(); + } + + /** + * + * + *
+   * Options for exporting data in SQL format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions} + */ + public static final class SqlExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) + SqlExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SqlExportOptions.newBuilder() to construct. + private SqlExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlExportOptions() { + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlExportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder.class); + } + + private int bitField0_; + public static final int TABLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + public com.google.protobuf.ProtocolStringList getTablesList() { + return tables_; + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + public int getTablesCount() { + return tables_.size(); + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + public java.lang.String getTables(int index) { + return tables_.get(index); + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + public com.google.protobuf.ByteString getTablesBytes(int index) { + return tables_.getByteString(index); + } + + public static final int SCHEMA_ONLY_FIELD_NUMBER = 2; + private boolean schemaOnly_ = false; + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + @java.lang.Override + public boolean hasSchemaOnly() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + @java.lang.Override + public boolean getSchemaOnly() { + return schemaOnly_; + } + + public static final int CLEAN_TARGET_OBJECTS_FIELD_NUMBER = 3; + private boolean cleanTargetObjects_ = false; + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + @java.lang.Override + public boolean hasCleanTargetObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + @java.lang.Override + public boolean getCleanTargetObjects() { + return cleanTargetObjects_; + } + + public static final int IF_EXIST_TARGET_OBJECTS_FIELD_NUMBER = 4; + private boolean ifExistTargetObjects_ = false; + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + @java.lang.Override + public boolean hasIfExistTargetObjects() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + @java.lang.Override + public boolean getIfExistTargetObjects() { + return ifExistTargetObjects_; + } + + 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 < tables_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tables_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(2, schemaOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(3, cleanTargetObjects_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(4, ifExistTargetObjects_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tables_.size(); i++) { + dataSize += computeStringSizeNoTag(tables_.getRaw(i)); + } + size += dataSize; + size += 1 * getTablesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, schemaOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, cleanTargetObjects_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, ifExistTargetObjects_); + } + 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.alloydb.v1.ExportClusterRequest.SqlExportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions other = + (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) obj; + + if (!getTablesList().equals(other.getTablesList())) return false; + if (hasSchemaOnly() != other.hasSchemaOnly()) return false; + if (hasSchemaOnly()) { + if (getSchemaOnly() != other.getSchemaOnly()) return false; + } + if (hasCleanTargetObjects() != other.hasCleanTargetObjects()) return false; + if (hasCleanTargetObjects()) { + if (getCleanTargetObjects() != other.getCleanTargetObjects()) return false; + } + if (hasIfExistTargetObjects() != other.hasIfExistTargetObjects()) return false; + if (hasIfExistTargetObjects()) { + if (getIfExistTargetObjects() != other.getIfExistTargetObjects()) 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 (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + if (hasSchemaOnly()) { + hash = (37 * hash) + SCHEMA_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSchemaOnly()); + } + if (hasCleanTargetObjects()) { + hash = (37 * hash) + CLEAN_TARGET_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCleanTargetObjects()); + } + if (hasIfExistTargetObjects()) { + hash = (37 * hash) + IF_EXIST_TARGET_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIfExistTargetObjects()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions 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.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions 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.alloydb.v1.ExportClusterRequest.SqlExportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions 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.alloydb.v1.ExportClusterRequest.SqlExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for exporting data in SQL format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + schemaOnly_ = false; + cleanTargetObjects_ = false; + ifExistTargetObjects_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions build() { + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions buildPartial() { + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions result = + new com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + tables_.makeImmutable(); + result.tables_ = tables_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaOnly_ = schemaOnly_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cleanTargetObjects_ = cleanTargetObjects_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ifExistTargetObjects_ = ifExistTargetObjects_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions other) { + if (other + == com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance()) return this; + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ |= 0x00000001; + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + if (other.hasSchemaOnly()) { + setSchemaOnly(other.getSchemaOnly()); + } + if (other.hasCleanTargetObjects()) { + setCleanTargetObjects(other.getCleanTargetObjects()); + } + if (other.hasIfExistTargetObjects()) { + setIfExistTargetObjects(other.getIfExistTargetObjects()); + } + 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(); + ensureTablesIsMutable(); + tables_.add(s); + break; + } // case 10 + case 16: + { + schemaOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + cleanTargetObjects_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + ifExistTargetObjects_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList tables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTablesIsMutable() { + if (!tables_.isModifiable()) { + tables_ = new com.google.protobuf.LazyStringArrayList(tables_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + public com.google.protobuf.ProtocolStringList getTablesList() { + tables_.makeImmutable(); + return tables_; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + public int getTablesCount() { + return tables_.size(); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + public java.lang.String getTables(int index) { + return tables_.get(index); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + public com.google.protobuf.ByteString getTablesBytes(int index) { + return tables_.getByteString(index); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tables to set. + * @return This builder for chaining. + */ + public Builder setTables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tables to add. + * @return This builder for chaining. + */ + public Builder addTables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tables to add. + * @return This builder for chaining. + */ + public Builder addAllTables(java.lang.Iterable values) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tables_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTables() { + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tables to add. + * @return This builder for chaining. + */ + public Builder addTablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTablesIsMutable(); + tables_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean schemaOnly_; + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + @java.lang.Override + public boolean hasSchemaOnly() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + @java.lang.Override + public boolean getSchemaOnly() { + return schemaOnly_; + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The schemaOnly to set. + * @return This builder for chaining. + */ + public Builder setSchemaOnly(boolean value) { + + schemaOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSchemaOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + schemaOnly_ = false; + onChanged(); + return this; + } + + private boolean cleanTargetObjects_; + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + @java.lang.Override + public boolean hasCleanTargetObjects() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + @java.lang.Override + public boolean getCleanTargetObjects() { + return cleanTargetObjects_; + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The cleanTargetObjects to set. + * @return This builder for chaining. + */ + public Builder setCleanTargetObjects(boolean value) { + + cleanTargetObjects_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCleanTargetObjects() { + bitField0_ = (bitField0_ & ~0x00000004); + cleanTargetObjects_ = false; + onChanged(); + return this; + } + + private boolean ifExistTargetObjects_; + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + @java.lang.Override + public boolean hasIfExistTargetObjects() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + @java.lang.Override + public boolean getIfExistTargetObjects() { + return ifExistTargetObjects_; + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ifExistTargetObjects to set. + * @return This builder for chaining. + */ + public Builder setIfExistTargetObjects(boolean value) { + + ifExistTargetObjects_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIfExistTargetObjects() { + bitField0_ = (bitField0_ & ~0x00000008); + ifExistTargetObjects_ = 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.alloydb.v1.ExportClusterRequest.SqlExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) + private static final com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions(); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlExportOptions 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.alloydb.v1.ExportClusterRequest.SqlExportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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_DESTINATION(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_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + private int exportOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object exportOptions_; + + public enum ExportOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CSV_EXPORT_OPTIONS(4), + SQL_EXPORT_OPTIONS(5), + EXPORTOPTIONS_NOT_SET(0); + private final int value; + + private ExportOptionsCase(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 ExportOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static ExportOptionsCase forNumber(int value) { + switch (value) { + case 4: + return CSV_EXPORT_OPTIONS; + case 5: + return SQL_EXPORT_OPTIONS; + case 0: + return EXPORTOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExportOptionsCase getExportOptionsCase() { + return ExportOptionsCase.forNumber(exportOptionsCase_); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination getGcsDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + + public static final int CSV_EXPORT_OPTIONS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvExportOptions() { + return exportOptionsCase_ == 4; + } + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions getCsvExportOptions() { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder() { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.getDefaultInstance(); + } + + public static final int SQL_EXPORT_OPTIONS_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlExportOptions() { + return exportOptionsCase_ == 5; + } + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions getSqlExportOptions() { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder() { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = 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 (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.alloydb.v1.GcsDestination) destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, database_); + } + if (exportOptionsCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_); + } + if (exportOptionsCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_); + } + 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.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.alloydb.v1.GcsDestination) destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, database_); + } + if (exportOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_); + } + if (exportOptionsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_); + } + 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.alloydb.v1.ExportClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExportClusterRequest other = + (com.google.cloud.alloydb.v1.ExportClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsDestination().equals(other.getGcsDestination())) return false; + break; + case 0: + default: + } + if (!getExportOptionsCase().equals(other.getExportOptionsCase())) return false; + switch (exportOptionsCase_) { + case 4: + if (!getCsvExportOptions().equals(other.getCsvExportOptions())) return false; + break; + case 5: + if (!getSqlExportOptions().equals(other.getSqlExportOptions())) 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) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + switch (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 0: + default: + } + switch (exportOptionsCase_) { + case 4: + hash = (37 * hash) + CSV_EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCsvExportOptions().hashCode(); + break; + case 5: + hash = (37 * hash) + SQL_EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSqlExportOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest 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.alloydb.v1.ExportClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest 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.alloydb.v1.ExportClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1.ExportClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest 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.alloydb.v1.ExportClusterRequest 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; + } + + /** + * + * + *
+   * Export cluster request.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExportClusterRequest) + com.google.cloud.alloydb.v1.ExportClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterRequest.class, + com.google.cloud.alloydb.v1.ExportClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ExportClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (csvExportOptionsBuilder_ != null) { + csvExportOptionsBuilder_.clear(); + } + if (sqlExportOptionsBuilder_ != null) { + sqlExportOptionsBuilder_.clear(); + } + name_ = ""; + database_ = ""; + destinationCase_ = 0; + destination_ = null; + exportOptionsCase_ = 0; + exportOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExportClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest build() { + com.google.cloud.alloydb.v1.ExportClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest buildPartial() { + com.google.cloud.alloydb.v1.ExportClusterRequest result = + new com.google.cloud.alloydb.v1.ExportClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ExportClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.ExportClusterRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + result.exportOptionsCase_ = exportOptionsCase_; + result.exportOptions_ = this.exportOptions_; + if (exportOptionsCase_ == 4 && csvExportOptionsBuilder_ != null) { + result.exportOptions_ = csvExportOptionsBuilder_.build(); + } + if (exportOptionsCase_ == 5 && sqlExportOptionsBuilder_ != null) { + result.exportOptions_ = sqlExportOptionsBuilder_.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.alloydb.v1.ExportClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.ExportClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ExportClusterRequest other) { + if (other == com.google.cloud.alloydb.v1.ExportClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + switch (other.getExportOptionsCase()) { + case CSV_EXPORT_OPTIONS: + { + mergeCsvExportOptions(other.getCsvExportOptions()); + break; + } + case SQL_EXPORT_OPTIONS: + { + mergeSqlExportOptions(other.getSqlExportOptions()); + break; + } + case EXPORTOPTIONS_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_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + case 26: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getCsvExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + exportOptionsCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getSqlExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + exportOptionsCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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 exportOptionsCase_ = 0; + private java.lang.Object exportOptions_; + + public ExportOptionsCase getExportOptionsCase() { + return ExportOptionsCase.forNumber(exportOptionsCase_); + } + + public Builder clearExportOptions() { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.alloydb.v1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.alloydb.v1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.alloydb.v1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ != com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.alloydb.v1.GcsDestination.newBuilder( + (com.google.cloud.alloydb.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 2) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder>( + (com.google.cloud.alloydb.v1.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return gcsDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder> + csvExportOptionsBuilder_; + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvExportOptions() { + return exportOptionsCase_ == 4; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions getCsvExportOptions() { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } else { + if (exportOptionsCase_ == 4) { + return csvExportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder setCsvExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions value) { + if (csvExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + onChanged(); + } else { + csvExportOptionsBuilder_.setMessage(value); + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder setCsvExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder builderForValue) { + if (csvExportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + onChanged(); + } else { + csvExportOptionsBuilder_.setMessage(builderForValue.build()); + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder mergeCsvExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions value) { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4 + && exportOptions_ + != com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance()) { + exportOptions_ = + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.newBuilder( + (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) + exportOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + exportOptions_ = value; + } + onChanged(); + } else { + if (exportOptionsCase_ == 4) { + csvExportOptionsBuilder_.mergeFrom(value); + } else { + csvExportOptionsBuilder_.setMessage(value); + } + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder clearCsvExportOptions() { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4) { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + } + } else { + if (exportOptionsCase_ == 4) { + exportOptionsCase_ = 0; + exportOptions_ = null; + } + csvExportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder + getCsvExportOptionsBuilder() { + return getCsvExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder() { + if ((exportOptionsCase_ == 4) && (csvExportOptionsBuilder_ != null)) { + return csvExportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder> + getCsvExportOptionsFieldBuilder() { + if (csvExportOptionsBuilder_ == null) { + if (!(exportOptionsCase_ == 4)) { + exportOptions_ = + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + csvExportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions) exportOptions_, + getParentForChildren(), + isClean()); + exportOptions_ = null; + } + exportOptionsCase_ = 4; + onChanged(); + return csvExportOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder> + sqlExportOptionsBuilder_; + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlExportOptions() { + return exportOptionsCase_ == 5; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions getSqlExportOptions() { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } else { + if (exportOptionsCase_ == 5) { + return sqlExportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder setSqlExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions value) { + if (sqlExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + onChanged(); + } else { + sqlExportOptionsBuilder_.setMessage(value); + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder setSqlExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder builderForValue) { + if (sqlExportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + onChanged(); + } else { + sqlExportOptionsBuilder_.setMessage(builderForValue.build()); + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder mergeSqlExportOptions( + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions value) { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5 + && exportOptions_ + != com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance()) { + exportOptions_ = + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.newBuilder( + (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) + exportOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + exportOptions_ = value; + } + onChanged(); + } else { + if (exportOptionsCase_ == 5) { + sqlExportOptionsBuilder_.mergeFrom(value); + } else { + sqlExportOptionsBuilder_.setMessage(value); + } + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder clearSqlExportOptions() { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5) { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + } + } else { + if (exportOptionsCase_ == 5) { + exportOptionsCase_ = 0; + exportOptions_ = null; + } + sqlExportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder + getSqlExportOptionsBuilder() { + return getSqlExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder() { + if ((exportOptionsCase_ == 5) && (sqlExportOptionsBuilder_ != null)) { + return sqlExportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_; + } + return com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder> + getSqlExportOptionsFieldBuilder() { + if (sqlExportOptionsBuilder_ == null) { + if (!(exportOptionsCase_ == 5)) { + exportOptions_ = + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + sqlExportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions) exportOptions_, + getParentForChildren(), + isClean()); + exportOptions_ = null; + } + exportOptionsCase_ = 5; + onChanged(); + return sqlExportOptionsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ExportClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExportClusterRequest) + private static final com.google.cloud.alloydb.v1.ExportClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExportClusterRequest(); + } + + public static com.google.cloud.alloydb.v1.ExportClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportClusterRequest 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.alloydb.v1.ExportClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequestOrBuilder.java new file mode 100644 index 000000000000..6764f0bdac37 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterRequestOrBuilder.java @@ -0,0 +1,221 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ExportClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExportClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.alloydb.v1.GcsDestination getGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + boolean hasCsvExportOptions(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions getCsvExportOptions(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + com.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + boolean hasSqlExportOptions(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions getSqlExportOptions(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * .google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + com.google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + com.google.cloud.alloydb.v1.ExportClusterRequest.DestinationCase getDestinationCase(); + + com.google.cloud.alloydb.v1.ExportClusterRequest.ExportOptionsCase getExportOptionsCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponse.java new file mode 100644 index 000000000000..97cb35a10f4d --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponse.java @@ -0,0 +1,856 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Response of export cluster rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterResponse} + */ +public final class ExportClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ExportClusterResponse) + ExportClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportClusterResponse.newBuilder() to construct. + private ExportClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportClusterResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterResponse.class, + com.google.cloud.alloydb.v1.ExportClusterResponse.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_DESTINATION(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_DESTINATION; + 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_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination getGcsDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.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 (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.alloydb.v1.GcsDestination) destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.alloydb.v1.GcsDestination) destination_); + } + 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.alloydb.v1.ExportClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ExportClusterResponse other = + (com.google.cloud.alloydb.v1.ExportClusterResponse) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsDestination().equals(other.getGcsDestination())) 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 (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse 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.alloydb.v1.ExportClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse 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.alloydb.v1.ExportClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1.ExportClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse 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.alloydb.v1.ExportClusterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response of export cluster rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ExportClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ExportClusterResponse) + com.google.cloud.alloydb.v1.ExportClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ExportClusterResponse.class, + com.google.cloud.alloydb.v1.ExportClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ExportClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ExportClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterResponse build() { + com.google.cloud.alloydb.v1.ExportClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ExportClusterResponse buildPartial() { + com.google.cloud.alloydb.v1.ExportClusterResponse result = + new com.google.cloud.alloydb.v1.ExportClusterResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ExportClusterResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.ExportClusterResponse result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.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.alloydb.v1.ExportClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1.ExportClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ExportClusterResponse other) { + if (other == com.google.cloud.alloydb.v1.ExportClusterResponse.getDefaultInstance()) + return this; + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + 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 18: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.alloydb.v1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.alloydb.v1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.alloydb.v1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ != com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.alloydb.v1.GcsDestination.newBuilder( + (com.google.cloud.alloydb.v1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 2) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.GcsDestination, + com.google.cloud.alloydb.v1.GcsDestination.Builder, + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder>( + (com.google.cloud.alloydb.v1.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return gcsDestinationBuilder_; + } + + @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.alloydb.v1.ExportClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ExportClusterResponse) + private static final com.google.cloud.alloydb.v1.ExportClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ExportClusterResponse(); + } + + public static com.google.cloud.alloydb.v1.ExportClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportClusterResponse 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.alloydb.v1.ExportClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponseOrBuilder.java new file mode 100644 index 000000000000..94c01e3290eb --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ExportClusterResponseOrBuilder.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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ExportClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ExportClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.alloydb.v1.GcsDestination getGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + com.google.cloud.alloydb.v1.ExportClusterResponse.DestinationCase getDestinationCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestination.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestination.java new file mode 100644 index 000000000000..7145576c8819 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestination.java @@ -0,0 +1,640 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Destination for Export. Export will be done to cloud storage.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.GcsDestination} + */ +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.GcsDestination) + GcsDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GcsDestination.newBuilder() to construct. + private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsDestination() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_GcsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.GcsDestination.class, + com.google.cloud.alloydb.v1.GcsDestination.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + 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(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + 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.alloydb.v1.GcsDestination)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.GcsDestination other = + (com.google.cloud.alloydb.v1.GcsDestination) obj; + + if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.GcsDestination 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.alloydb.v1.GcsDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.GcsDestination 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.alloydb.v1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.GcsDestination parseDelimitedFrom( + java.io.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.alloydb.v1.GcsDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.GcsDestination 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.alloydb.v1.GcsDestination 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; + } + + /** + * + * + *
+   * Destination for Export. Export will be done to cloud storage.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.GcsDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.GcsDestination) + com.google.cloud.alloydb.v1.GcsDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_GcsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.GcsDestination.class, + com.google.cloud.alloydb.v1.GcsDestination.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.GcsDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination build() { + com.google.cloud.alloydb.v1.GcsDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.GcsDestination buildPartial() { + com.google.cloud.alloydb.v1.GcsDestination result = + new com.google.cloud.alloydb.v1.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.GcsDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @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.alloydb.v1.GcsDestination) { + return mergeFrom((com.google.cloud.alloydb.v1.GcsDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.GcsDestination other) { + if (other == com.google.cloud.alloydb.v1.GcsDestination.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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: + { + uri_ = 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 uri_ = ""; + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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.alloydb.v1.GcsDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.GcsDestination) + private static final com.google.cloud.alloydb.v1.GcsDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.GcsDestination(); + } + + public static com.google.cloud.alloydb.v1.GcsDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination 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.alloydb.v1.GcsDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestinationOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestinationOrBuilder.java new file mode 100644 index 000000000000..b71efdc3afec --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GcsDestinationOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface GcsDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.GcsDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java index 3e8f17edd005..f104eba79c2c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequest.java @@ -333,9 +333,9 @@ public com.google.protobuf.ByteString getPublicKeyBytes() { * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1462,9 +1462,9 @@ public Builder setPublicKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1480,9 +1480,9 @@ public boolean getUseMetadataExchange() { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1502,9 +1502,9 @@ public Builder setUseMetadataExchange(boolean value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java index 10fa5bd9c82e..8f705ee885ce 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/GenerateClientCertificateRequestOrBuilder.java @@ -188,9 +188,9 @@ public interface GenerateClientCertificateRequestOrBuilder * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequest.java new file mode 100644 index 000000000000..bd98e0575ec8 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequest.java @@ -0,0 +1,4191 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Import cluster request.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest} + */ +public final class ImportClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ImportClusterRequest) + ImportClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterRequest.newBuilder() to construct. + private ImportClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterRequest() { + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.Builder.class); + } + + public interface SqlImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions} + */ + public static final class SqlImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + SqlImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SqlImportOptions.newBuilder() to construct. + private SqlImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlImportOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions other = + (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions 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.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions 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.alloydb.v1.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions 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.alloydb.v1.ImportClusterRequest.SqlImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions build() { + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions buildPartial() { + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions result = + new com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions other) { + if (other + == com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + private static final com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions(); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlImportOptions 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.alloydb.v1.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CsvImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + java.util.List getColumnsList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + int getColumnsCount(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + java.lang.String getColumns(int index); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + com.google.protobuf.ByteString getColumnsBytes(int index); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + java.lang.String getFieldDelimiter(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + com.google.protobuf.ByteString getFieldDelimiterBytes(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + java.lang.String getQuoteCharacter(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + com.google.protobuf.ByteString getQuoteCharacterBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + java.lang.String getEscapeCharacter(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + com.google.protobuf.ByteString getEscapeCharacterBytes(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions} + */ + public static final class CsvImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + CsvImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CsvImportOptions.newBuilder() to construct. + private CsvImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvImportOptions() { + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + return columns_; + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + public static final int FIELD_DELIMITER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + @java.lang.Override + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUOTE_CHARACTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + @java.lang.Override + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ESCAPE_CHARACTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + @java.lang.Override + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = 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(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columns_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escapeCharacter_); + } + 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(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + { + int dataSize = 0; + for (int i = 0; i < columns_.size(); i++) { + dataSize += computeStringSizeNoTag(columns_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escapeCharacter_); + } + 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.alloydb.v1.ImportClusterRequest.CsvImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions other = + (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false; + if (!getQuoteCharacter().equals(other.getQuoteCharacter())) return false; + if (!getEscapeCharacter().equals(other.getEscapeCharacter())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getFieldDelimiter().hashCode(); + hash = (37 * hash) + QUOTE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getQuoteCharacter().hashCode(); + hash = (37 * hash) + ESCAPE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getEscapeCharacter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions 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.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions 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.alloydb.v1.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions 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.alloydb.v1.ImportClusterRequest.CsvImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions build() { + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions buildPartial() { + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions result = + new com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + columns_.makeImmutable(); + result.columns_ = columns_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldDelimiter_ = fieldDelimiter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quoteCharacter_ = quoteCharacter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.escapeCharacter_ = escapeCharacter_; + } + } + + @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.alloydb.v1.ImportClusterRequest.CsvImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions other) { + if (other + == com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ |= 0x00000002; + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + if (!other.getFieldDelimiter().isEmpty()) { + fieldDelimiter_ = other.fieldDelimiter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getQuoteCharacter().isEmpty()) { + quoteCharacter_ = other.quoteCharacter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getEscapeCharacter().isEmpty()) { + escapeCharacter_ = other.escapeCharacter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnsIsMutable(); + columns_.add(s); + break; + } // case 18 + case 26: + { + fieldDelimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + quoteCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + escapeCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureColumnsIsMutable() { + if (!columns_.isModifiable()) { + columns_ = new com.google.protobuf.LazyStringArrayList(columns_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + columns_.makeImmutable(); + return columns_; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The columns to add. + * @return This builder for chaining. + */ + public Builder addColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The columns to add. + * @return This builder for chaining. + */ + public Builder addAllColumns(java.lang.Iterable values) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearColumns() { + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the columns to add. + * @return This builder for chaining. + */ + public Builder addColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldDelimiter() { + fieldDelimiter_ = getDefaultInstance().getFieldDelimiter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuoteCharacter() { + quoteCharacter_ = getDefaultInstance().getQuoteCharacter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscapeCharacter() { + escapeCharacter_ = getDefaultInstance().getEscapeCharacter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + private static final com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions(); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvImportOptions 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.alloydb.v1.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int importOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importOptions_; + + public enum ImportOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SQL_IMPORT_OPTIONS(4), + CSV_IMPORT_OPTIONS(7), + IMPORTOPTIONS_NOT_SET(0); + private final int value; + + private ImportOptionsCase(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 ImportOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static ImportOptionsCase forNumber(int value) { + switch (value) { + case 4: + return SQL_IMPORT_OPTIONS; + case 7: + return CSV_IMPORT_OPTIONS; + case 0: + return IMPORTOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public static final int SQL_IMPORT_OPTIONS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions getSqlImportOptions() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.getDefaultInstance(); + } + + public static final int CSV_IMPORT_OPTIONS_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions getCsvImportOptions() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = 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(gcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, database_); + } + if (importOptionsCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); + } + if (importOptionsCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_); + } + 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(gcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, database_); + } + if (importOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); + } + if (importOptionsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_); + } + 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.alloydb.v1.ImportClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ImportClusterRequest other = + (com.google.cloud.alloydb.v1.ImportClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getImportOptionsCase().equals(other.getImportOptionsCase())) return false; + switch (importOptionsCase_) { + case 4: + if (!getSqlImportOptions().equals(other.getSqlImportOptions())) return false; + break; + case 7: + if (!getCsvImportOptions().equals(other.getCsvImportOptions())) 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) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + switch (importOptionsCase_) { + case 4: + hash = (37 * hash) + SQL_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSqlImportOptions().hashCode(); + break; + case 7: + hash = (37 * hash) + CSV_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCsvImportOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest 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.alloydb.v1.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest 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.alloydb.v1.ImportClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1.ImportClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest 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.alloydb.v1.ImportClusterRequest 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; + } + + /** + * + * + *
+   * Import cluster request.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ImportClusterRequest) + com.google.cloud.alloydb.v1.ImportClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterRequest.class, + com.google.cloud.alloydb.v1.ImportClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ImportClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sqlImportOptionsBuilder_ != null) { + sqlImportOptionsBuilder_.clear(); + } + if (csvImportOptionsBuilder_ != null) { + csvImportOptionsBuilder_.clear(); + } + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + importOptionsCase_ = 0; + importOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ImportClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest build() { + com.google.cloud.alloydb.v1.ImportClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest buildPartial() { + com.google.cloud.alloydb.v1.ImportClusterRequest result = + new com.google.cloud.alloydb.v1.ImportClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ImportClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.user_ = user_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.ImportClusterRequest result) { + result.importOptionsCase_ = importOptionsCase_; + result.importOptions_ = this.importOptions_; + if (importOptionsCase_ == 4 && sqlImportOptionsBuilder_ != null) { + result.importOptions_ = sqlImportOptionsBuilder_.build(); + } + if (importOptionsCase_ == 7 && csvImportOptionsBuilder_ != null) { + result.importOptions_ = csvImportOptionsBuilder_.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.alloydb.v1.ImportClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.ImportClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ImportClusterRequest other) { + if (other == com.google.cloud.alloydb.v1.ImportClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000020; + onChanged(); + } + switch (other.getImportOptionsCase()) { + case SQL_IMPORT_OPTIONS: + { + mergeSqlImportOptions(other.getSqlImportOptions()); + break; + } + case CSV_IMPORT_OPTIONS: + { + mergeCsvImportOptions(other.getCsvImportOptions()); + break; + } + case IMPORTOPTIONS_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_ |= 0x00000004; + break; + } // case 10 + case 18: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getSqlImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 4; + break; + } // case 34 + case 42: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + input.readMessage( + getCsvImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 7; + 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 importOptionsCase_ = 0; + private java.lang.Object importOptions_; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public Builder clearImportOptions() { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder> + sqlImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions getSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 4) { + return sqlImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder builderForValue) { + if (sqlImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder mergeSqlImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4 + && importOptions_ + != com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.newBuilder( + (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 4) { + sqlImportOptionsBuilder_.mergeFrom(value); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder clearSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + } + sqlImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder + getSqlImportOptionsBuilder() { + return getSqlImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if ((importOptionsCase_ == 4) && (sqlImportOptionsBuilder_ != null)) { + return sqlImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder> + getSqlImportOptionsFieldBuilder() { + if (sqlImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 4)) { + importOptions_ = + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + sqlImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions) importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 4; + onChanged(); + return sqlImportOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder> + csvImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions getCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 7) { + return csvImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder builderForValue) { + if (csvImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder mergeCsvImportOptions( + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7 + && importOptions_ + != com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.newBuilder( + (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 7) { + csvImportOptionsBuilder_.mergeFrom(value); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder clearCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + } + csvImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder + getCsvImportOptionsBuilder() { + return getCsvImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if ((importOptionsCase_ == 7) && (csvImportOptionsBuilder_ != null)) { + return csvImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder> + getCsvImportOptionsFieldBuilder() { + if (csvImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 7)) { + importOptions_ = + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + csvImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions) importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 7; + onChanged(); + return csvImportOptionsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000020; + 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.alloydb.v1.ImportClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ImportClusterRequest) + private static final com.google.cloud.alloydb.v1.ImportClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ImportClusterRequest(); + } + + public static com.google.cloud.alloydb.v1.ImportClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterRequest 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.alloydb.v1.ImportClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequestOrBuilder.java new file mode 100644 index 000000000000..8509c2026919 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterRequestOrBuilder.java @@ -0,0 +1,234 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ImportClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ImportClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + boolean hasSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions getSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + com.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + boolean hasCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions getCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * .google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + com.google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + com.google.cloud.alloydb.v1.ImportClusterRequest.ImportOptionsCase getImportOptionsCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponse.java new file mode 100644 index 000000000000..5ad603ff1746 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponse.java @@ -0,0 +1,541 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Response of import rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterResponse} + */ +public final class ImportClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.ImportClusterResponse) + ImportClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterResponse.newBuilder() to construct. + private ImportClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterResponse.class, + com.google.cloud.alloydb.v1.ImportClusterResponse.Builder.class); + } + + public static final int BYTES_DOWNLOADED_FIELD_NUMBER = 1; + private long bytesDownloaded_ = 0L; + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + 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 (bytesDownloaded_ != 0L) { + output.writeInt64(1, bytesDownloaded_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bytesDownloaded_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, bytesDownloaded_); + } + 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.alloydb.v1.ImportClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.ImportClusterResponse other = + (com.google.cloud.alloydb.v1.ImportClusterResponse) obj; + + if (getBytesDownloaded() != other.getBytesDownloaded()) 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) + BYTES_DOWNLOADED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBytesDownloaded()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse 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.alloydb.v1.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse 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.alloydb.v1.ImportClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1.ImportClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse 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.alloydb.v1.ImportClusterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response of import rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.ImportClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.ImportClusterResponse) + com.google.cloud.alloydb.v1.ImportClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.ImportClusterResponse.class, + com.google.cloud.alloydb.v1.ImportClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.ImportClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bytesDownloaded_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.ImportClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterResponse build() { + com.google.cloud.alloydb.v1.ImportClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.ImportClusterResponse buildPartial() { + com.google.cloud.alloydb.v1.ImportClusterResponse result = + new com.google.cloud.alloydb.v1.ImportClusterResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.ImportClusterResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bytesDownloaded_ = bytesDownloaded_; + } + } + + @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.alloydb.v1.ImportClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1.ImportClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.ImportClusterResponse other) { + if (other == com.google.cloud.alloydb.v1.ImportClusterResponse.getDefaultInstance()) + return this; + if (other.getBytesDownloaded() != 0L) { + setBytesDownloaded(other.getBytesDownloaded()); + } + 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: + { + bytesDownloaded_ = input.readInt64(); + 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 long bytesDownloaded_; + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytesDownloaded to set. + * @return This builder for chaining. + */ + public Builder setBytesDownloaded(long value) { + + bytesDownloaded_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBytesDownloaded() { + bitField0_ = (bitField0_ & ~0x00000001); + bytesDownloaded_ = 0L; + 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.alloydb.v1.ImportClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.ImportClusterResponse) + private static final com.google.cloud.alloydb.v1.ImportClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.ImportClusterResponse(); + } + + public static com.google.cloud.alloydb.v1.ImportClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterResponse 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.alloydb.v1.ImportClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponseOrBuilder.java new file mode 100644 index 000000000000..494405527fa2 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ImportClusterResponseOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface ImportClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.ImportClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + long getBytesDownloaded(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java index 6ea129bc4054..e9488410117a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Instance.java @@ -776,6 +776,36 @@ public interface MachineConfigOrBuilder * @return The cpuCount. */ int getCpuCount(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); } /** @@ -798,7 +828,9 @@ private MachineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private MachineConfig() {} + private MachineConfig() { + machineType_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -840,6 +872,63 @@ public int getCpuCount() { return cpuCount_; } + public static final int MACHINE_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -857,6 +946,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); + } getUnknownFields().writeTo(output); } @@ -869,6 +961,9 @@ public int getSerializedSize() { if (cpuCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -886,6 +981,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.alloydb.v1.Instance.MachineConfig) obj; if (getCpuCount() != other.getCpuCount()) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -899,6 +995,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; hash = (53 * hash) + getCpuCount(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1042,6 +1140,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; cpuCount_ = 0; + machineType_ = ""; return this; } @@ -1081,6 +1180,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Instance.MachineConfig re if (((from_bitField0_ & 0x00000001) != 0)) { result.cpuCount_ = cpuCount_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.machineType_ = machineType_; + } } @java.lang.Override @@ -1134,6 +1236,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.MachineConfig othe if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1166,6 +1273,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 34: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1241,6 +1354,127 @@ public Builder clearCpuCount() { return this; } + private java.lang.Object machineType_ = ""; + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1314,10 +1548,10 @@ public interface NodeOrBuilder * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -1327,10 +1561,10 @@ public interface NodeOrBuilder * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -1340,10 +1574,11 @@ public interface NodeOrBuilder * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -1353,10 +1588,11 @@ public interface NodeOrBuilder * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -1366,10 +1602,10 @@ public interface NodeOrBuilder * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -1379,10 +1615,10 @@ public interface NodeOrBuilder * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -1392,13 +1628,13 @@ public interface NodeOrBuilder * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -1408,13 +1644,13 @@ public interface NodeOrBuilder * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -1426,7 +1662,7 @@ public interface NodeOrBuilder * *
    * Details of a single node in the instance.
-   * Nodes in an AlloyDB instance are ephemereal, they can change during
+   * Nodes in an AlloyDB instance are ephemeral, they can change during
    * update, failover, autohealing and resize operations.
    * 
* @@ -1480,10 +1716,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -1504,10 +1740,10 @@ public java.lang.String getZoneId() { * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -1533,10 +1769,11 @@ public com.google.protobuf.ByteString getZoneIdBytes() { * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -1557,10 +1794,11 @@ public java.lang.String getId() { * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -1586,10 +1824,10 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -1610,10 +1848,10 @@ public java.lang.String getIp() { * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -1639,13 +1877,13 @@ public com.google.protobuf.ByteString getIpBytes() { * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -1666,13 +1904,13 @@ public java.lang.String getState() { * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -1882,7 +2120,7 @@ protected Builder newBuilderForType( * *
      * Details of a single node in the instance.
-     * Nodes in an AlloyDB instance are ephemereal, they can change during
+     * Nodes in an AlloyDB instance are ephemeral, they can change during
      * update, failover, autohealing and resize operations.
      * 
* @@ -2115,10 +2353,10 @@ public Builder mergeFrom( * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -2138,10 +2376,10 @@ public java.lang.String getZoneId() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -2161,10 +2399,10 @@ public com.google.protobuf.ByteString getZoneIdBytes() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The zoneId to set. * @return This builder for chaining. @@ -2183,10 +2421,10 @@ public Builder setZoneId(java.lang.String value) { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2201,10 +2439,10 @@ public Builder clearZoneId() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for zoneId to set. * @return This builder for chaining. @@ -2226,10 +2464,11 @@ public Builder setZoneIdBytes(com.google.protobuf.ByteString value) { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -2249,10 +2488,11 @@ public java.lang.String getId() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -2272,10 +2512,11 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The id to set. * @return This builder for chaining. @@ -2294,10 +2535,11 @@ public Builder setId(java.lang.String value) { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2312,10 +2554,11 @@ public Builder clearId() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for id to set. * @return This builder for chaining. @@ -2337,10 +2580,10 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -2360,10 +2603,10 @@ public java.lang.String getIp() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -2383,10 +2626,10 @@ public com.google.protobuf.ByteString getIpBytes() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The ip to set. * @return This builder for chaining. @@ -2405,10 +2648,10 @@ public Builder setIp(java.lang.String value) { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2423,10 +2666,10 @@ public Builder clearIp() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for ip to set. * @return This builder for chaining. @@ -2448,13 +2691,13 @@ public Builder setIpBytes(com.google.protobuf.ByteString value) { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -2474,13 +2717,13 @@ public java.lang.String getState() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -2500,13 +2743,13 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The state to set. * @return This builder for chaining. @@ -2525,13 +2768,13 @@ public Builder setState(java.lang.String value) { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2546,13 +2789,13 @@ public Builder clearState() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for state to set. * @return This builder for chaining. @@ -3714,760 +3957,632 @@ public com.google.protobuf.Parser getParserForType( } } - public interface ReadPoolConfigOrBuilder + public interface ObservabilityInstanceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ReadPoolConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Read capacity, i.e. number of nodes in a read pool instance.
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
      * 
* - * int32 node_count = 1; + * optional bool enabled = 1; * - * @return The nodeCount. + * @return Whether the enabled field is set. */ - int getNodeCount(); - } - - /** - * - * - *
-   * Configuration for a read pool instance.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ReadPoolConfig} - */ - public static final class ReadPoolConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ReadPoolConfig) - ReadPoolConfigOrBuilder { - private static final long serialVersionUID = 0L; + boolean hasEnabled(); - // Use ReadPoolConfig.newBuilder() to construct. - private ReadPoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReadPoolConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReadPoolConfig(); - } + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; - } + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. + */ + boolean hasPreserveComments(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.class, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder.class); - } + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + boolean getPreserveComments(); - public static final int NODE_COUNT_FIELD_NUMBER = 1; - private int nodeCount_ = 0; + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + boolean hasTrackWaitEvents(); /** * * *
-     * Read capacity, i.e. number of nodes in a read pool instance.
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
      * 
* - * int32 node_count = 1; + * optional bool track_wait_events = 3; * - * @return The nodeCount. + * @return The trackWaitEvents. */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } + boolean getTrackWaitEvents(); - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + boolean hasTrackWaitEventTypes(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (nodeCount_ != 0) { - output.writeInt32(1, nodeCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, nodeCount_); - } - 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.alloydb.v1.Instance.ReadPoolConfig)) { - return super.equals(obj); - } - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig other = - (com.google.cloud.alloydb.v1.Instance.ReadPoolConfig) obj; - - if (getNodeCount() != other.getNodeCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + boolean getTrackWaitEventTypes(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getNodeCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + boolean hasMaxQueryStringLength(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + int getMaxQueryStringLength(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + boolean hasRecordApplicationTags(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + boolean getRecordApplicationTags(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + boolean hasQueryPlansPerMinute(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + int getQueryPlansPerMinute(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + boolean hasTrackActiveQueries(); - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
+     * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + boolean getTrackActiveQueries(); + } - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+   * Observability Instance specific configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} + */ + public static final class ObservabilityInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + ObservabilityInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + // Use ObservabilityInstanceConfig.newBuilder() to construct. + private ObservabilityInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private ObservabilityInstanceConfig() {} - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ObservabilityInstanceConfig(); } - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); } - public static Builder newBuilder( - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); } + /** + * + * + *
+     * Observability feature status for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool enabled = 1; + * + * @return The enabled. + */ @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public boolean getEnabled() { + return enabled_; } + public static final int PRESERVE_COMMENTS_FIELD_NUMBER = 2; + private boolean preserveComments_ = false; + /** * * *
-     * Configuration for a read pool instance.
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
      * 
* - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ReadPoolConfig} + * optional bool preserve_comments = 2; + * + * @return Whether the preserveComments field is set. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ReadPoolConfig) - com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.class, - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder.class); - } + @java.lang.Override + public boolean hasPreserveComments() { + return ((bitField0_ & 0x00000002) != 0); + } - // Construct using com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.newBuilder() - private Builder() {} + /** + * + * + *
+     * Preserve comments in query string for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool preserve_comments = 2; + * + * @return The preserveComments. + */ + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + public static final int TRACK_WAIT_EVENTS_FIELD_NUMBER = 3; + private boolean trackWaitEvents_ = false; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nodeCount_ = 0; - return this; - } + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; - } + /** + * + * + *
+     * Track wait events during query execution for an instance.
+     * This flag is turned "on" by default but tracking is enabled only after
+     * observability enabled flag is also turned on.
+     * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance(); - } + public static final int TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER = 4; + private boolean trackWaitEventTypes_ = false; - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig build() { - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the trackWaitEventTypes field is set. + */ + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); + } - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig buildPartial() { - com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result = - new com.google.cloud.alloydb.v1.Instance.ReadPoolConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
+     * Output only. Track wait event types during query execution for an
+     * instance. This flag is turned "on" by default but tracking is enabled
+     * only after observability enabled flag is also turned on. This is
+     * read-only flag and only modifiable by internal API.
+     * 
+ * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The trackWaitEventTypes. + */ + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; + } - private void buildPartial0(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nodeCount_ = nodeCount_; - } - } + public static final int MAX_QUERY_STRING_LENGTH_FIELD_NUMBER = 5; + private int maxQueryStringLength_ = 0; - @java.lang.Override - public Builder clone() { - return super.clone(); - } + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + /** + * + * + *
+     * Query string length. The default value is 10k.
+     * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + public static final int RECORD_APPLICATION_TAGS_FIELD_NUMBER = 6; + private boolean recordApplicationTags_ = false; - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + /** + * + * + *
+     * Record application tags for an instance.
+     * This flag is turned "off" by default.
+     * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + public static final int QUERY_PLANS_PER_MINUTE_FIELD_NUMBER = 7; + private int queryPlansPerMinute_ = 0; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1.Instance.ReadPoolConfig) { - return mergeFrom((com.google.cloud.alloydb.v1.Instance.ReadPoolConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } - public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig other) { - if (other == com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) - return this; - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
+     * Number of query execution plans captured by Insights per minute
+     * for all queries combined. The default value is 200.
+     * Any integer between 0 to 200 is considered valid.
+     * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - nodeCount_ = input.readInt32(); - 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 nodeCount_; - - /** - * - * - *
-       * Read capacity, i.e. number of nodes in a read pool instance.
-       * 
- * - * int32 node_count = 1; - * - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - - /** - * - * - *
-       * Read capacity, i.e. number of nodes in a read pool instance.
-       * 
- * - * int32 node_count = 1; - * - * @param value The nodeCount to set. - * @return This builder for chaining. - */ - public Builder setNodeCount(int value) { - - nodeCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Read capacity, i.e. number of nodes in a read pool instance.
-       * 
- * - * int32 node_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearNodeCount() { - bitField0_ = (bitField0_ & ~0x00000001); - nodeCount_ = 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.alloydb.v1.Instance.ReadPoolConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ReadPoolConfig) - private static final com.google.cloud.alloydb.v1.Instance.ReadPoolConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ReadPoolConfig(); - } - - public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadPoolConfig 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.alloydb.v1.Instance.ReadPoolConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ClientConnectionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. Configuration to enforce connectors only (ex: AuthProxy)
-     * connections to the database.
-     * 
- * - * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requireConnectors. - */ - boolean getRequireConnectors(); + public static final int TRACK_ACTIVE_QUERIES_FIELD_NUMBER = 8; + private boolean trackActiveQueries_ = false; /** * * *
-     * Optional. SSL configuration option for this instance.
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
      * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool track_active_queries = 8; * - * @return Whether the sslConfig field is set. + * @return Whether the trackActiveQueries field is set. */ - boolean hasSslConfig(); + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } /** * * *
-     * Optional. SSL configuration option for this instance.
+     * Track actively running queries on the instance.
+     * If not set, this flag is "off" by default.
      * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sslConfig. - */ - com.google.cloud.alloydb.v1.SslConfig getSslConfig(); - - /** - * - * - *
-     * Optional. SSL configuration option for this instance.
-     * 
+ * optional bool track_active_queries = 8; * - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The trackActiveQueries. */ - com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder(); - } - - /** - * - * - *
-   * Client connection configuration
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ClientConnectionConfig} - */ - public static final class ClientConnectionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) - ClientConnectionConfigOrBuilder { - private static final long serialVersionUID = 0L; - - // Use ClientConnectionConfig.newBuilder() to construct. - private ClientConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; } - private ClientConnectionConfig() {} + private byte memoizedIsInitialized = -1; @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClientConnectionConfig(); + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.class, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder.class); - } - - private int bitField0_; - public static final int REQUIRE_CONNECTORS_FIELD_NUMBER = 1; - private boolean requireConnectors_ = false; - - /** - * - * - *
-     * Optional. Configuration to enforce connectors only (ex: AuthProxy)
-     * connections to the database.
-     * 
- * - * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requireConnectors. - */ - @java.lang.Override - public boolean getRequireConnectors() { - return requireConnectors_; - } - - public static final int SSL_CONFIG_FIELD_NUMBER = 2; - private com.google.cloud.alloydb.v1.SslConfig sslConfig_; - - /** - * - * - *
-     * Optional. SSL configuration option for this instance.
-     * 
- * - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the sslConfig field is set. - */ - @java.lang.Override - public boolean hasSslConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Optional. SSL configuration option for this instance.
-     * 
- * - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The sslConfig. - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } - - /** - * - * - *
-     * Optional. SSL configuration option for this instance.
-     * 
- * - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } - - 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 (requireConnectors_ != false) { - output.writeBool(1, requireConnectors_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getSslConfig()); - } - getUnknownFields().writeTo(output); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(8, trackActiveQueries_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4476,11 +4591,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (requireConnectors_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, requireConnectors_); - } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSslConfig()); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, preserveComments_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, trackWaitEvents_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, trackWaitEventTypes_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxQueryStringLength_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, recordApplicationTags_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, queryPlansPerMinute_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, trackActiveQueries_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4492,16 +4625,43 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig)) { + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig)) { return super.equals(obj); } - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig other = - (com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig) obj; + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other = + (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) obj; - if (getRequireConnectors() != other.getRequireConnectors()) return false; - if (hasSslConfig() != other.hasSslConfig()) return false; - if (hasSslConfig()) { - if (!getSslConfig().equals(other.getSslConfig())) return false; + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (hasPreserveComments() != other.hasPreserveComments()) return false; + if (hasPreserveComments()) { + if (getPreserveComments() != other.getPreserveComments()) return false; + } + if (hasTrackWaitEvents() != other.hasTrackWaitEvents()) return false; + if (hasTrackWaitEvents()) { + if (getTrackWaitEvents() != other.getTrackWaitEvents()) return false; + } + if (hasTrackWaitEventTypes() != other.hasTrackWaitEventTypes()) return false; + if (hasTrackWaitEventTypes()) { + if (getTrackWaitEventTypes() != other.getTrackWaitEventTypes()) return false; + } + if (hasMaxQueryStringLength() != other.hasMaxQueryStringLength()) return false; + if (hasMaxQueryStringLength()) { + if (getMaxQueryStringLength() != other.getMaxQueryStringLength()) return false; + } + if (hasRecordApplicationTags() != other.hasRecordApplicationTags()) return false; + if (hasRecordApplicationTags()) { + if (getRecordApplicationTags() != other.getRecordApplicationTags()) return false; + } + if (hasQueryPlansPerMinute() != other.hasQueryPlansPerMinute()) return false; + if (hasQueryPlansPerMinute()) { + if (getQueryPlansPerMinute() != other.getQueryPlansPerMinute()) return false; + } + if (hasTrackActiveQueries() != other.hasTrackActiveQueries()) return false; + if (hasTrackActiveQueries()) { + if (getTrackActiveQueries() != other.getTrackActiveQueries()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4514,82 +4674,109 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REQUIRE_CONNECTORS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireConnectors()); - if (hasSslConfig()) { - hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSslConfig().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + if (hasPreserveComments()) { + hash = (37 * hash) + PRESERVE_COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreserveComments()); + } + if (hasTrackWaitEvents()) { + hash = (37 * hash) + TRACK_WAIT_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEvents()); + } + if (hasTrackWaitEventTypes()) { + hash = (37 * hash) + TRACK_WAIT_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackWaitEventTypes()); + } + if (hasMaxQueryStringLength()) { + hash = (37 * hash) + MAX_QUERY_STRING_LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueryStringLength(); + } + if (hasRecordApplicationTags()) { + hash = (37 * hash) + RECORD_APPLICATION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecordApplicationTags()); + } + if (hasQueryPlansPerMinute()) { + hash = (37 * hash) + QUERY_PLANS_PER_MINUTE_FIELD_NUMBER; + hash = (53 * hash) + getQueryPlansPerMinute(); + } + if (hasTrackActiveQueries()) { + hash = (37 * hash) + TRACK_ACTIVE_QUERIES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTrackActiveQueries()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig 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.alloydb.v1.Instance.ClientConnectionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + parseDelimitedFrom( + java.io.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.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4607,7 +4794,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig prototype) { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -4627,75 +4814,70 @@ protected Builder newBuilderForType( * * *
-     * Client connection configuration
+     * Observability Instance specific configuration.
      * 
* - * Protobuf type {@code google.cloud.alloydb.v1.Instance.ClientConnectionConfig} + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.class, - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder.class); } - // Construct using com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using + // com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSslConfigFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - requireConnectors_ = false; - sslConfig_ = null; - if (sslConfigBuilder_ != null) { - sslConfigBuilder_.dispose(); - sslConfigBuilder_ = null; - } + enabled_ = false; + preserveComments_ = false; + trackWaitEvents_ = false; + trackWaitEventTypes_ = false; + maxQueryStringLength_ = 0; + recordApplicationTags_ = false; + queryPlansPerMinute_ = 0; + trackActiveQueries_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance(); + return com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig build() { - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result = buildPartial(); + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig build() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4703,9 +4885,9 @@ public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig build() { } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig buildPartial() { - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result = - new com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig(this); + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result = + new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -4714,15 +4896,40 @@ public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig buildPartial( } private void buildPartial0( - com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result) { + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.requireConnectors_ = requireConnectors_; + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; + result.preserveComments_ = preserveComments_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trackWaitEvents_ = trackWaitEvents_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trackWaitEventTypes_ = trackWaitEventTypes_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxQueryStringLength_ = maxQueryStringLength_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.recordApplicationTags_ = recordApplicationTags_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryPlansPerMinute_ = queryPlansPerMinute_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.trackActiveQueries_ = trackActiveQueries_; + to_bitField0_ |= 0x00000080; } result.bitField0_ |= to_bitField0_; } @@ -4764,28 +4971,48 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig) { - return mergeFrom((com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig) other); + if (other instanceof com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig other) { + public Builder mergeFrom( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig other) { if (other - == com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance()) - return this; - if (other.getRequireConnectors() != false) { - setRequireConnectors(other.getRequireConnectors()); + == com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + .getDefaultInstance()) return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); } - if (other.hasSslConfig()) { - mergeSslConfig(other.getSslConfig()); + if (other.hasPreserveComments()) { + setPreserveComments(other.getPreserveComments()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + if (other.hasTrackWaitEvents()) { + setTrackWaitEvents(other.getTrackWaitEvents()); + } + if (other.hasTrackWaitEventTypes()) { + setTrackWaitEventTypes(other.getTrackWaitEventTypes()); + } + if (other.hasMaxQueryStringLength()) { + setMaxQueryStringLength(other.getMaxQueryStringLength()); + } + if (other.hasRecordApplicationTags()) { + setRecordApplicationTags(other.getRecordApplicationTags()); + } + if (other.hasQueryPlansPerMinute()) { + setQueryPlansPerMinute(other.getQueryPlansPerMinute()); + } + if (other.hasTrackActiveQueries()) { + setTrackActiveQueries(other.getTrackActiveQueries()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } @java.lang.Override public final boolean isInitialized() { @@ -4810,16 +5037,52 @@ public Builder mergeFrom( break; case 8: { - requireConnectors_ = input.readBool(); + enabled_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 - case 18: + case 16: { - input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); + preserveComments_ = input.readBool(); bitField0_ |= 0x00000002; break; - } // case 18 + } // case 16 + case 24: + { + trackWaitEvents_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + trackWaitEventTypes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + maxQueryStringLength_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + recordApplicationTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + queryPlansPerMinute_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + trackActiveQueries_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4839,41 +5102,58 @@ public Builder mergeFrom( private int bitField0_; - private boolean requireConnectors_; + private boolean enabled_; /** * * *
-       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
-       * connections to the database.
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
        * 
* - * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool enabled = 1; * - * @return The requireConnectors. + * @return Whether the enabled field is set. */ @java.lang.Override - public boolean getRequireConnectors() { - return requireConnectors_; + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
-       * connections to the database.
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
        * 
* - * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool enabled = 1; * - * @param value The requireConnectors to set. + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool enabled = 1; + * + * @param value The enabled to set. * @return This builder for chaining. */ - public Builder setRequireConnectors(boolean value) { + public Builder setEnabled(boolean value) { - requireConnectors_ = value; + enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -4883,42 +5163,37 @@ public Builder setRequireConnectors(boolean value) { * * *
-       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
-       * connections to the database.
+       * Observability feature status for an instance.
+       * This flag is turned "off" by default.
        * 
* - * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool enabled = 1; * * @return This builder for chaining. */ - public Builder clearRequireConnectors() { + public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000001); - requireConnectors_ = false; + enabled_ = false; onChanged(); return this; } - private com.google.cloud.alloydb.v1.SslConfig sslConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder> - sslConfigBuilder_; + private boolean preserveComments_; /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool preserve_comments = 2; * - * @return Whether the sslConfig field is set. + * @return Whether the preserveComments field is set. */ - public boolean hasSslConfig() { + @java.lang.Override + public boolean hasPreserveComments() { return ((bitField0_ & 0x00000002) != 0); } @@ -4926,45 +5201,35 @@ public boolean hasSslConfig() { * * *
-       * Optional. SSL configuration option for this instance.
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool preserve_comments = 2; * - * @return The sslConfig. + * @return The preserveComments. */ - public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { - if (sslConfigBuilder_ == null) { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } else { - return sslConfigBuilder_.getMessage(); - } + @java.lang.Override + public boolean getPreserveComments() { + return preserveComments_; } /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool preserve_comments = 2; + * + * @param value The preserveComments to set. + * @return This builder for chaining. */ - public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { - if (sslConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sslConfig_ = value; - } else { - sslConfigBuilder_.setMessage(value); - } + public Builder setPreserveComments(boolean value) { + + preserveComments_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -4974,51 +5239,78 @@ public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-       * Optional. SSL configuration option for this instance.
+       * Preserve comments in query string for an instance.
+       * This flag is turned "off" by default.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool preserve_comments = 2; + * + * @return This builder for chaining. */ - public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builderForValue) { - if (sslConfigBuilder_ == null) { - sslConfig_ = builderForValue.build(); - } else { - sslConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; + public Builder clearPreserveComments() { + bitField0_ = (bitField0_ & ~0x00000002); + preserveComments_ = false; onChanged(); return this; } + private boolean trackWaitEvents_; + /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool track_wait_events = 3; + * + * @return Whether the trackWaitEvents field is set. */ - public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { - if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && sslConfig_ != null - && sslConfig_ != com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance()) { - getSslConfigBuilder().mergeFrom(value); - } else { - sslConfig_ = value; - } - } else { - sslConfigBuilder_.mergeFrom(value); - } - if (sslConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } + @java.lang.Override + public boolean hasTrackWaitEvents() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @return The trackWaitEvents. + */ + @java.lang.Override + public boolean getTrackWaitEvents() { + return trackWaitEvents_; + } + + /** + * + * + *
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
+       * 
+ * + * optional bool track_wait_events = 3; + * + * @param value The trackWaitEvents to set. + * @return This builder for chaining. + */ + public Builder setTrackWaitEvents(boolean value) { + + trackWaitEvents_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -5026,121 +5318,450 @@ public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { * * *
-       * Optional. SSL configuration option for this instance.
+       * Track wait events during query execution for an instance.
+       * This flag is turned "on" by default but tracking is enabled only after
+       * observability enabled flag is also turned on.
        * 
* - * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * optional bool track_wait_events = 3; + * + * @return This builder for chaining. */ - public Builder clearSslConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - sslConfig_ = null; - if (sslConfigBuilder_ != null) { - sslConfigBuilder_.dispose(); - sslConfigBuilder_ = null; - } + public Builder clearTrackWaitEvents() { + bitField0_ = (bitField0_ & ~0x00000004); + trackWaitEvents_ = false; onChanged(); return this; } + private boolean trackWaitEventTypes_; + /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
        * 
* * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the trackWaitEventTypes field is set. */ - public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSslConfigFieldBuilder().getBuilder(); + @java.lang.Override + public boolean hasTrackWaitEventTypes() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
        * 
* * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The trackWaitEventTypes. */ - public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { - if (sslConfigBuilder_ != null) { - return sslConfigBuilder_.getMessageOrBuilder(); - } else { - return sslConfig_ == null - ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() - : sslConfig_; - } + @java.lang.Override + public boolean getTrackWaitEventTypes() { + return trackWaitEventTypes_; } /** * * *
-       * Optional. SSL configuration option for this instance.
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
        * 
* * - * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The trackWaitEventTypes to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder> - getSslConfigFieldBuilder() { - if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.alloydb.v1.SslConfig, - com.google.cloud.alloydb.v1.SslConfig.Builder, - com.google.cloud.alloydb.v1.SslConfigOrBuilder>( - getSslConfig(), getParentForChildren(), isClean()); - sslConfig_ = null; - } - return sslConfigBuilder_; + public Builder setTrackWaitEventTypes(boolean value) { + + trackWaitEventTypes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + * + * + *
+       * Output only. Track wait event types during query execution for an
+       * instance. This flag is turned "on" by default but tracking is enabled
+       * only after observability enabled flag is also turned on. This is
+       * read-only flag and only modifiable by internal API.
+       * 
+ * + * + * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTrackWaitEventTypes() { + bitField0_ = (bitField0_ & ~0x00000008); + trackWaitEventTypes_ = false; + onChanged(); + return this; } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + private int maxQueryStringLength_; + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return Whether the maxQueryStringLength field is set. + */ + @java.lang.Override + public boolean hasMaxQueryStringLength() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return The maxQueryStringLength. + */ + @java.lang.Override + public int getMaxQueryStringLength() { + return maxQueryStringLength_; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @param value The maxQueryStringLength to set. + * @return This builder for chaining. + */ + public Builder setMaxQueryStringLength(int value) { + + maxQueryStringLength_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Query string length. The default value is 10k.
+       * 
+ * + * optional int32 max_query_string_length = 5; + * + * @return This builder for chaining. + */ + public Builder clearMaxQueryStringLength() { + bitField0_ = (bitField0_ & ~0x00000010); + maxQueryStringLength_ = 0; + onChanged(); + return this; + } + + private boolean recordApplicationTags_; + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return Whether the recordApplicationTags field is set. + */ + @java.lang.Override + public boolean hasRecordApplicationTags() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return The recordApplicationTags. + */ + @java.lang.Override + public boolean getRecordApplicationTags() { + return recordApplicationTags_; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @param value The recordApplicationTags to set. + * @return This builder for chaining. + */ + public Builder setRecordApplicationTags(boolean value) { + + recordApplicationTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Record application tags for an instance.
+       * This flag is turned "off" by default.
+       * 
+ * + * optional bool record_application_tags = 6; + * + * @return This builder for chaining. + */ + public Builder clearRecordApplicationTags() { + bitField0_ = (bitField0_ & ~0x00000020); + recordApplicationTags_ = false; + onChanged(); + return this; + } + + private int queryPlansPerMinute_; + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return Whether the queryPlansPerMinute field is set. + */ + @java.lang.Override + public boolean hasQueryPlansPerMinute() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return The queryPlansPerMinute. + */ + @java.lang.Override + public int getQueryPlansPerMinute() { + return queryPlansPerMinute_; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @param value The queryPlansPerMinute to set. + * @return This builder for chaining. + */ + public Builder setQueryPlansPerMinute(int value) { + + queryPlansPerMinute_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Number of query execution plans captured by Insights per minute
+       * for all queries combined. The default value is 200.
+       * Any integer between 0 to 200 is considered valid.
+       * 
+ * + * optional int32 query_plans_per_minute = 7; + * + * @return This builder for chaining. + */ + public Builder clearQueryPlansPerMinute() { + bitField0_ = (bitField0_ & ~0x00000040); + queryPlansPerMinute_ = 0; + onChanged(); + return this; + } + + private boolean trackActiveQueries_; + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return Whether the trackActiveQueries field is set. + */ + @java.lang.Override + public boolean hasTrackActiveQueries() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return The trackActiveQueries. + */ + @java.lang.Override + public boolean getTrackActiveQueries() { + return trackActiveQueries_; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @param value The trackActiveQueries to set. + * @return This builder for chaining. + */ + public Builder setTrackActiveQueries(boolean value) { + + trackActiveQueries_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Track actively running queries on the instance.
+       * If not set, this flag is "off" by default.
+       * 
+ * + * optional bool track_active_queries = 8; + * + * @return This builder for chaining. + */ + public Builder clearTrackActiveQueries() { + bitField0_ = (bitField0_ & ~0x00000080); + trackActiveQueries_ = 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.alloydb.v1.Instance.ClientConnectionConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) - private static final com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig) + private static final com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig(); } - public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getDefaultInstance() { + public static com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ClientConnectionConfig parsePartialFrom( + public ObservabilityInstanceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5160,445 +5781,135 @@ public ClientConnectionConfig parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getDefaultInstanceForType() { + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PscInstanceConfigOrBuilder + public interface ReadPoolConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ReadPoolConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The serviceAttachmentLink. - */ - java.lang.String getServiceAttachmentLink(); - - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for serviceAttachmentLink. - */ - com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedConsumerProjects. - */ - java.util.List getAllowedConsumerProjectsList(); - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedConsumerProjects. - */ - int getAllowedConsumerProjectsCount(); - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. - */ - java.lang.String getAllowedConsumerProjects(int index); - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. - */ - com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); - - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. - */ - java.lang.String getPscDnsName(); - - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * Read capacity, i.e. number of nodes in a read pool instance.
      * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 node_count = 1; * - * @return The bytes for pscDnsName. + * @return The nodeCount. */ - com.google.protobuf.ByteString getPscDnsNameBytes(); + int getNodeCount(); } /** * * *
-   * PscInstanceConfig contains PSC related configuration at an
-   * instance level.
+   * Configuration for a read pool instance.
    * 
* - * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ReadPoolConfig} */ - public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class ReadPoolConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) - PscInstanceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ReadPoolConfig) + ReadPoolConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use PscInstanceConfig.newBuilder() to construct. - private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ReadPoolConfig.newBuilder() to construct. + private ReadPoolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PscInstanceConfig() { - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; - } + private ReadPoolConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PscInstanceConfig(); + return new ReadPoolConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.class, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder.class); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; + public static final int NODE_COUNT_FIELD_NUMBER = 1; + private int nodeCount_ = 0; /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * Read capacity, i.e. number of nodes in a read pool instance.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 node_count = 1; * - * @return The serviceAttachmentLink. + * @return The nodeCount. */ @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; - return s; - } + public int getNodeCount() { + return nodeCount_; } - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for serviceAttachmentLink. - */ + private byte memoizedIsInitialized = -1; + @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeCount_ != 0) { + output.writeInt32(1, nodeCount_); + } + getUnknownFields().writeTo(output); + } - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedConsumerProjects. - */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - return allowedConsumerProjects_; - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedConsumerProjects. - */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. - */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. - */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); - } - - public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private volatile java.lang.Object pscDnsName_ = ""; - - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. - */ - @java.lang.Override - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; - return s; - } - } - - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = 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(serviceAttachmentLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); - } - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, allowedConsumerProjects_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); - } - 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(serviceAttachmentLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); - } - { - int dataSize = 0; - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); - } - size += dataSize; - size += 1 * getAllowedConsumerProjectsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + size = 0; + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, nodeCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override @@ -5606,16 +5917,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.PscInstanceConfig)) { + if (!(obj instanceof com.google.cloud.alloydb.v1.Instance.ReadPoolConfig)) { return super.equals(obj); } - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other = - (com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) obj; + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig other = + (com.google.cloud.alloydb.v1.Instance.ReadPoolConfig) obj; - if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; - if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) - return false; - if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (getNodeCount() != other.getNodeCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5627,84 +5935,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; - hash = (53 * hash) + getServiceAttachmentLink().hashCode(); - if (getAllowedConsumerProjectsCount() > 0) { - hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); - } - hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPscDnsName().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig 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.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom(byte[] data) + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig 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.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseDelimitedFrom( java.io.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.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5722,7 +6024,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig prototype) { + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5742,33 +6044,32 @@ protected Builder newBuilderForType( * * *
-     * PscInstanceConfig contains PSC related configuration at an
-     * instance level.
+     * Configuration for a read pool instance.
      * 
* - * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ReadPoolConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) - com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ReadPoolConfig) + com.google.cloud.alloydb.v1.Instance.ReadPoolConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.class, + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder.class); } - // Construct using com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.newBuilder() + // Construct using com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -5779,430 +6080,5888 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; + nodeCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig build() { + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result = + new com.google.cloud.alloydb.v1.Instance.ReadPoolConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeCount_ = nodeCount_; + } + } + + @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.alloydb.v1.Instance.ReadPoolConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.ReadPoolConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig other) { + if (other == com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) + return this; + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + nodeCount_ = input.readInt32(); + 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 nodeCount_; + + /** + * + * + *
+       * Read capacity, i.e. number of nodes in a read pool instance.
+       * 
+ * + * int32 node_count = 1; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + /** + * + * + *
+       * Read capacity, i.e. number of nodes in a read pool instance.
+       * 
+ * + * int32 node_count = 1; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Read capacity, i.e. number of nodes in a read pool instance.
+       * 
+ * + * int32 node_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + nodeCount_ = 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.alloydb.v1.Instance.ReadPoolConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ReadPoolConfig) + private static final com.google.cloud.alloydb.v1.Instance.ReadPoolConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ReadPoolConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.ReadPoolConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadPoolConfig 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.alloydb.v1.Instance.ReadPoolConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ClientConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Configuration to enforce connectors only (ex: AuthProxy)
+     * connections to the database.
+     * 
+ * + * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireConnectors. + */ + boolean getRequireConnectors(); + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + boolean hasSslConfig(); + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + com.google.cloud.alloydb.v1.SslConfig getSslConfig(); + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder(); + } + + /** + * + * + *
+   * Client connection configuration
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ClientConnectionConfig} + */ + public static final class ClientConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) + ClientConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ClientConnectionConfig.newBuilder() to construct. + private ClientConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClientConnectionConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClientConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.class, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder.class); + } + + private int bitField0_; + public static final int REQUIRE_CONNECTORS_FIELD_NUMBER = 1; + private boolean requireConnectors_ = false; + + /** + * + * + *
+     * Optional. Configuration to enforce connectors only (ex: AuthProxy)
+     * connections to the database.
+     * 
+ * + * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireConnectors. + */ + @java.lang.Override + public boolean getRequireConnectors() { + return requireConnectors_; + } + + public static final int SSL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.alloydb.v1.SslConfig sslConfig_; + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + @java.lang.Override + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } + + /** + * + * + *
+     * Optional. SSL configuration option for this instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } + + 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 (requireConnectors_ != false) { + output.writeBool(1, requireConnectors_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSslConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (requireConnectors_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, requireConnectors_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSslConfig()); + } + 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.alloydb.v1.Instance.ClientConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig other = + (com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig) obj; + + if (getRequireConnectors() != other.getRequireConnectors()) return false; + if (hasSslConfig() != other.hasSslConfig()) return false; + if (hasSslConfig()) { + if (!getSslConfig().equals(other.getSslConfig())) 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) + REQUIRE_CONNECTORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequireConnectors()); + if (hasSslConfig()) { + hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSslConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig 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.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig 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.alloydb.v1.Instance.ClientConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig parseDelimitedFrom( + java.io.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.alloydb.v1.Instance.ClientConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig 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.alloydb.v1.Instance.ClientConnectionConfig 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; + } + + /** + * + * + *
+     * Client connection configuration
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.ClientConnectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.class, + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSslConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requireConnectors_ = false; + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig build() { + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result = + new com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requireConnectors_ = requireConnectors_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.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.alloydb.v1.Instance.ClientConnectionConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig other) { + if (other + == com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.getDefaultInstance()) + return this; + if (other.getRequireConnectors() != false) { + setRequireConnectors(other.getRequireConnectors()); + } + if (other.hasSslConfig()) { + mergeSslConfig(other.getSslConfig()); + } + 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: + { + requireConnectors_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getSslConfigFieldBuilder().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 boolean requireConnectors_; + + /** + * + * + *
+       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
+       * connections to the database.
+       * 
+ * + * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requireConnectors. + */ + @java.lang.Override + public boolean getRequireConnectors() { + return requireConnectors_; + } + + /** + * + * + *
+       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
+       * connections to the database.
+       * 
+ * + * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requireConnectors to set. + * @return This builder for chaining. + */ + public Builder setRequireConnectors(boolean value) { + + requireConnectors_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration to enforce connectors only (ex: AuthProxy)
+       * connections to the database.
+       * 
+ * + * bool require_connectors = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequireConnectors() { + bitField0_ = (bitField0_ & ~0x00000001); + requireConnectors_ = false; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1.SslConfig sslConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder> + sslConfigBuilder_; + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + public com.google.cloud.alloydb.v1.SslConfig getSslConfig() { + if (sslConfigBuilder_ == null) { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } else { + return sslConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { + if (sslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sslConfig_ = value; + } else { + sslConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig(com.google.cloud.alloydb.v1.SslConfig.Builder builderForValue) { + if (sslConfigBuilder_ == null) { + sslConfig_ = builderForValue.build(); + } else { + sslConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSslConfig(com.google.cloud.alloydb.v1.SslConfig value) { + if (sslConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sslConfig_ != null + && sslConfig_ != com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance()) { + getSslConfigBuilder().mergeFrom(value); + } else { + sslConfig_ = value; + } + } else { + sslConfigBuilder_.mergeFrom(value); + } + if (sslConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSslConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.SslConfig.Builder getSslConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSslConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.SslConfigOrBuilder getSslConfigOrBuilder() { + if (sslConfigBuilder_ != null) { + return sslConfigBuilder_.getMessageOrBuilder(); + } else { + return sslConfig_ == null + ? com.google.cloud.alloydb.v1.SslConfig.getDefaultInstance() + : sslConfig_; + } + } + + /** + * + * + *
+       * Optional. SSL configuration option for this instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1.SslConfig ssl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder> + getSslConfigFieldBuilder() { + if (sslConfigBuilder_ == null) { + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.SslConfig, + com.google.cloud.alloydb.v1.SslConfig.Builder, + com.google.cloud.alloydb.v1.SslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); + sslConfig_ = null; + } + return sslConfigBuilder_; + } + + @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.alloydb.v1.Instance.ClientConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.ClientConnectionConfig) + private static final com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientConnectionConfig 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.alloydb.v1.Instance.ClientConnectionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInterfaceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.PscInterfaceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
+     * 
+ * + * string network_attachment_resource = 1; + * + * @return The networkAttachmentResource. + */ + java.lang.String getNetworkAttachmentResource(); + + /** + * + * + *
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
+     * 
+ * + * string network_attachment_resource = 1; + * + * @return The bytes for networkAttachmentResource. + */ + com.google.protobuf.ByteString getNetworkAttachmentResourceBytes(); + } + + /** + * + * + *
+   * Configuration for setting up a PSC interface to enable outbound
+   * connectivity.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInterfaceConfig} + */ + public static final class PscInterfaceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.PscInterfaceConfig) + PscInterfaceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscInterfaceConfig.newBuilder() to construct. + private PscInterfaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInterfaceConfig() { + networkAttachmentResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInterfaceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder.class); + } + + public static final int NETWORK_ATTACHMENT_RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachmentResource_ = ""; + + /** + * + * + *
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
+     * 
+ * + * string network_attachment_resource = 1; + * + * @return The networkAttachmentResource. + */ + @java.lang.Override + public java.lang.String getNetworkAttachmentResource() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachmentResource_ = s; + return s; + } + } + + /** + * + * + *
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
+     * 
+ * + * string network_attachment_resource = 1; + * + * @return The bytes for networkAttachmentResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentResourceBytes() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachmentResource_ = 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(networkAttachmentResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkAttachmentResource_); + } + 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(networkAttachmentResource_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkAttachmentResource_); + } + 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.alloydb.v1.Instance.PscInterfaceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig other = + (com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig) obj; + + if (!getNetworkAttachmentResource().equals(other.getNetworkAttachmentResource())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_ATTACHMENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachmentResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig 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.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig 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.alloydb.v1.Instance.PscInterfaceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig parseDelimitedFrom( + java.io.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.alloydb.v1.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig 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.alloydb.v1.Instance.PscInterfaceConfig 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 setting up a PSC interface to enable outbound
+     * connectivity.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInterfaceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.PscInterfaceConfig) + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachmentResource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig build() { + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig result = + new com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachmentResource_ = networkAttachmentResource_; + } + } + + @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.alloydb.v1.Instance.PscInterfaceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig other) { + if (other == com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.getDefaultInstance()) + return this; + if (!other.getNetworkAttachmentResource().isEmpty()) { + networkAttachmentResource_ = other.networkAttachmentResource_; + 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: + { + networkAttachmentResource_ = 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 networkAttachmentResource_ = ""; + + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return The networkAttachmentResource. + */ + public java.lang.String getNetworkAttachmentResource() { + java.lang.Object ref = networkAttachmentResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachmentResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return The bytes for networkAttachmentResource. + */ + public com.google.protobuf.ByteString getNetworkAttachmentResourceBytes() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachmentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @param value The networkAttachmentResource to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachmentResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachmentResource() { + networkAttachmentResource_ = getDefaultInstance().getNetworkAttachmentResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @param value The bytes for networkAttachmentResource to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachmentResource_ = 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.alloydb.v1.Instance.PscInterfaceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.PscInterfaceConfig) + private static final com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInterfaceConfig 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.alloydb.v1.Instance.PscInterfaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscAutoConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The consumerProject. + */ + java.lang.String getConsumerProject(); + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + com.google.protobuf.ByteString getConsumerProjectBytes(); + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + java.lang.String getConsumerNetwork(); + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + com.google.protobuf.ByteString getConsumerNetworkBytes(); + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The consumerNetworkStatus. + */ + java.lang.String getConsumerNetworkStatus(); + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for consumerNetworkStatus. + */ + com.google.protobuf.ByteString getConsumerNetworkStatusBytes(); + } + + /** + * + * + *
+   * Configuration for setting up PSC service automation. Consumer projects in
+   * the configs will be allowlisted automatically for the instance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig} + */ + public static final class PscAutoConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) + PscAutoConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscAutoConnectionConfig.newBuilder() to construct. + private PscAutoConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutoConnectionConfig() { + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutoConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder.class); + } + + public static final int CONSUMER_PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerProject_ = ""; + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The consumerProject. + */ + @java.lang.Override + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerProject_ = s; + return s; + } + } + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerNetwork_ = ""; + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + @java.lang.Override + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } + } + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_NETWORK_STATUS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerNetworkStatus_ = ""; + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The consumerNetworkStatus. + */ + @java.lang.Override + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetworkStatus_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for consumerNetworkStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = 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(consumerProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, consumerProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, consumerNetworkStatus_); + } + 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(consumerProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, consumerProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consumerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, consumerNetworkStatus_); + } + 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.alloydb.v1.Instance.PscAutoConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig other = + (com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) obj; + + if (!getConsumerProject().equals(other.getConsumerProject())) return false; + if (!getConsumerNetwork().equals(other.getConsumerNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getConsumerNetworkStatus().equals(other.getConsumerNetworkStatus())) 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) + CONSUMER_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getConsumerProject().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetwork().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetworkStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig 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.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig 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.alloydb.v1.Instance.PscAutoConnectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig parseDelimitedFrom( + java.io.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.alloydb.v1.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig 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.alloydb.v1.Instance.PscAutoConnectionConfig 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 setting up PSC service automation. Consumer projects in
+     * the configs will be allowlisted automatically for the instance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig build() { + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig result = + new com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumerProject_ = consumerProject_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.consumerNetwork_ = consumerNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.consumerNetworkStatus_ = consumerNetworkStatus_; + } + } + + @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.alloydb.v1.Instance.PscAutoConnectionConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig other) { + if (other + == com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.getDefaultInstance()) + return this; + if (!other.getConsumerProject().isEmpty()) { + consumerProject_ = other.consumerProject_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConsumerNetwork().isEmpty()) { + consumerNetwork_ = other.consumerNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getConsumerNetworkStatus().isEmpty()) { + consumerNetworkStatus_ = other.consumerNetworkStatus_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + consumerProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + consumerNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + consumerNetworkStatus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object consumerProject_ = ""; + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return The consumerProject. + */ + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @param value The consumerProject to set. + * @return This builder for chaining. + */ + public Builder setConsumerProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerProject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumerProject() { + consumerProject_ = getDefaultInstance().getConsumerProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @param value The bytes for consumerProject to set. + * @return This builder for chaining. + */ + public Builder setConsumerProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerProject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object consumerNetwork_ = ""; + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetwork() { + consumerNetwork_ = getDefaultInstance().getConsumerNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The bytes for consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object consumerNetworkStatus_ = ""; + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consumerNetworkStatus. + */ + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetworkStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for consumerNetworkStatus. + */ + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetworkStatus() { + consumerNetworkStatus_ = getDefaultInstance().getConsumerNetworkStatus(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig) + private static final com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig(); + } + + public static com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutoConnectionConfig 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.alloydb.v1.Instance.PscAutoConnectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + java.lang.String getServiceAttachmentLink(); + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + java.util.List getAllowedConsumerProjectsList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + int getAllowedConsumerProjectsCount(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + java.lang.String getAllowedConsumerProjects(int index); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + java.lang.String getPscDnsName(); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig getPscInterfaceConfigs(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscInterfaceConfigsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscAutoConnectionsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig getPscAutoConnections(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscAutoConnectionsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscAutoConnectionsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index); + } + + /** + * + * + *
+   * PscInstanceConfig contains PSC related configuration at an
+   * instance level.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} + */ + public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + PscInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscInstanceConfig.newBuilder() to construct. + private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInstanceConfig() { + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + pscAutoConnections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + return allowedConsumerProjects_; + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscDnsName_ = ""; + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + @java.lang.Override + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + pscInterfaceConfigs_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscInterfaceConfigsList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscInterfaceConfigsCount() { + return pscInterfaceConfigs_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + return pscInterfaceConfigs_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + return pscInterfaceConfigs_.get(index); + } + + public static final int PSC_AUTO_CONNECTIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + pscAutoConnections_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscAutoConnectionsList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscAutoConnectionsCount() { + return pscAutoConnections_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index) { + return pscAutoConnections_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + return pscAutoConnections_.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(serviceAttachmentLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + } + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedConsumerProjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + output.writeMessage(8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + output.writeMessage(9, pscAutoConnections_.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(serviceAttachmentLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerProjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.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.alloydb.v1.Instance.PscInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other = + (com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) obj; + + if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; + if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) + return false; + if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; + if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) 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) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentLink().hashCode(); + if (getAllowedConsumerProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + } + hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscDnsName().hashCode(); + if (getPscInterfaceConfigsCount() > 0) { + hash = (37 * hash) + PSC_INTERFACE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfigsList().hashCode(); + } + if (getPscAutoConnectionsCount() > 0) { + hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig 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.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig 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.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.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.alloydb.v1.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.Instance.PscInstanceConfig 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.alloydb.v1.Instance.PscInstanceConfig 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; + } + + /** + * + * + *
+     * PscInstanceConfig contains PSC related configuration at an
+     * instance level.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.Instance.PscInstanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.Instance.PscInstanceConfig) + com.google.cloud.alloydb.v1.Instance.PscInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + } else { + pscInterfaceConfigs_ = null; + pscInterfaceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + } else { + pscAutoConnections_ = null; + pscAutoConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ResourcesProto + .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig build() { + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = + new com.google.cloud.alloydb.v1.Instance.PscInstanceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result) { + if (pscInterfaceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pscInterfaceConfigs_ = pscInterfaceConfigs_; + } else { + result.pscInterfaceConfigs_ = pscInterfaceConfigsBuilder_.build(); + } + if (pscAutoConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = java.util.Collections.unmodifiableList(pscAutoConnections_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.pscAutoConnections_ = pscAutoConnections_; + } else { + result.pscAutoConnections_ = pscAutoConnectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachmentLink_ = serviceAttachmentLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedConsumerProjects_.makeImmutable(); + result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pscDnsName_ = pscDnsName_; + } + } + + @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.alloydb.v1.Instance.PscInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other) { + if (other == com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) + return this; + if (!other.getServiceAttachmentLink().isEmpty()) { + serviceAttachmentLink_ = other.serviceAttachmentLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedConsumerProjects_.isEmpty()) { + if (allowedConsumerProjects_.isEmpty()) { + allowedConsumerProjects_ = other.allowedConsumerProjects_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + } + onChanged(); + } + if (!other.getPscDnsName().isEmpty()) { + pscDnsName_ = other.pscDnsName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (pscInterfaceConfigsBuilder_ == null) { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigs_.isEmpty()) { + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.addAll(other.pscInterfaceConfigs_); + } + onChanged(); + } + } else { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigsBuilder_.isEmpty()) { + pscInterfaceConfigsBuilder_.dispose(); + pscInterfaceConfigsBuilder_ = null; + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + pscInterfaceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscInterfaceConfigsFieldBuilder() + : null; + } else { + pscInterfaceConfigsBuilder_.addAllMessages(other.pscInterfaceConfigs_); + } + } + } + if (pscAutoConnectionsBuilder_ == null) { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnections_.isEmpty()) { + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.addAll(other.pscAutoConnections_); + } + onChanged(); + } + } else { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnectionsBuilder_.isEmpty()) { + pscAutoConnectionsBuilder_.dispose(); + pscAutoConnectionsBuilder_ = null; + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + pscAutoConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscAutoConnectionsFieldBuilder() + : null; + } else { + pscAutoConnectionsBuilder_.addAllMessages(other.pscAutoConnections_); + } + } + } + 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: + { + serviceAttachmentLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(s); + break; + } // case 18 + case 58: + { + pscDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + case 66: + { + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig m = + input.readMessage( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.parser(), + extensionRegistry); + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(m); + } else { + pscInterfaceConfigsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig m = + input.readMessage( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.parser(), + extensionRegistry); + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(m); + } else { + pscAutoConnectionsBuilder_.addMessage(m); + } + break; + } // case 74 + 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 serviceAttachmentLink_ = ""; + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceAttachmentLink. + */ + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceAttachmentLink. + */ + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentLink() { + serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerProjectsIsMutable() { + if (!allowedConsumerProjects_.isModifiable()) { + allowedConsumerProjects_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + allowedConsumerProjects_.makeImmutable(); + return allowedConsumerProjects_; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedConsumerProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { + ensureAllowedConsumerProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerProjects() { + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object pscDnsName_ = ""; + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscDnsName() { + pscDnsName_ = getDefaultInstance().getPscDnsName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.alloydb.v1.ResourcesProto - .internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance(); - } + private java.util.List + pscInterfaceConfigs_ = java.util.Collections.emptyList(); - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig build() { - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private void ensurePscInterfaceConfigsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = + new java.util.ArrayList( + pscInterfaceConfigs_); + bitField0_ |= 0x00000008; } - return result; } - @java.lang.Override - public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result = - new com.google.cloud.alloydb.v1.Instance.PscInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder> + pscInterfaceConfigsBuilder_; - private void buildPartial0(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.serviceAttachmentLink_ = serviceAttachmentLink_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - allowedConsumerProjects_.makeImmutable(); - result.allowedConsumerProjects_ = allowedConsumerProjects_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pscDnsName_ = pscDnsName_; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscInterfaceConfigsList() { + if (pscInterfaceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } else { + return pscInterfaceConfigsBuilder_.getMessageList(); } } - @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); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPscInterfaceConfigsCount() { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.size(); + } else { + return pscInterfaceConfigsBuilder_.getCount(); + } } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessage(index); + } } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, value); + } + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( int index, - java.lang.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.alloydb.v1.Instance.PscInstanceConfig) { - return mergeFrom((com.google.cloud.alloydb.v1.Instance.PscInstanceConfig) other); + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, builderForValue.build()); + onChanged(); } else { - super.mergeFrom(other); - return this; + pscInterfaceConfigsBuilder_.setMessage(index, builderForValue.build()); } + return this; } - public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance.PscInstanceConfig other) { - if (other == com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) - return this; - if (!other.getServiceAttachmentLink().isEmpty()) { - serviceAttachmentLink_ = other.serviceAttachmentLink_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.allowedConsumerProjects_.isEmpty()) { - if (allowedConsumerProjects_.isEmpty()) { - allowedConsumerProjects_ = other.allowedConsumerProjects_; - bitField0_ |= 0x00000002; - } else { - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(value); onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(value); } - if (!other.getPscDnsName().isEmpty()) { - pscDnsName_ = other.pscDnsName_; - bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, value); onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(builderForValue.build()); + } + 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: - { - serviceAttachmentLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(s); - break; - } // case 18 - case 58: - { - pscDnsName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - 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 { + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, builderForValue.build()); onChanged(); - } // finally + } else { + pscInterfaceConfigsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - private int bitField0_; - - private java.lang.Object serviceAttachmentLink_ = ""; - /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The serviceAttachmentLink. */ - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; - return s; + public Builder addAllPscInterfaceConfigs( + java.lang.Iterable + values) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscInterfaceConfigs_); + onChanged(); } else { - return (java.lang.String) ref; + pscInterfaceConfigsBuilder_.addAllMessages(values); } + return this; } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder clearPscInterfaceConfigs() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.clear(); + } + return this; + } + + /** * - * @return The bytes for serviceAttachmentLink. + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; - return b; + public Builder removePscInterfaceConfigs(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.remove(index); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + pscInterfaceConfigsBuilder_.remove(index); } + return this; } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder + getPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder().getBuilder(index); + } + + /** * - * @param value The serviceAttachmentLink to set. - * @return This builder for chaining. + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setServiceAttachmentLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessageOrBuilder(index); } - serviceAttachmentLink_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + if (pscInterfaceConfigsBuilder_ != null) { + return pscInterfaceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } + } + + /** * - * @return This builder for chaining. + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearServiceAttachmentLink() { - serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder() { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.getDefaultInstance()); } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.getDefaultInstance()); + } + + /** * - * @param value The bytes for serviceAttachmentLink to set. - * @return This builder for chaining. + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getPscInterfaceConfigsBuilderList() { + return getPscInterfaceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsFieldBuilder() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscInterfaceConfigOrBuilder>( + pscInterfaceConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + pscInterfaceConfigs_ = null; } - checkByteStringIsUtf8(value); - serviceAttachmentLink_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return pscInterfaceConfigsBuilder_; } - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List + pscAutoConnections_ = java.util.Collections.emptyList(); - private void ensureAllowedConsumerProjectsIsMutable() { - if (!allowedConsumerProjects_.isModifiable()) { - allowedConsumerProjects_ = - new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + private void ensurePscAutoConnectionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = + new java.util.ArrayList( + pscAutoConnections_); + bitField0_ |= 0x00000010; } - bitField0_ |= 0x00000002; } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder> + pscAutoConnectionsBuilder_; + /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public java.util.List + getPscAutoConnectionsList() { + if (pscAutoConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscAutoConnections_); + } else { + return pscAutoConnectionsBuilder_.getMessageList(); + } + } + + /** * - * @return A list containing the allowedConsumerProjects. + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - allowedConsumerProjects_.makeImmutable(); - return allowedConsumerProjects_; + public int getPscAutoConnectionsCount() { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.size(); + } else { + return pscAutoConnectionsBuilder_.getCount(); + } } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); + } else { + return pscAutoConnectionsBuilder_.getMessage(index); + } + } + + /** * - * @return The count of allowedConsumerProjects. + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); + public Builder setPscAutoConnections( + int index, com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.setMessage(index, value); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder setPscAutoConnections( + int index, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(value); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder addPscAutoConnections( + int index, com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, value); + } + return this; + } + + /** * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param index The index to set the value at. - * @param value The allowedConsumerProjects to set. - * @return This builder for chaining. */ - public Builder setAllowedConsumerProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addPscAutoConnections( + int index, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -6210,25 +11969,23 @@ public Builder setAllowedConsumerProjects(int index, java.lang.String value) { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllowedConsumerProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllPscAutoConnections( + java.lang.Iterable + values) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addAllMessages(values); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -6236,22 +11993,21 @@ public Builder addAllowedConsumerProjects(java.lang.String value) { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param values The allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { - ensureAllowedConsumerProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); - bitField0_ |= 0x00000002; - onChanged(); + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + pscAutoConnectionsBuilder_.clear(); + } return this; } @@ -6259,21 +12015,21 @@ public Builder addAllAllowedConsumerProjects(java.lang.Iterable - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. + * Optional. Configurations for setting up PSC service automation. * * * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearAllowedConsumerProjects() { - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); + onChanged(); + } else { + pscAutoConnectionsBuilder_.remove(index); + } return this; } @@ -6281,52 +12037,35 @@ public Builder clearAllowedConsumerProjects() { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes of the allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder().getBuilder(index); } - private java.lang.Object pscDnsName_ = ""; - /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; - return s; + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); } else { - return (java.lang.String) ref; + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); } } @@ -6334,23 +12073,20 @@ public java.lang.String getPscDnsName() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(pscAutoConnections_); } } @@ -6358,66 +12094,73 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return getPscAutoConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearPscDnsName() { - pscDnsName_ = getDefaultInstance().getPscDnsName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getPscAutoConnectionsBuilderList() { + return getPscAutoConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + pscAutoConnections_ = null; } - checkByteStringIsUtf8(value); - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return pscAutoConnectionsBuilder_; } @java.lang.Override @@ -9250,11 +14993,13 @@ public int getDatabaseFlagsCount() { * * *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -9287,11 +15032,13 @@ public java.util.Map getDatabaseFlags() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -9314,11 +15061,13 @@ public java.util.Map getDatabaseFlagsMap() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -9348,11 +15097,13 @@ public java.util.Map getDatabaseFlagsMap() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -9588,6 +15339,63 @@ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQuery
         : queryInsightsConfig_;
   }
 
+  public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 26;
+  private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_;
+
+  /**
+   *
+   *
+   * 
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return Whether the observabilityConfig field is set. + */ + @java.lang.Override + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return The observabilityConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObservabilityConfig() { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.getDefaultInstance() + : observabilityConfig_; + } + + /** + * + * + *
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder() { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.getDefaultInstance() + : observabilityConfig_; + } + public static final int READ_POOL_CONFIG_FIELD_NUMBER = 14; private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; @@ -9605,7 +15413,7 @@ public com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig getQuery */ @java.lang.Override public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -9970,7 +15778,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasClientConnectionConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -10050,7 +15858,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -10112,7 +15920,7 @@ public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig getPscInstanceConf */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -10285,7 +16093,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDatabaseFlags(), DatabaseFlagsDefaultEntryHolder.defaultEntry, 13); - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { @@ -10308,19 +16116,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { output.writeBool(24, satisfiesPzs_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(26, getObservabilityConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, publicIpAddress_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(29, getNetworkConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -10393,7 +16204,7 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, databaseFlags__); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getReadPoolConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { @@ -10425,20 +16236,24 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQueryInsightsConfig()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getClientConnectionConfig()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(26, getObservabilityConfig()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIpAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, publicIpAddress_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } { @@ -10498,6 +16313,10 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryInsightsConfig()) { if (!getQueryInsightsConfig().equals(other.getQueryInsightsConfig())) return false; } + if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; + if (hasObservabilityConfig()) { + if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; + } if (hasReadPoolConfig() != other.hasReadPoolConfig()) return false; if (hasReadPoolConfig()) { if (!getReadPoolConfig().equals(other.getReadPoolConfig())) return false; @@ -10583,6 +16402,10 @@ public int hashCode() { hash = (37 * hash) + QUERY_INSIGHTS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryInsightsConfig().hashCode(); } + if (hasObservabilityConfig()) { + hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityConfig().hashCode(); + } if (hasReadPoolConfig()) { hash = (37 * hash) + READ_POOL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getReadPoolConfig().hashCode(); @@ -10795,6 +16618,7 @@ private void maybeForceBuilderInitialization() { getWritableNodeFieldBuilder(); getNodesFieldBuilder(); getQueryInsightsConfigFieldBuilder(); + getObservabilityConfigFieldBuilder(); getReadPoolConfigFieldBuilder(); getClientConnectionConfigFieldBuilder(); getPscInstanceConfigFieldBuilder(); @@ -10852,6 +16676,11 @@ public Builder clear() { queryInsightsConfigBuilder_.dispose(); queryInsightsConfigBuilder_ = null; } + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -10987,49 +16816,56 @@ private void buildPartial0(com.google.cloud.alloydb.v1.Instance result) { to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.readPoolConfig_ = - readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); + result.observabilityConfig_ = + observabilityConfigBuilder_ == null + ? observabilityConfig_ + : observabilityConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.ipAddress_ = ipAddress_; + result.readPoolConfig_ = + readPoolConfigBuilder_ == null ? readPoolConfig_ : readPoolConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.publicIpAddress_ = publicIpAddress_; + result.ipAddress_ = ipAddress_; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.reconciling_ = reconciling_; + result.publicIpAddress_ = publicIpAddress_; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.etag_ = etag_; + result.reconciling_ = reconciling_; } if (((from_bitField0_ & 0x00200000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.clientConnectionConfig_ = clientConnectionConfigBuilder_ == null ? clientConnectionConfig_ : clientConnectionConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.pscInstanceConfig_ = pscInstanceConfigBuilder_ == null ? pscInstanceConfig_ : pscInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x04000000) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x08000000) != 0)) { outboundPublicIpAddresses_.makeImmutable(); result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } @@ -11159,17 +16995,20 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { if (other.hasQueryInsightsConfig()) { mergeQueryInsightsConfig(other.getQueryInsightsConfig()); } + if (other.hasObservabilityConfig()) { + mergeObservabilityConfig(other.getObservabilityConfig()); + } if (other.hasReadPoolConfig()) { mergeReadPoolConfig(other.getReadPoolConfig()); } if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (!other.getPublicIpAddress().isEmpty()) { publicIpAddress_ = other.publicIpAddress_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (other.getReconciling() != false) { @@ -11177,11 +17016,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; if (other.hasClientConnectionConfig()) { mergeClientConnectionConfig(other.getClientConnectionConfig()); } @@ -11197,7 +17036,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -11323,25 +17162,25 @@ public Builder mergeFrom( case 114: { input.readMessage(getReadPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 114 case 122: { ipAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 122 case 128: { reconciling_ = input.readBool(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 128 case 138: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 138 case 146: @@ -11353,7 +17192,7 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 146 case 154: @@ -11386,32 +17225,39 @@ public Builder mergeFrom( { input.readMessage( getClientConnectionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 186 case 192: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 192 + case 210: + { + input.readMessage( + getObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 210 case 218: { publicIpAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 218 case 226: { input.readMessage( getPscInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 226 case 234: { input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 234 case 274: @@ -13335,11 +19181,13 @@ public int getDatabaseFlagsCount() { * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13372,11 +19220,13 @@ public java.util.Map getDatabaseFlags() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13399,11 +19249,13 @@ public java.util.Map getDatabaseFlagsMap() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13433,11 +19285,13 @@ public java.util.Map getDatabaseFlagsMap() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13473,11 +19327,13 @@ public Builder clearDatabaseFlags() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13510,11 +19366,13 @@ public java.util.Map getMutableDatabaseFlags
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -13544,11 +19402,13 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -14429,6 +20289,226 @@ public Builder clearQueryInsightsConfig() {
       return queryInsightsConfigBuilder_;
     }
 
+    private com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observabilityConfig_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig,
+            com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder,
+            com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder>
+        observabilityConfigBuilder_;
+
+    /**
+     *
+     *
+     * 
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return Whether the observabilityConfig field is set. + */ + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return The observabilityConfig. + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.getDefaultInstance() + : observabilityConfig_; + } else { + return observabilityConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observabilityConfig_ = value; + } else { + observabilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder builderForValue) { + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); + } else { + observabilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public Builder mergeObservabilityConfig( + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig + .getDefaultInstance()) { + getObservabilityConfigBuilder().mergeFrom(value); + } else { + observabilityConfig_ = value; + } + } else { + observabilityConfigBuilder_.mergeFrom(value); + } + if (observabilityConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getObservabilityConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + public com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); + } else { + return observabilityConfig_ == null + ? com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.getDefaultInstance() + : observabilityConfig_; + } + } + + /** + * + * + *
+     * Configuration for observability.
+     * 
+ * + * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder> + getObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig.Builder, + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; + } + return observabilityConfigBuilder_; + } + private com.google.cloud.alloydb.v1.Instance.ReadPoolConfig readPoolConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.alloydb.v1.Instance.ReadPoolConfig, @@ -14449,7 +20529,7 @@ public Builder clearQueryInsightsConfig() { * @return Whether the readPoolConfig field is set. */ public boolean hasReadPoolConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -14493,7 +20573,7 @@ public Builder setReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolCo } else { readPoolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -14515,7 +20595,7 @@ public Builder setReadPoolConfig( } else { readPoolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -14532,7 +20612,7 @@ public Builder setReadPoolConfig( */ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPoolConfig value) { if (readPoolConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && readPoolConfig_ != null && readPoolConfig_ != com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.getDefaultInstance()) { @@ -14544,7 +20624,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool readPoolConfigBuilder_.mergeFrom(value); } if (readPoolConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -14561,7 +20641,7 @@ public Builder mergeReadPoolConfig(com.google.cloud.alloydb.v1.Instance.ReadPool * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ public Builder clearReadPoolConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); readPoolConfig_ = null; if (readPoolConfigBuilder_ != null) { readPoolConfigBuilder_.dispose(); @@ -14582,7 +20662,7 @@ public Builder clearReadPoolConfig() { * .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ public com.google.cloud.alloydb.v1.Instance.ReadPoolConfig.Builder getReadPoolConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getReadPoolConfigFieldBuilder().getBuilder(); } @@ -14703,7 +20783,7 @@ public Builder setIpAddress(java.lang.String value) { throw new NullPointerException(); } ipAddress_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -14722,7 +20802,7 @@ public Builder setIpAddress(java.lang.String value) { */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -14746,7 +20826,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); ipAddress_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -14828,7 +20908,7 @@ public Builder setPublicIpAddress(java.lang.String value) { throw new NullPointerException(); } publicIpAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -14850,7 +20930,7 @@ public Builder setPublicIpAddress(java.lang.String value) { */ public Builder clearPublicIpAddress() { publicIpAddress_ = getDefaultInstance().getPublicIpAddress(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -14877,7 +20957,7 @@ public Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); publicIpAddress_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -14923,7 +21003,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -14944,7 +21024,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); reconciling_ = false; onChanged(); return this; @@ -15015,7 +21095,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -15033,7 +21113,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -15056,7 +21136,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -15081,7 +21161,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return annotations_; } @@ -15179,7 +21259,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -15206,7 +21286,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return internalGetMutableAnnotations().getMutableMap(); } @@ -15229,7 +21309,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } @@ -15246,7 +21326,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } @@ -15271,7 +21351,7 @@ public Builder putAllAnnotations(java.util.Map */ public Builder clearClientConnectionConfig() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); clientConnectionConfig_ = null; if (clientConnectionConfigBuilder_ != null) { clientConnectionConfigBuilder_.dispose(); @@ -15414,7 +21494,7 @@ public Builder clearClientConnectionConfig() { */ public com.google.cloud.alloydb.v1.Instance.ClientConnectionConfig.Builder getClientConnectionConfigBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getClientConnectionConfigFieldBuilder().getBuilder(); } @@ -15502,7 +21582,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -15519,7 +21599,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); satisfiesPzs_ = false; onChanged(); return this; @@ -15547,7 +21627,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the pscInstanceConfig field is set. */ public boolean hasPscInstanceConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** @@ -15596,7 +21676,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -15620,7 +21700,7 @@ public Builder setPscInstanceConfig( } else { pscInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -15640,7 +21720,7 @@ public Builder setPscInstanceConfig( public Builder mergePscInstanceConfig( com.google.cloud.alloydb.v1.Instance.PscInstanceConfig value) { if (pscInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x02000000) != 0) && pscInstanceConfig_ != null && pscInstanceConfig_ != com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.getDefaultInstance()) { @@ -15652,7 +21732,7 @@ public Builder mergePscInstanceConfig( pscInstanceConfigBuilder_.mergeFrom(value); } if (pscInstanceConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -15671,7 +21751,7 @@ public Builder mergePscInstanceConfig( * */ public Builder clearPscInstanceConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); pscInstanceConfig_ = null; if (pscInstanceConfigBuilder_ != null) { pscInstanceConfigBuilder_.dispose(); @@ -15695,7 +21775,7 @@ public Builder clearPscInstanceConfig() { */ public com.google.cloud.alloydb.v1.Instance.PscInstanceConfig.Builder getPscInstanceConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getPscInstanceConfigFieldBuilder().getBuilder(); } @@ -15773,7 +21853,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** @@ -15820,7 +21900,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -15843,7 +21923,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -15862,7 +21942,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig @@ -15875,7 +21955,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -15893,7 +21973,7 @@ public Builder mergeNetworkConfig( *
*/ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -15916,7 +21996,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return getNetworkConfigFieldBuilder().getBuilder(); } @@ -15979,7 +22059,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; } /** @@ -16074,7 +22154,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -16099,7 +22179,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -16121,7 +22201,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable values) { ensureOutboundPublicIpAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outboundPublicIpAddresses_); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -16141,7 +22221,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable - * Database flags. Set at instance level. - * * They are copied from primary instance on read instance creation. - * * Read instances can set new or override existing flags that are relevant - * for reads, e.g. for enabling columnar cache on a read instance. Flags - * set on read instance may or may not be present on primary. + * Database flags. Set at the instance level. + * They are copied from the primary instance on secondary instance creation. + * Flags that have restrictions default to the value at primary + * instance on read instances during creation. Read instances can set new + * flags or override existing flags that are relevant for reads, for example, + * for enabling columnar cache on a read instance. Flags set on read instance + * might or might not be present on the primary instance. * * * This is a list of "key": "value" pairs. @@ -503,11 +505,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -531,11 +535,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -555,11 +561,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -583,11 +591,13 @@ java.lang.String getDatabaseFlagsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -761,6 +771,47 @@ java.lang.String getDatabaseFlagsOrDefault(
   com.google.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfigOrBuilder
       getQueryInsightsConfigOrBuilder();
 
+  /**
+   *
+   *
+   * 
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return Whether the observabilityConfig field is set. + */ + boolean hasObservabilityConfig(); + + /** + * + * + *
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + * + * @return The observabilityConfig. + */ + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig getObservabilityConfig(); + + /** + * + * + *
+   * Configuration for observability.
+   * 
+ * + * .google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfig observability_config = 26; + * + */ + com.google.cloud.alloydb.v1.Instance.ObservabilityInstanceConfigOrBuilder + getObservabilityConfigOrBuilder(); + /** * * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequest.java index f10332719a94..12d58f1e798c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequest.java @@ -43,6 +43,7 @@ private ListSupportedDatabaseFlagsRequest( private ListSupportedDatabaseFlagsRequest() { parent_ = ""; pageToken_ = ""; + scope_ = 0; } @java.lang.Override @@ -208,6 +209,51 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_ = 0; + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -231,6 +277,10 @@ 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 (scope_ + != com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, scope_); + } getUnknownFields().writeTo(output); } @@ -249,6 +299,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (scope_ + != com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -268,6 +322,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (scope_ != other.scope_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,6 +340,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -429,6 +486,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + scope_ = 0; return this; } @@ -476,6 +534,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; + } } @java.lang.Override @@ -538,6 +599,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.ListSupportedDatabaseFlagsR bitField0_ |= 0x00000004; onChanged(); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -582,6 +646,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 48: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -922,6 +992,118 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int scope_ = 0; + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000008); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequestOrBuilder.java index 913274cdad6a..5e05f54e8bc3 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ListSupportedDatabaseFlagsRequestOrBuilder.java @@ -105,4 +105,36 @@ public interface ListSupportedDatabaseFlagsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadata.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadata.java index e1c052788107..b2648c679ea5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadata.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadata.java @@ -78,6 +78,7 @@ public enum RequestSpecificCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_CREATE_INSTANCES_METADATA(8), + UPGRADE_CLUSTER_STATUS(10), REQUESTSPECIFIC_NOT_SET(0); private final int value; @@ -99,6 +100,8 @@ public static RequestSpecificCase forNumber(int value) { switch (value) { case 8: return BATCH_CREATE_INSTANCES_METADATA; + case 10: + return UPGRADE_CLUSTER_STATUS; case 0: return REQUESTSPECIFIC_NOT_SET; default: @@ -177,6 +180,67 @@ public boolean hasBatchCreateInstancesMetadata() { return com.google.cloud.alloydb.v1.BatchCreateInstancesMetadata.getDefaultInstance(); } + public static final int UPGRADE_CLUSTER_STATUS_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeClusterStatus field is set. + */ + @java.lang.Override + public boolean hasUpgradeClusterStatus() { + return requestSpecificCase_ == 10; + } + + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeClusterStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus getUpgradeClusterStatus() { + if (requestSpecificCase_ == 10) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder + getUpgradeClusterStatusOrBuilder() { + if (requestSpecificCase_ == 10) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; @@ -449,9 +513,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -555,6 +620,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 8, (com.google.cloud.alloydb.v1.BatchCreateInstancesMetadata) requestSpecific_); } + if (requestSpecificCase_ == 10) { + output.writeMessage(10, (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_); + } getUnknownFields().writeTo(output); } @@ -590,6 +658,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloud.alloydb.v1.BatchCreateInstancesMetadata) requestSpecific_); } + if (requestSpecificCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -625,6 +698,9 @@ public boolean equals(final java.lang.Object obj) { if (!getBatchCreateInstancesMetadata().equals(other.getBatchCreateInstancesMetadata())) return false; break; + case 10: + if (!getUpgradeClusterStatus().equals(other.getUpgradeClusterStatus())) return false; + break; case 0: default: } @@ -662,6 +738,10 @@ public int hashCode() { hash = (37 * hash) + BATCH_CREATE_INSTANCES_METADATA_FIELD_NUMBER; hash = (53 * hash) + getBatchCreateInstancesMetadata().hashCode(); break; + case 10: + hash = (37 * hash) + UPGRADE_CLUSTER_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeClusterStatus().hashCode(); + break; case 0: default: } @@ -818,6 +898,9 @@ public Builder clear() { if (batchCreateInstancesMetadataBuilder_ != null) { batchCreateInstancesMetadataBuilder_.clear(); } + if (upgradeClusterStatusBuilder_ != null) { + upgradeClusterStatusBuilder_.clear(); + } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -873,27 +956,27 @@ public com.google.cloud.alloydb.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.alloydb.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.target_ = target_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.verb_ = verb_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.statusMessage_ = statusMessage_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.requestedCancellation_ = requestedCancellation_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.apiVersion_ = apiVersion_; } result.bitField0_ |= to_bitField0_; @@ -905,6 +988,9 @@ private void buildPartialOneofs(com.google.cloud.alloydb.v1.OperationMetadata re if (requestSpecificCase_ == 8 && batchCreateInstancesMetadataBuilder_ != null) { result.requestSpecific_ = batchCreateInstancesMetadataBuilder_.build(); } + if (requestSpecificCase_ == 10 && upgradeClusterStatusBuilder_ != null) { + result.requestSpecific_ = upgradeClusterStatusBuilder_.build(); + } } @java.lang.Override @@ -960,17 +1046,17 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.OperationMetadata other) { } if (!other.getTarget().isEmpty()) { target_ = other.target_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getVerb().isEmpty()) { verb_ = other.verb_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (other.getRequestedCancellation() != false) { @@ -978,7 +1064,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.OperationMetadata other) { } if (!other.getApiVersion().isEmpty()) { apiVersion_ = other.apiVersion_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } switch (other.getRequestSpecificCase()) { @@ -987,6 +1073,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.OperationMetadata other) { mergeBatchCreateInstancesMetadata(other.getBatchCreateInstancesMetadata()); break; } + case UPGRADE_CLUSTER_STATUS: + { + mergeUpgradeClusterStatus(other.getUpgradeClusterStatus()); + break; + } case REQUESTSPECIFIC_NOT_SET: { break; @@ -1021,43 +1112,43 @@ public Builder mergeFrom( case 10: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 18 case 26: { target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 26 case 34: { verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 34 case 42: { statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 48: { requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 48 case 58: { apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 66: @@ -1067,6 +1158,13 @@ public Builder mergeFrom( requestSpecificCase_ = 8; break; } // case 66 + case 82: + { + input.readMessage( + getUpgradeClusterStatusFieldBuilder().getBuilder(), extensionRegistry); + requestSpecificCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1343,6 +1441,246 @@ public Builder clearBatchCreateInstancesMetadata() { return batchCreateInstancesMetadataBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder> + upgradeClusterStatusBuilder_; + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeClusterStatus field is set. + */ + @java.lang.Override + public boolean hasUpgradeClusterStatus() { + return requestSpecificCase_ == 10; + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeClusterStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus getUpgradeClusterStatus() { + if (upgradeClusterStatusBuilder_ == null) { + if (requestSpecificCase_ == 10) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } else { + if (requestSpecificCase_ == 10) { + return upgradeClusterStatusBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpgradeClusterStatus(com.google.cloud.alloydb.v1.UpgradeClusterStatus value) { + if (upgradeClusterStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestSpecific_ = value; + onChanged(); + } else { + upgradeClusterStatusBuilder_.setMessage(value); + } + requestSpecificCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpgradeClusterStatus( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder builderForValue) { + if (upgradeClusterStatusBuilder_ == null) { + requestSpecific_ = builderForValue.build(); + onChanged(); + } else { + upgradeClusterStatusBuilder_.setMessage(builderForValue.build()); + } + requestSpecificCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpgradeClusterStatus( + com.google.cloud.alloydb.v1.UpgradeClusterStatus value) { + if (upgradeClusterStatusBuilder_ == null) { + if (requestSpecificCase_ == 10 + && requestSpecific_ + != com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance()) { + requestSpecific_ = + com.google.cloud.alloydb.v1.UpgradeClusterStatus.newBuilder( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_) + .mergeFrom(value) + .buildPartial(); + } else { + requestSpecific_ = value; + } + onChanged(); + } else { + if (requestSpecificCase_ == 10) { + upgradeClusterStatusBuilder_.mergeFrom(value); + } else { + upgradeClusterStatusBuilder_.setMessage(value); + } + } + requestSpecificCase_ = 10; + return this; + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpgradeClusterStatus() { + if (upgradeClusterStatusBuilder_ == null) { + if (requestSpecificCase_ == 10) { + requestSpecificCase_ = 0; + requestSpecific_ = null; + onChanged(); + } + } else { + if (requestSpecificCase_ == 10) { + requestSpecificCase_ = 0; + requestSpecific_ = null; + } + upgradeClusterStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder + getUpgradeClusterStatusBuilder() { + return getUpgradeClusterStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder + getUpgradeClusterStatusOrBuilder() { + if ((requestSpecificCase_ == 10) && (upgradeClusterStatusBuilder_ != null)) { + return upgradeClusterStatusBuilder_.getMessageOrBuilder(); + } else { + if (requestSpecificCase_ == 10) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. UpgradeClusterStatus related metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder> + getUpgradeClusterStatusFieldBuilder() { + if (upgradeClusterStatusBuilder_ == null) { + if (!(requestSpecificCase_ == 10)) { + requestSpecific_ = com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + upgradeClusterStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder>( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus) requestSpecific_, + getParentForChildren(), + isClean()); + requestSpecific_ = null; + } + requestSpecificCase_ = 10; + onChanged(); + return upgradeClusterStatusBuilder_; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1364,7 +1702,7 @@ public Builder clearBatchCreateInstancesMetadata() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -1410,7 +1748,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1432,7 +1770,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1450,7 +1788,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -1461,7 +1799,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1479,7 +1817,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -1501,7 +1839,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1575,7 +1913,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1617,7 +1955,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1638,7 +1976,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1655,7 +1993,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -1666,7 +2004,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1683,7 +2021,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -1704,7 +2042,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -1819,7 +2157,7 @@ public Builder setTarget(java.lang.String value) { throw new NullPointerException(); } target_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1837,7 +2175,7 @@ public Builder setTarget(java.lang.String value) { */ public Builder clearTarget() { target_ = getDefaultInstance().getTarget(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1860,7 +2198,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); target_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1930,7 +2268,7 @@ public Builder setVerb(java.lang.String value) { throw new NullPointerException(); } verb_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1948,7 +2286,7 @@ public Builder setVerb(java.lang.String value) { */ public Builder clearVerb() { verb_ = getDefaultInstance().getVerb(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1971,7 +2309,7 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); verb_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2041,7 +2379,7 @@ public Builder setStatusMessage(java.lang.String value) { throw new NullPointerException(); } statusMessage_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2059,7 +2397,7 @@ public Builder setStatusMessage(java.lang.String value) { */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2082,7 +2420,7 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); statusMessage_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2095,9 +2433,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2115,9 +2454,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2128,7 +2468,7 @@ public boolean getRequestedCancellation() { public Builder setRequestedCancellation(boolean value) { requestedCancellation_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2139,9 +2479,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2149,7 +2490,7 @@ public Builder setRequestedCancellation(boolean value) { * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); requestedCancellation_ = false; onChanged(); return this; @@ -2220,7 +2561,7 @@ public Builder setApiVersion(java.lang.String value) { throw new NullPointerException(); } apiVersion_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2238,7 +2579,7 @@ public Builder setApiVersion(java.lang.String value) { */ public Builder clearApiVersion() { apiVersion_ = getDefaultInstance().getApiVersion(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2261,7 +2602,7 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); apiVersion_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadataOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadataOrBuilder.java index a28f3ce07124..97ab17bad334 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadataOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/OperationMetadataOrBuilder.java @@ -68,6 +68,49 @@ public interface OperationMetadataOrBuilder com.google.cloud.alloydb.v1.BatchCreateInstancesMetadataOrBuilder getBatchCreateInstancesMetadataOrBuilder(); + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upgradeClusterStatus field is set. + */ + boolean hasUpgradeClusterStatus(); + + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upgradeClusterStatus. + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus getUpgradeClusterStatus(); + + /** + * + * + *
+   * Output only. UpgradeClusterStatus related metadata.
+   * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus upgrade_cluster_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder getUpgradeClusterStatusOrBuilder(); + /** * * @@ -232,9 +275,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java index 8fed3d958091..637485b9a07a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ResourcesProto.java @@ -148,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Instance_QueryInsightsInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -156,6 +160,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -237,26 +249,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'google/cloud/alloydb/v1/resources.prot" + "o\022\027google.cloud.alloydb.v1\032\037google/api/f" + "ield_behavior.proto\032\033google/api/field_in" - + "fo.proto\032\031google/api/resource.proto\032\036goo" - + "gle/protobuf/duration.proto\032\037google/prot" - + "obuf/timestamp.proto\032\036google/protobuf/wr" - + "appers.proto\032\033google/type/dayofweek.proto\032\033google/type/timeofday.proto\".\n" + + "fo.proto\032\031google/api/resource.proto\032,goo" + + "gle/cloud/alloydb/v1/csql_resources.prot" + + "o\032\036google/protobuf/duration.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\036google/proto" + + "buf/wrappers.proto\032\033google/type/dayofweek.proto\032\033google/type/timeofday.proto\".\n" + "\014UserPassword\022\014\n" + "\004user\030\001 \001(\t\022\020\n" + "\010password\030\002 \001(\t\"\343\001\n" + "\017MigrationSource\022\026\n" + "\thost_port\030\001 \001(\tB\003\340A\003\022\031\n" + "\014reference_id\030\002 \001(\tB\003\340A\003\022V\n" - + "\013source_type\030\003" - + " \001(\0162<.google.cloud.alloydb.v1.MigrationSource.MigrationSourceTypeB\003\340A\003\"E\n" + + "\013source_type\030\003 \001(\0162<.google.cloud.alloydb." + + "v1.MigrationSource.MigrationSourceTypeB\003\340A\003\"E\n" + "\023MigrationSourceType\022%\n" + "!MIGRATION_SOURCE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003DMS\020\001\"(\n" + "\020EncryptionConfig\022\024\n" + "\014kms_key_name\030\001 \001(\t\"\206\002\n" + "\016EncryptionInfo\022J\n" - + "\017encryption_type\030\001 \001(\0162,.goo" - + "gle.cloud.alloydb.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + + "\017encryption_type\030\001 \001(\016" + + "2,.google.cloud.alloydb.v1.EncryptionInfo.TypeB\003\340A\003\022J\n" + "\020kms_key_versions\030\002 \003(\tB0\340A\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\"\\\n" + "\004Type\022\024\n" @@ -266,8 +279,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSslConfig\022A\n" + "\010ssl_mode\030\001" + " \001(\0162*.google.cloud.alloydb.v1.SslConfig.SslModeB\003\340A\001\022C\n" - + "\tca_source\030\002 \001(\0162+.go" - + "ogle.cloud.alloydb.v1.SslConfig.CaSourceB\003\340A\001\"\252\001\n" + + "\tca_source\030\002 \001(" + + "\0162+.google.cloud.alloydb.v1.SslConfig.CaSourceB\003\340A\001\"\252\001\n" + "\007SslMode\022\030\n" + "\024SSL_MODE_UNSPECIFIED\020\000\022\026\n" + "\016SSL_MODE_ALLOW\020\001\032\002\010\001\022\030\n" @@ -279,19 +292,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025CA_SOURCE_UNSPECIFIED\020\000\022\025\n" + "\021CA_SOURCE_MANAGED\020\001\"\345\006\n" + "\025AutomatedBackupPolicy\022X\n" - + "\017weekly_schedule\030\002" - + " \001(\0132=.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklyScheduleH\000\022a\n" - + "\024time_based_retention\030\004 \001(\0132A.google.clou" - + "d.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionH\001\022i\n" - + "\030quantity_based_retention\030\005 \001(\0132E.google.cloud.alloydb.v1.Auto" - + "matedBackupPolicy.QuantityBasedRetentionH\001\022\024\n" + + "\017weekly_schedule\030\002 \001(\0132=.google.cloud.alloydb" + + ".v1.AutomatedBackupPolicy.WeeklyScheduleH\000\022a\n" + + "\024time_based_retention\030\004 \001(\0132A.googl" + + "e.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetentionH\001\022i\n" + + "\030quantity_based_retention\030\005 \001(\0132E.google.cloud.alloydb.v" + + "1.AutomatedBackupPolicy.QuantityBasedRetentionH\001\022\024\n" + "\007enabled\030\001 \001(\010H\002\210\001\001\0220\n\r" + "backup_window\030\003 \001(\0132\031.google.protobuf.Duration\022I\n" + "\021encryption_config\030\010" + " \001(\0132).google.cloud.alloydb.v1.EncryptionConfigB\003\340A\001\022\020\n" + "\010location\030\006 \001(\t\022J\n" - + "\006labels\030\007 \003(\0132:.google.cloud.a" - + "lloydb.v1.AutomatedBackupPolicy.LabelsEntry\032k\n" + + "\006labels\030\007 \003(\0132:.google.c" + + "loud.alloydb.v1.AutomatedBackupPolicy.LabelsEntry\032k\n" + "\016WeeklySchedule\022+\n" + "\013start_times\030\001 \003(\0132\026.google.type.TimeOfDay\022,\n" + "\014days_of_week\030\002 \003(\0162\026.google.type.DayOfWeek\032I\n" @@ -312,8 +325,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132).google.cloud.alloydb.v1.EncryptionConfigB\n\n" + "\010_enabled\"\206\002\n" + "\024ContinuousBackupInfo\022E\n" - + "\017encryption_info\030\001 " - + "\001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\0225\n" + + "\017encryption_info\030\001" + + " \001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\0225\n" + "\014enabled_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022-\n" + "\010schedule\030\003 \003(\0162\026.google.type.DayOfWeekB\003\340A\003\022A\n" + "\030earliest_restorable_time\030\004" @@ -327,18 +340,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "point_in_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\"\340\001\n" + "\027MaintenanceUpdatePolicy\022_\n" - + "\023maintenance_windows\030\001 \003(\013" - + "2B.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow\032d\n" + + "\023maintenance_windows\030\001" + + " \003(\0132B.google.cloud.alloydb.v1.MaintenanceUpdatePolicy.MaintenanceWindow\032d\n" + "\021MaintenanceWindow\022#\n" + "\003day\030\001 \001(\0162\026.google.type.DayOfWeek\022*\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDay\"J\n" + "\023MaintenanceSchedule\0223\n\n" - + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\322\027\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\332\030\n" + "\007Cluster\022C\n\r" - + "backup_source\030\017 \001(" - + "\0132%.google.cloud.alloydb.v1.BackupSourceB\003\340A\003H\000\022I\n" - + "\020migration_source\030\020 \001(\0132(.goog" - + "le.cloud.alloydb.v1.MigrationSourceB\003\340A\003H\000\022\021\n" + + "backup_source\030\017" + + " \001(\0132%.google.cloud.alloydb.v1.BackupSourceB\003\340A\003H\000\022I\n" + + "\020migration_source\030\020 \001(\0132" + + "(.google.cloud.alloydb.v1.MigrationSourceB\003\340A\003H\000\022[\n" + + "\032cloudsql_backup_run_source\030*" + + " \001(\01320.google.cloud.alloydb.v1.CloudSQLBackupRunSourceB\003\340A\003H\000\022\021\n" + "\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\0224\n" @@ -346,50 +361,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" + "\006labels\030\007 \003(\0132,.google.cloud.alloydb.v1.Cluster.LabelsEntry\022:\n" - + "\005state\030\010" - + " \001(\0162&.google.cloud.alloydb.v1.Cluster.StateB\003\340A\003\022G\n" + + "\005state\030\010 \001(\0162" + + "&.google.cloud.alloydb.v1.Cluster.StateB\003\340A\003\022G\n" + "\014cluster_type\030\030" + " \001(\0162,.google.cloud.alloydb.v1.Cluster.ClusterTypeB\003\340A\003\022G\n" + "\020database_version\030\t" + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\001\022K\n" - + "\016network_config\030\035 \001(\0132..go" - + "ogle.cloud.alloydb.v1.Cluster.NetworkConfigB\003\340A\001\0229\n" + + "\016network_config\030\035" + + " \001(\0132..google.cloud.alloydb.v1.Cluster.NetworkConfigB\003\340A\001\0229\n" + "\007network\030\n" + " \001(\tB(\030\001\340A\002\372A \n" + "\036compute.googleapis.com/Network\022\014\n" + "\004etag\030\013 \001(\t\022F\n" - + "\013annotations\030\014" - + " \003(\01321.google.cloud.alloydb.v1.Cluster.AnnotationsEntry\022\030\n" + + "\013annotations\030\014 \003(" + + "\01321.google.cloud.alloydb.v1.Cluster.AnnotationsEntry\022\030\n" + "\013reconciling\030\r" + " \001(\010B\003\340A\003\022@\n" - + "\014initial_user\030\016 \001(" - + "\0132%.google.cloud.alloydb.v1.UserPasswordB\003\340A\004\022O\n" - + "\027automated_backup_policy\030\021 \001(\0132." - + ".google.cloud.alloydb.v1.AutomatedBackupPolicy\022:\n\n" + + "\014initial_user\030\016" + + " \001(\0132%.google.cloud.alloydb.v1.UserPasswordB\003\340A\004\022O\n" + + "\027automated_backup_policy\030\021" + + " \001(\0132..google.cloud.alloydb.v1.AutomatedBackupPolicy\022:\n\n" + "ssl_config\030\022 \001(\0132\".google.cloud.alloydb.v1.SslConfigB\002\030\001\022I\n" - + "\021encryption_config\030\023" - + " \001(\0132).google.cloud.alloydb.v1.EncryptionConfigB\003\340A\001\022E\n" + + "\021encryption_config\030\023 \001(\0132).googl" + + "e.cloud.alloydb.v1.EncryptionConfigB\003\340A\001\022E\n" + "\017encryption_info\030\024" + " \001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\022V\n" - + "\030continuous_backup_config\030\033" - + " \001(\0132/.google.cloud.alloydb.v1.ContinuousBackupConfigB\003\340A\001\022R\n" - + "\026continuous_backup_info\030\034" - + " \001(\0132-.google.cloud.alloydb.v1.ContinuousBackupInfoB\003\340A\003\022J\n" - + "\020secondary_config\030\026" - + " \001(\01320.google.cloud.alloydb.v1.Cluster.SecondaryConfig\022K\n" + + "\030continuous_backup_config\030\033 \001(\0132/.google.cloud" + + ".alloydb.v1.ContinuousBackupConfigB\003\340A\001\022R\n" + + "\026continuous_backup_info\030\034 \001(\0132-.google" + + ".cloud.alloydb.v1.ContinuousBackupInfoB\003\340A\003\022J\n" + + "\020secondary_config\030\026 \001(\01320.google.c" + + "loud.alloydb.v1.Cluster.SecondaryConfig\022K\n" + "\016primary_config\030\027" + " \001(\0132..google.cloud.alloydb.v1.Cluster.PrimaryConfigB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\036 \001(\010B\003\340A\003\022C\n\n" + "psc_config\030\037" + " \001(\0132*.google.cloud.alloydb.v1.Cluster.PscConfigB\003\340A\001\022X\n" - + "\031maintenance_update_policy\030 \001(\01320.google.c" - + "loud.alloydb.v1.MaintenanceUpdatePolicyB\003\340A\001\022O\n" - + "\024maintenance_schedule\030% \001(\0132,.goo" - + "gle.cloud.alloydb.v1.MaintenanceScheduleB\003\340A\003\022I\n" - + "\021subscription_type\030& \001(\0162).googl" - + "e.cloud.alloydb.v1.SubscriptionTypeB\003\340A\001\022K\n" - + "\016trial_metadata\030\'" - + " \001(\0132..google.cloud.alloydb.v1.Cluster.TrialMetadataB\003\340A\003\022C\n" + + "\031maintenance_update_policy\030 " + + " \001(\01320.google.cloud.alloydb.v1.MaintenanceUpdatePolicyB\003\340A\001\022O\n" + + "\024maintenance_schedule\030%" + + " \001(\0132,.google.cloud.alloydb.v1.MaintenanceScheduleB\003\340A\003\022I\n" + + "\021subscription_type\030&" + + " \001(\0162).google.cloud.alloydb.v1.SubscriptionTypeB\003\340A\001\022K\n" + + "\016trial_metadata\030\' " + + "\001(\0132..google.cloud.alloydb.v1.Cluster.TrialMetadataB\003\340A\003\022C\n" + "\004tags\030) \003(\0132*.google.cloud.alloydb.v1.Cluster.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032i\n\r" + "NetworkConfig\0227\n" @@ -399,18 +414,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017SecondaryConfig\022\034\n" + "\024primary_cluster_name\030\001 \001(\t\0325\n\r" + "PrimaryConfig\022$\n" - + "\027secondary_cluster_names\030\001 \003(\tB\003\340A\003\032%\n" + + "\027secondary_cluster_names\030\001 \003(\tB\003\340A\003\032P\n" + "\tPscConfig\022\030\n" - + "\013psc_enabled\030\001 \001(\010B\003\340A\001\032\323\001\n" - + "\r" + + "\013psc_enabled\030\001 \001(\010B\003\340A\001\022)\n" + + "\034service_owned_project_number\030\003 \001(\003B\003\340A\003\032\323\001\n\r" + "TrialMetadata\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\0220\n" + "\014upgrade_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0222\n" + "\016grace_end_time\030\004 \001(\0132\032.google.protobuf.Timestamp\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" @@ -433,9 +447,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PRIMARY\020\001\022\r\n" + "\tSECONDARY\020\002:u\352Ar\n" - + "\036alloydb.googleapis.com/Cluster\022:projects/{proje" - + "ct}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\317\027\n" + + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/locations/{loc" + + "ation}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" + + "\006source\"\351\037\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -446,24 +460,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\007 \003(\0132-.google.cloud.alloydb.v1.Instance.LabelsEntry\022;\n" + "\005state\030\010" + " \001(\0162\'.google.cloud.alloydb.v1.Instance.StateB\003\340A\003\022J\n\r" - + "instance_type\030\t" - + " \001(\0162..google.cloud.alloydb.v1.Instance.InstanceTypeB\003\340A\002\022G\n" + + "instance_type\030\t \001(\0162." + + ".google.cloud.alloydb.v1.Instance.InstanceTypeB\003\340A\002\022G\n" + "\016machine_config\030\n" + " \001(\0132/.google.cloud.alloydb.v1.Instance.MachineConfig\022M\n" - + "\021availability_type\030\013" - + " \001(\01622.google.cloud.alloydb.v1.Instance.AvailabilityType\022\020\n" + + "\021availability_type\030\013 \001(\01622.google" + + ".cloud.alloydb.v1.Instance.AvailabilityType\022\020\n" + "\010gce_zone\030\014 \001(\t\022L\n" + "\016database_flags\030\r" - + " \003(\01324.google.cloud.alloydb.v1.Instance.DatabaseFlagsEntry\022B\n" - + "\r" - + "writable_node\030\023" - + " \001(\0132&.google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022:\n" - + "\005nodes\030\024 \003(\013" - + "2&.google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022\\\n" - + "\025query_insights_config\030\025 \001(\0132=.g" - + "oogle.cloud.alloydb.v1.Instance.QueryInsightsInstanceConfig\022J\n" - + "\020read_pool_config\030\016" - + " \001(\01320.google.cloud.alloydb.v1.Instance.ReadPoolConfig\022\027\n\n" + + " \003(\01324.google.cloud.alloydb.v1.Instance.DatabaseFlagsEntry\022B\n\r" + + "writable_node\030\023 \001" + + "(\0132&.google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022:\n" + + "\005nodes\030\024" + + " \003(\0132&.google.cloud.alloydb.v1.Instance.NodeB\003\340A\003\022\\\n" + + "\025query_insights_config\030\025 \001(\0132=.google.cloud.alloyd" + + "b.v1.Instance.QueryInsightsInstanceConfig\022[\n" + + "\024observability_config\030\032 \001(\0132=.google" + + ".cloud.alloydb.v1.Instance.ObservabilityInstanceConfig\022J\n" + + "\020read_pool_config\030\016 \001(\013" + + "20.google.cloud.alloydb.v1.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" + "\021public_ip_address\030\033 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" @@ -471,22 +486,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\021 \001(\t\022G\n" + "\013annotations\030\022" + " \003(\01322.google.cloud.alloydb.v1.Instance.AnnotationsEntry\022_\n" - + "\030client_connection_config\030\027 \001(\01328.google.clo" - + "ud.alloydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\030client_connection_config\030\027 \001(\01328.google.cloud.al" + + "loydb.v1.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022U\n" - + "\023psc_instance_config\030\034 \001(\01323.google.clo" - + "ud.alloydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n" - + "\016network_config\030\035 \001(\01327.google.c" - + "loud.alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n" + + "\023psc_instance_config\030\034 \001(\01323.google.cloud.al" + + "loydb.v1.Instance.PscInstanceConfigB\003\340A\001\022T\n" + + "\016network_config\030\035 \001(\01327.google.cloud." + + "alloydb.v1.Instance.InstanceNetworkConfigB\003\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" - + "\tB\013\340A\003\342\214\317\327\010\002\010\002\032\"\n\r" + + "\tB\013\340A\003\342\214\317\327\010\002\010\002\0328\n\r" + "MachineConfig\022\021\n" - + "\tcpu_count\030\001 \001(\005\032>\n" - + "\004Node\022\017\n" - + "\007zone_id\030\001 \001(\t\022\n\n" - + "\002id\030\002 \001(\t\022\n\n" - + "\002ip\030\003 \001(\t\022\r\n" - + "\005state\030\004 \001(\t\032\372\001\n" + + "\tcpu_count\030\001 \001(\005\022\024\n" + + "\014machine_type\030\004 \001(\t\032R\n" + + "\004Node\022\024\n" + + "\007zone_id\030\001 \001(\tB\003\340A\003\022\017\n" + + "\002id\030\002 \001(\tB\003\340A\003\022\017\n" + + "\002ip\030\003 \001(\tB\003\340A\003\022\022\n" + + "\005state\030\004 \001(\tB\003\340A\003\032\372\001\n" + "\033QueryInsightsInstanceConfig\022$\n" + "\027record_application_tags\030\002 \001(\010H\000\210\001\001\022\"\n" + "\025record_client_address\030\003 \001(\010H\001\210\001\001\022\033\n" @@ -496,20 +512,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "H\002\210\001\001B\032\n" + "\030_record_application_tagsB\030\n" + "\026_record_client_addressB\031\n" - + "\027_query_plans_per_minute\032$\n" + + "\027_query_plans_per_minute\032\360\003\n" + + "\033ObservabilityInstanceConfig\022\024\n" + + "\007enabled\030\001 \001(\010H\000\210\001\001\022\036\n" + + "\021preserve_comments\030\002 \001(\010H\001\210\001\001\022\036\n" + + "\021track_wait_events\030\003 \001(\010H\002\210\001\001\022(\n" + + "\026track_wait_event_types\030\004 \001(\010B\003\340A\003H\003\210\001\001\022$\n" + + "\027max_query_string_length\030\005 \001(\005H\004\210\001\001\022$\n" + + "\027record_application_tags\030\006 \001(\010H\005\210\001\001\022#\n" + + "\026query_plans_per_minute\030\007 \001(\005H\006\210\001\001\022!\n" + + "\024track_active_queries\030\010 \001(\010H\007\210\001\001B\n\n" + + "\010_enabledB\024\n" + + "\022_preserve_commentsB\024\n" + + "\022_track_wait_eventsB\031\n" + + "\027_track_wait_event_typesB\032\n" + + "\030_max_query_string_lengthB\032\n" + + "\030_record_application_tagsB\031\n" + + "\027_query_plans_per_minuteB\027\n" + + "\025_track_active_queries\032$\n" + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032v\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022;\n\n" - + "ssl_config\030\002 \001(\0132\".google.cloud.alloydb.v1.SslConfigB\003\340A\001\032|\n" + + "ssl_config\030\002 \001(\0132\".google.cloud.alloydb.v1.SslConfigB\003\340A\001\0329\n" + + "\022PscInterfaceConfig\022#\n" + + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + + "\027PscAutoConnectionConfig\022\030\n" + + "\020consumer_project\030\001 \001(\t\022\030\n" + + "\020consumer_network\030\002 \001(\t\022\037\n\n" + + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + + "\006status\030\004 \001(\tB\003\340A\003\022$\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\264\002\n" + "\021PscInstanceConfig\022$\n" + "\027service_attachment_link\030\001 \001(\tB\003\340A\003\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" - + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\032\207\002\n" + + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022X\n" + + "\025psc_interface_configs\030\010" + + " \003(\01324.google.cloud.alloydb.v1.Instance.PscInterfaceConfigB\003\340A\001\022\\\n" + + "\024psc_auto_connections\030\t \003(\01329.google.clo" + + "ud.alloydb.v1.Instance.PscAutoConnectionConfigB\003\340A\001\032\207\002\n" + "\025InstanceNetworkConfig\022t\n" - + "\034authorized_external_networks\030\001 " - + "\003(\0132I.google.cloud.alloydb.v1.Instance.I" - + "nstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132I.go" + + "ogle.cloud.alloydb.v1.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0321\n" + "\021AuthorizedNetwork\022\034\n\n" @@ -535,15 +579,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tPROMOTING\020\t\"X\n" + "\014InstanceType\022\035\n" + "\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n" - + "\007PRIMARY\020\001\022\r\n" + + "\007PRIMARY\020\001\022\r" + + "\n" + "\tREAD_POOL\020\002\022\r\n" + "\tSECONDARY\020\003\"N\n" + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" + "\010REGIONAL\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Opr" - + "ojects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{" + + "project}/locations/{location}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\251\002\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -551,9 +596,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021public_ip_address\030\005 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projec" - + "ts/{project}/locations/{location}/clusters/{cluster}/instances/{instance}/connec" - + "tionInfo*\017connectionInfos2\016connectionInfo\"\304\014\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{proj" + + "ect}/locations/{location}/clusters/{clus" + + "ter}/instances/{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\304\014\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -571,17 +616,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\030\n" + "\013reconciling\030\013 \001(\010B\003\340A\003\022I\n" - + "\021encryption_config\030\014" - + " \001(\0132).google.cloud.alloydb.v1.EncryptionConfigB\003\340A\001\022E\n" + + "\021encryption_config\030\014 \001(\0132" + + ").google.cloud.alloydb.v1.EncryptionConfigB\003\340A\001\022E\n" + "\017encryption_info\030\r" + " \001(\0132\'.google.cloud.alloydb.v1.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022E\n" - + "\013annotations\030\020 \003(" - + "\01320.google.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n" + + "\013annotations\030\020 \003(\01320.goog" + + "le.cloud.alloydb.v1.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" - + "\017expiry_quantity\030\024 \001(\01323.go" - + "ogle.cloud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01323.google.clo" + + "ud.alloydb.v1.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022G\n" + "\020database_version\030\026" + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\003\340A\003\022B\n" @@ -610,13 +655,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations" - + "/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\371\006\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations/{locati" + + "on}/backups/{backup}*\007backups2\006backupR\001\001\"\374\010\n" + "\025SupportedDatabaseFlag\022`\n" - + "\023string_restrictions\030\007 \001(\0132A.google.cloud.a" - + "lloydb.v1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n" - + "\024integer_restrictions\030\010 \001" - + "(\0132B.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\014\n" + + "\023string_restrictions\030\007 \001(\0132A.google.cloud.alloydb.v" + + "1.SupportedDatabaseFlag.StringRestrictionsH\000\022b\n" + + "\024integer_restrictions\030\010 \001(\0132B.goo" + + "gle.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\030recommended_string_value\030\n" + + " \001(\tH\001\022@\n" + + "\031recommended_integer_value\030\013" + + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022L\n\n" + "value_type\030\003" @@ -624,7 +673,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027accepts_multiple_values\030\004 \001(\010\022G\n" + "\025supported_db_versions\030\005" + " \003(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022\033\n" - + "\023requires_db_restart\030\006 \001(\010\032,\n" + + "\023requires_db_restart\030\006 \001(\010\022C\n" + + "\005scope\030\t \001(\01624.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" @@ -635,30 +685,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006STRING\020\001\022\013\n" + "\007INTEGER\020\002\022\t\n" + "\005FLOAT\020\003\022\010\n" - + "\004NONE\020\004:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{proje" - + "ct}/locations/{location}/flags/{flag}*\026s" - + "upportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" - + "\014restrictions\"\372\002\n" + + "\004NONE\020\004\"A\n" + + "\005Scope\022\025\n" + + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + + "\010DATABASE\020\001\022\023\n" + + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}/locati" + + "ons/{location}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + "\014restrictionsB\023\n" + + "\021recommended_value\"\372\002\n" + "\004User\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\033\n" + "\016database_roles\030\004 \003(\tB\003\340A\001\022>\n" - + "\tuser_type\030\005 \001(\0162" - + "&.google.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005" + + " \001(\0162&.google.cloud.alloydb.v1.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" + "\010UserType\022\031\n" + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{location}/cluste" - + "rs/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{locat" + + "ion}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007charset\030\002 \001(\tB\003\340A\001\022\026\n" + "\tcollation\030\003 \001(\tB\003\340A\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{location}" - + "/clusters/{cluster}/databases/{database}*\tdatabases2\010databaseR\001\001*^\n" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations" + + "/{location}/clusters/{cluster}/databases/{database}*" + + "\tdatabases2\010databaseR\001\001*^\n" + "\014InstanceView\022\035\n" + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n" + "\023INSTANCE_VIEW_BASIC\020\001\022\026\n" @@ -677,15 +732,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\262\003\n" - + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001" - + "Z5cloud.google.com/go/alloydb/apiv1/allo" - + "ydbpb;alloydbpb\252\002\027Google.Cloud.AlloyDb.V" - + "1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{projec" - + "t}/locations/{location}/keyRings/{key_ri" - + "ng}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project" - + "}/global/networks/{network}b\006proto3" + + "\033com.google.cloud.alloydb.v1B\016ResourcesProtoP\001Z5cloud.google.com/go/alloydb" + + "/apiv1/alloydbpb;alloydbpb\252\002\027Google.Clou" + + "d.AlloyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Google::Cloud::AlloyDB::V1\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zproje" + + "cts/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/c" + + "ryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036compute.googleapis.com/Network\022,projec" + + "ts/{project}/global/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -694,6 +748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.alloydb.v1.CsqlResourcesProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), @@ -863,6 +918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BackupSource", "MigrationSource", + "CloudsqlBackupRunSource", "Name", "DisplayName", "Uid", @@ -926,7 +982,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Cluster_PscConfig_descriptor, new java.lang.String[] { - "PscEnabled", + "PscEnabled", "ServiceOwnedProjectNumber", }); internal_static_google_cloud_alloydb_v1_Cluster_TrialMetadata_descriptor = internal_static_google_cloud_alloydb_v1_Cluster_descriptor.getNestedTypes().get(4); @@ -982,6 +1038,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WritableNode", "Nodes", "QueryInsightsConfig", + "ObservabilityConfig", "ReadPoolConfig", "IpAddress", "PublicIpAddress", @@ -1000,7 +1057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_MachineConfig_descriptor, new java.lang.String[] { - "CpuCount", + "CpuCount", "MachineType", }); internal_static_google_cloud_alloydb_v1_Instance_Node_descriptor = internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(1); @@ -1021,8 +1078,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringLength", "QueryPlansPerMinute", }); - internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor = internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_ObservabilityInstanceConfig_descriptor, + new java.lang.String[] { + "Enabled", + "PreserveComments", + "TrackWaitEvents", + "TrackWaitEventTypes", + "MaxQueryStringLength", + "RecordApplicationTags", + "QueryPlansPerMinute", + "TrackActiveQueries", + }); + internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(4); internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ReadPoolConfig_descriptor, @@ -1030,23 +1102,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeCount", }); internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(5); internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_ClientConnectionConfig_descriptor, new java.lang.String[] { "RequireConnectors", "SslConfig", }); + internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_PscInterfaceConfig_descriptor, + new java.lang.String[] { + "NetworkAttachmentResource", + }); + internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor = + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_Instance_PscAutoConnectionConfig_descriptor, + new java.lang.String[] { + "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", + }); internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(8); internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_PscInstanceConfig_descriptor, new java.lang.String[] { - "ServiceAttachmentLink", "AllowedConsumerProjects", "PscDnsName", + "ServiceAttachmentLink", + "AllowedConsumerProjects", + "PscDnsName", + "PscInterfaceConfigs", + "PscAutoConnections", }); internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(9); internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_InstanceNetworkConfig_descriptor, @@ -1064,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(10); internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_LabelsEntry_descriptor, @@ -1072,7 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(11); internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_DatabaseFlagsEntry_descriptor, @@ -1080,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_alloydb_v1_Instance_descriptor.getNestedTypes().get(12); internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_Instance_AnnotationsEntry_descriptor, @@ -1165,13 +1257,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StringRestrictions", "IntegerRestrictions", + "RecommendedStringValue", + "RecommendedIntegerValue", "Name", "FlagName", "ValueType", "AcceptsMultipleValues", "SupportedDbVersions", "RequiresDbRestart", + "Scope", "Restrictions", + "RecommendedValue", }); internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_StringRestrictions_descriptor = internal_static_google_cloud_alloydb_v1_SupportedDatabaseFlag_descriptor @@ -1221,6 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.alloydb.v1.CsqlResourcesProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequest.java new file mode 100644 index 000000000000..2503e57afc0a --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequest.java @@ -0,0 +1,1548 @@ +/* + * 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/alloydb/v1/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Message for registering Restoring from CloudSQL resource.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.RestoreFromCloudSQLRequest} + */ +public final class RestoreFromCloudSQLRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) + RestoreFromCloudSQLRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RestoreFromCloudSQLRequest.newBuilder() to construct. + private RestoreFromCloudSQLRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreFromCloudSQLRequest() { + parent_ = ""; + clusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreFromCloudSQLRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.Builder.class); + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUDSQL_BACKUP_RUN_SOURCE(101), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 101: + return CLOUDSQL_BACKUP_RUN_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER = 101; + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.alloydb.v1.Cluster cluster_; + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster getCluster() { + return cluster_ == null ? com.google.cloud.alloydb.v1.Cluster.getDefaultInstance() : cluster_; + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { + return cluster_ == null ? com.google.cloud.alloydb.v1.Cluster.getDefaultInstance() : cluster_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCluster()); + } + if (sourceCase_ == 101) { + output.writeMessage(101, (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + } + if (sourceCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_); + } + 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.alloydb.v1.RestoreFromCloudSQLRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest other = + (com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 101: + if (!getCloudsqlBackupRunSource().equals(other.getCloudsqlBackupRunSource())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + switch (sourceCase_) { + case 101: + hash = (37 * hash) + CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudsqlBackupRunSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest 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.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest 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.alloydb.v1.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.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.alloydb.v1.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest 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.alloydb.v1.RestoreFromCloudSQLRequest 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 for registering Restoring from CloudSQL resource.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.RestoreFromCloudSQLRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudsqlBackupRunSourceBuilder_ != null) { + cloudsqlBackupRunSourceBuilder_.clear(); + } + parent_ = ""; + clusterId_ = ""; + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest build() { + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest buildPartial() { + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest result = + new com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 101 && cloudsqlBackupRunSourceBuilder_ != null) { + result.source_ = cloudsqlBackupRunSourceBuilder_.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.alloydb.v1.RestoreFromCloudSQLRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest other) { + if (other == com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + switch (other.getSourceCase()) { + case CLOUDSQL_BACKUP_RUN_SOURCE: + { + mergeCloudsqlBackupRunSource(other.getCloudsqlBackupRunSource()); + break; + } + case SOURCE_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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 810: + { + input.readMessage( + getCloudsqlBackupRunSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 101; + break; + } // case 810 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder> + cloudsqlBackupRunSourceBuilder_; + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } else { + if (sourceCase_ == 101) { + return cloudsqlBackupRunSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder builderForValue) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder mergeCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101 + && source_ + != com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.newBuilder( + (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 101) { + cloudsqlBackupRunSourceBuilder_.mergeFrom(value); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder clearCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + } + cloudsqlBackupRunSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder + getCloudsqlBackupRunSourceBuilder() { + return getCloudsqlBackupRunSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if ((sourceCase_ == 101) && (cloudsqlBackupRunSourceBuilder_ != null)) { + return cloudsqlBackupRunSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder> + getCloudsqlBackupRunSourceFieldBuilder() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (!(sourceCase_ == 101)) { + source_ = com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.getDefaultInstance(); + } + cloudsqlBackupRunSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder>( + (com.google.cloud.alloydb.v1.CloudSQLBackupRunSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 101; + onChanged(); + return cloudsqlBackupRunSourceBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Cluster, + com.google.cloud.alloydb.v1.Cluster.Builder, + com.google.cloud.alloydb.v1.ClusterOrBuilder> + clusterBuilder_; + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.cloud.alloydb.v1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.cloud.alloydb.v1.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + } else { + clusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.cloud.alloydb.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && cluster_ != null + && cluster_ != com.google.cloud.alloydb.v1.Cluster.getDefaultInstance()) { + getClusterBuilder().mergeFrom(value); + } else { + cluster_ = value; + } + } else { + clusterBuilder_.mergeFrom(value); + } + if (cluster_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + bitField0_ = (bitField0_ & ~0x00000008); + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1.Cluster.Builder getClusterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.cloud.alloydb.v1.Cluster.getDefaultInstance() + : cluster_; + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Cluster, + com.google.cloud.alloydb.v1.Cluster.Builder, + com.google.cloud.alloydb.v1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.Cluster, + com.google.cloud.alloydb.v1.Cluster.Builder, + com.google.cloud.alloydb.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + @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.alloydb.v1.RestoreFromCloudSQLRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) + private static final com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest(); + } + + public static com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreFromCloudSQLRequest 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.alloydb.v1.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequestOrBuilder.java new file mode 100644 index 000000000000..ee2299b39259 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/RestoreFromCloudSQLRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * 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/alloydb/v1/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface RestoreFromCloudSQLRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.RestoreFromCloudSQLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + boolean hasCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * @return The cloudsqlBackupRunSource. + */ + com.google.cloud.alloydb.v1.CloudSQLBackupRunSource getCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + */ + com.google.cloud.alloydb.v1.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.cloud.alloydb.v1.Cluster getCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * .google.cloud.alloydb.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1.ClusterOrBuilder getClusterOrBuilder(); + + com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest.SourceCase getSourceCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java index 2ae4a1f346d8..b746e1b02af5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ServiceProto.java @@ -52,6 +52,62 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_UpdateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ExportClusterResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_ImportClusterResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -192,6 +248,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1_ListUsersRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -283,7 +355,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " .google.cloud.alloydb.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\032\n\r" - + "allow_missing\030\005 \001(\010B\003\340A\001\"\250\001\n" + + "allow_missing\030\005 \001(\010B\003\340A\001\"\"\n" + + "\016GcsDestination\022\020\n" + + "\003uri\030\001 \001(\tB\003\340A\002\"\365\005\n" + + "\024ExportClusterRequest\022G\n" + + "\017gcs_destination\030\002" + + " \001(\0132\'.google.cloud.alloydb.v1.GcsDestinationB\003\340A\002H\000\022\\\n" + + "\022csv_export_options\030\004 \001(" + + "\0132>.google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptionsH\001\022\\\n" + + "\022sql_export_options\030\005 \001(\0132>.google.cloud.alloydb.v" + + "1.ExportClusterRequest.SqlExportOptionsH\001\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022\025\n" + + "\010database\030\003 \001(\tB\003\340A\002\032\210\001\n" + + "\020CsvExportOptions\022\031\n" + + "\014select_query\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017field_delimiter\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017quote_character\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020escape_character\030\004 \001(\tB\003\340A\001\032\336\001\n" + + "\020SqlExportOptions\022\023\n" + + "\006tables\030\001 \003(\tB\003\340A\001\022\035\n" + + "\013schema_only\030\002 \001(\010B\003\340A\001H\000\210\001\001\022&\n" + + "\024clean_target_objects\030\003 \001(\010B\003\340A\001H\001\210\001\001\022)\n" + + "\027if_exist_target_objects\030\004 \001(\010B\003\340A\001H\002\210\001\001B\016\n" + + "\014_schema_onlyB\027\n" + + "\025_clean_target_objectsB\032\n" + + "\030_if_exist_target_objectsB\r\n" + + "\013destinationB\020\n" + + "\016export_options\"o\n" + + "\025ExportClusterResponse\022G\n" + + "\017gcs_destination\030\002" + + " \001(\0132\'.google.cloud.alloydb.v1.GcsDestinationB\003\340A\002H\000B\r\n" + + "\013destination\"\210\004\n" + + "\024ImportClusterRequest\022\\\n" + + "\022sql_import_options\030\004 \001(" + + "\0132>.google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptionsH\000\022\\\n" + + "\022csv_import_options\030\007 \001(\0132>.google.cloud.alloydb.v" + + "1.ImportClusterRequest.CsvImportOptionsH\000\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022\024\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\002\022\025\n" + + "\010database\030\003 \001(\tB\003\340A\001\022\021\n" + + "\004user\030\005 \001(\tB\003\340A\001\032\022\n" + + "\020SqlImportOptions\032\227\001\n" + + "\020CsvImportOptions\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\002\022\024\n" + + "\007columns\030\002 \003(\tB\003\340A\001\022\034\n" + + "\017field_delimiter\030\003 \001(\tB\003\340A\001\022\034\n" + + "\017quote_character\030\004 \001(\tB\003\340A\001\022\035\n" + + "\020escape_character\030\005 \001(\tB\003\340A\001B\020\n" + + "\016import_options\"6\n" + + "\025ImportClusterResponse\022\035\n" + + "\020bytes_downloaded\030\001 \001(\003B\003\340A\002\"\335\001\n" + + "\025UpgradeClusterRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022>\n" + + "\007version\030\002" + + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersionB\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\021\n" + + "\004etag\030\005 \001(\tB\003\340A\001\"\332\n\n" + + "\026UpgradeClusterResponse\022F\n" + + "\006status\030\001 \001(\01626.goo" + + "gle.cloud.alloydb.v1.UpgradeClusterResponse.Status\022\017\n" + + "\007message\030\002 \001(\t\022f\n" + + "\027cluster_upgrade_details\030\003 \003(\0132E.google.cloud.allo" + + "ydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails\032\253\001\n" + + "\tStageInfo\022D\n" + + "\005stage\030\001 \001(\016" + + "25.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage\022F\n" + + "\006status\030\002 \001(\01626.google" + + ".cloud.alloydb.v1.UpgradeClusterResponse.Status\022\020\n" + + "\010logs_url\030\003 \001(\t\032\275\001\n" + + "\026InstanceUpgradeDetails\022\014\n" + + "\004name\030\001 \001(\t\022N\n" + + "\016upgrade_status\030\002" + + " \001(\01626.google.cloud.alloydb.v1.UpgradeClusterResponse.Status\022E\n\r" + + "instance_type\030\003" + + " \001(\0162..google.cloud.alloydb.v1.Instance.InstanceType\032\266\003\n" + + "\025ClusterUpgradeDetails\022\014\n" + + "\004name\030\001 \001(\t\022N\n" + + "\016upgrade_status\030\002 \001(" + + "\01626.google.cloud.alloydb.v1.UpgradeClusterResponse.Status\022B\n" + + "\014cluster_type\030\003 \001(\0162" + + ",.google.cloud.alloydb.v1.Cluster.ClusterType\022B\n" + + "\020database_version\030\004" + + " \001(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022M\n\n" + + "stage_info\030\005" + + " \003(\01329.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo\022h\n" + + "\030instance_upgrade_details\030\006 \003(\0132F.google.clou" + + "d.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails\"\227\001\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\017\n" + + "\013NOT_STARTED\020\004\022\017\n" + + "\013IN_PROGRESS\020\005\022\013\n" + + "\007SUCCESS\020\001\022\n\n" + + "\006FAILED\020\002\022\023\n" + + "\017PARTIAL_SUCCESS\020\003\022\026\n" + + "\022CANCEL_IN_PROGRESS\020\006\022\r\n" + + "\tCANCELLED\020\007\"\275\001\n" + + "\005Stage\022\025\n" + + "\021STAGE_UNSPECIFIED\020\000\022\024\n" + + "\020ALLOYDB_PRECHECK\020\001\022\024\n" + + "\020PG_UPGRADE_CHECK\020\002\022\027\n" + + "\023PREPARE_FOR_UPGRADE\020\005\022\034\n" + + "\030PRIMARY_INSTANCE_UPGRADE\020\003\022\037\n" + + "\033READ_POOL_INSTANCES_UPGRADE\020\004\022\014\n" + + "\010ROLLBACK\020\006\022\013\n" + + "\007CLEANUP\020\007\"\250\001\n" + "\024DeleteClusterRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\027\n\n" @@ -304,8 +483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\004 \001(\010B\003\340A\001\"\364\002\n" + "\025RestoreClusterRequest\022>\n\r" + "backup_source\030\004 \001(\0132%.google.cloud.alloydb.v1.BackupSourceH\000\022S\n" - + "\030continuous_backup_source\030\010" - + " \001(\0132/.google.cloud.alloydb.v1.ContinuousBackupSourceH\000\0226\n" + + "\030continuous_backup_source\030\010 \001(\0132/.google.clo" + + "ud.alloydb.v1.ContinuousBackupSourceH\000\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A" + " \022\036alloydb.googleapis.com/Cluster\022\027\n\n" + "cluster_id\030\002 \001(\tB\003\340A\002\0226\n" @@ -315,8 +494,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\006 \001(\010B\003\340A\001B\010\n" + "\006source\"\247\001\n" + "\024ListInstancesRequest\0227\n" - + "\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\026\n" + + "\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n\n" + "page_token\030\003 \001(\t\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -358,12 +537,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tinstances\030\001 \003(\0132!.google.cloud.alloydb.v1.Instance\"\215\002\n" + "\034BatchCreateInstancesMetadata\022\030\n" + "\020instance_targets\030\001 \003(\t\022f\n" - + "\021instance_statuses\030\002 \003(\0132K.google.cloud.alloy" - + "db.v1.BatchCreateInstancesMetadata.InstanceStatusesEntry\032k\n" + + "\021instance_statuses\030\002 \003(\0132K.google.cloud." + + "alloydb.v1.BatchCreateInstancesMetadata.InstanceStatusesEntry\032k\n" + "\025InstanceStatusesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002 \001(\01322.google.c" - + "loud.alloydb.v1.BatchCreateInstanceStatus:\0028\001\"\320\002\n" + + "\005value\030\002 \001(\01322.goo" + + "gle.cloud.alloydb.v1.BatchCreateInstanceStatus:\0028\001\"\320\002\n" + "\031BatchCreateInstanceStatus\022G\n" + "\005state\030\001" + " \001(\01628.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State\022\021\n" @@ -380,8 +559,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ROLLED_BACK\020\006\"\330\001\n" + "\025UpdateInstanceRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0228\n" - + "\010instance\030\002 \001" - + "(\0132!.google.cloud.alloydb.v1.InstanceB\003\340A\002\022\027\n\n" + + "\010instance\030\002" + + " \001(\0132!.google.cloud.alloydb.v1.InstanceB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\032\n\r" + "allow_missing\030\005 \001(\010B\003\340A\001\"\226\001\n" @@ -397,8 +576,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\"\206\002\n" + "\022InjectFaultRequest\022N\n\n" - + "fault_type\030\001" - + " \001(\01625.google.cloud.alloydb.v1.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + + "fault_type\030\001 \001(\01625.google.cloud.allo" + + "ydb.v1.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + "\004name\030\002 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" @@ -417,7 +596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010instance\030\001 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\025\n" + "\010database\030\002 \001(\tB\003\340A\002\022\021\n" - + "\004user\030\003 \001(\tB\003\340A\002\022\032\n\r" + + "\004user\030\003 \001(\tB\003\340A\001\022\032\n\r" + "sql_statement\030\004 \001(\tB\003\340A\002B\021\n" + "\017user_credential\"\214\001\n" + "\022ExecuteSqlResponse\0227\n" @@ -436,8 +615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PARTIAL\020\002\022\t\n" + "\005ERROR\020\003\"\224\001\n" + "\022ListBackupsRequest\0225\n" - + "\006parent\030\001 \001(\tB" - + "%\340A\002\372A\037\022\035alloydb.googleapis.com/Backup\022\021\n" + + "\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\022\035alloydb.googleapis.com/Backup\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\016\n" + "\006filter\030\004 \001(\t\022\020\n" @@ -469,12 +648,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035alloydb.googleapis.com/Backup\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\022\021\n" - + "\004etag\030\004 \001(\tB\003\340A\001\"\220\001\n" + + "\004etag\030\004 \001(\tB\003\340A\001\"\332\001\n" + "!ListSupportedDatabaseFlagsRequest\022D\n" + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,alloydb.googleapis.com/SupportedDatabaseFlag\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\217\001\n" + + "page_token\030\003 \001(\t\022H\n" + + "\005scope\030\006 \001" + + "(\01624.google.cloud.alloydb.v1.SupportedDatabaseFlag.ScopeB\003\340A\001\"\217\001\n" + "\"ListSupportedDatabaseFlagsResponse\022P\n" + "\030supported_database_flags\030\001" + " \003(\0132..google.cloud.alloydb.v1.SupportedDatabaseFlag\022\027\n" @@ -493,10 +674,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030GetConnectionInfoRequest\0227\n" + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\"\373\002\n" + + "request_id\030\002 \001(\tB\003\340A\001\"\321\003\n" + "\021OperationMetadata\022e\n" - + "\037batch_create_instances_metadata\030\010 \001(\01325.google." - + "cloud.alloydb.v1.BatchCreateInstancesMetadataB\003\340A\003H\000\0224\n" + + "\037batch_create_instances_metadata\030\010 \001(\01325.google.c" + + "loud.alloydb.v1.BatchCreateInstancesMetadataB\003\340A\003H\000\022T\n" + + "\026upgrade_cluster_status\030\n" + + " \001(\0132-.google.cloud.alloydb.v1.UpgradeClusterStatusB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" @@ -504,7 +687,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + "\013api_version\030\007 \001(\tB\003\340A\003B\022\n" - + "\020request_specific\"\244\001\n" + + "\020request_specific\"\331\006\n" + + "\024UpgradeClusterStatus\022E\n" + + "\005state\030\001 \001(\01626.goo" + + "gle.cloud.alloydb.v1.UpgradeClusterResponse.Status\022\023\n" + + "\013cancellable\030\002 \001(\010\022@\n" + + "\016source_version\030\003 \001(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022@\n" + + "\016target_version\030\004 \001(\0162(.google.cloud.alloydb.v1.DatabaseVersion\022I\n" + + "\006stages\030\005 \003(\01329.google.cloud.alloy" + + "db.v1.UpgradeClusterStatus.StageStatus\032\255\002\n" + + "\013StageStatus\022x\n" + + "\033read_pool_instances_upgrade\030\013 \001(\0132Q.google.cloud.alloydb.v1.Up" + + "gradeClusterStatus.ReadPoolInstancesUpgradeStageStatusH\000\022D\n" + + "\005stage\030\001 \001(\01625.google" + + ".cloud.alloydb.v1.UpgradeClusterResponse.Stage\022E\n" + + "\005state\030\002" + + " \001(\01626.google.cloud.alloydb.v1.UpgradeClusterResponse.StatusB\027\n" + + "\025stage_specific_status\032\345\001\n" + + "#ReadPoolInstancesUpgradeStageStatus\022n\n\r" + + "upgrade_stats\030\001 \001(\0132W.google.cloud.alloydb.v1.UpgradeC" + + "lusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats\032N\n" + + "\005Stats\022\023\n" + + "\013not_started\030\001 \001(\005\022\017\n" + + "\007ongoing\030\002 \001(\005\022\017\n" + + "\007success\030\003 \001(\005\022\016\n" + + "\006failed\030\004 \001(\005\"\244\001\n" + "\020ListUsersRequest\0223\n" + "\006parent\030\001 \001(" + "\tB#\340A\002\372A\035\022\033alloydb.googleapis.com/User\022\026\n" @@ -530,8 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0220\n" + "\004user\030\002 \001(\0132\035.google.cloud.alloydb.v1.UserB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" - + "validate_only\030\004 \001(\010B\003\340A\001\022\032\n" - + "\r" + + "validate_only\030\004 \001(\010B\003\340A\001\022\032\n\r" + "allow_missing\030\005 \001(\010B\003\340A\001\"{\n" + "\021DeleteUserRequest\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" @@ -546,23 +752,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\"f\n" + "\025ListDatabasesResponse\0224\n" + "\tdatabases\030\001 \003(\0132!.google.cloud.alloydb.v1.Database\022\027\n" - + "\017next_page_token\030\002 \001(\t2\3656\n" + + "\017next_page_token\030\002 \001(\t2\324<\n" + "\014AlloyDBAdmin\022\252\001\n" - + "\014ListClusters\022,.google.cloud.alloydb.v1.ListClustersR" - + "equest\032-.google.cloud.alloydb.v1.ListClu" - + "stersResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\227\001\n" - + "\n" - + "GetCluster\022*.google.cloud.alloydb.v1.GetClusterRequest\032 .google.cloud.alloydb.v" - + "1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\327\001\n\r" - + "CreateCluster\022-.google.cloud.alloydb.v1.Creat" - + "eClusterRequest\032\035.google.longrunning.Operation\"x\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332" - + "A\031parent,cluster,cluster_id\202\323\344\223\0027\",/v1/{" - + "parent=projects/*/locations/*}/clusters:\007cluster\022\331\001\n\r" - + "UpdateCluster\022-.google.clou" - + "d.alloydb.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"z\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\023cluster,update_mask\202" - + "\323\344\223\002?24/v1/{cluster.name=projects/*/locations/*/clusters/*}:\007cluster\022\307\001\n\r" + + "\014ListClusters\022,.google.cloud.alloydb.v1.ListClustersRequest\032-.google" + + ".cloud.alloydb.v1.ListClustersResponse\"=" + + "\332A\006parent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/clusters\022\227\001\n\n" + + "GetCluster\022*.google.cloud.alloydb.v1.GetClusterRequest\032" + + " .google.cloud.alloydb.v1.Cluster\";\332A\004n" + + "ame\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/clusters/*}\022\327\001\n\r" + + "CreateCluster\022-.goog" + + "le.cloud.alloydb.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"x\312A\034\n" + + "\007Cluster\022\021OperationMetadata\332A\031parent,cluste" + + "r,cluster_id\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/clusters:\007cluster\022\331\001\n\r" + + "UpdateCluster\022-.google.cloud.alloydb.v1.Up" + + "dateClusterRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Cluster\022\021OperationMetada" + + "ta\332A\023cluster,update_mask\202\323\344\223\002?24/v1/{clu" + + "ster.name=projects/*/locations/*/clusters/*}:\007cluster\022\221\002\n\r" + + "ExportCluster\022-.google" + + ".cloud.alloydb.v1.ExportClusterRequest\032\035.google.longrunning.Operation\"\261\001\312A*\n" + + "\025ExportClusterResponse\022\021OperationMetadata\332AC" + + "name,gcs_destination,database,csv_export" + + "_options,sql_export_options\202\323\344\223\0028\"3/v1/{" + + "name=projects/*/locations/*/clusters/*}:export:\001*\022\350\001\n\r" + + "ImportCluster\022-.google.clo" + + "ud.alloydb.v1.ImportClusterRequest\032\035.google.longrunning.Operation\"\210\001\312A*\n" + + "\025ImportClusterResponse\022\021OperationMetadata\332A\032name" + + ",gcs_uri,database,user\202\323\344\223\0028\"3/v1/{name=" + + "projects/*/locations/*/clusters/*}:import:\001*\022\335\001\n" + + "\016UpgradeCluster\022..google.cloud.a" + + "lloydb.v1.UpgradeClusterRequest\032\035.google.longrunning.Operation\"|\312A+\n" + + "\026UpgradeClusterResponse\022\021OperationMetadata\332A\014name,ve" + + "rsion\202\323\344\223\002924/v1/{name=projects/*/locations/*/clusters/*}:upgrade:\001*\022\307\001\n\r" + "DeleteCluster\022-.google.cloud.alloydb.v1.DeleteC" + "lusterRequest\032\035.google.longrunning.Operation\"h\312A*\n" + "\025google.protobuf.Empty\022\021Operat" @@ -591,105 +812,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013GetInstance\022+.google.cloud.alloydb.v1.G" + "etInstanceRequest\032!.google.cloud.alloydb" + ".v1.Instance\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=p" - + "rojects/*/locations/*/clusters/*/instances/*}\022\352\001\n" - + "\016CreateInstance\022..google.cloud." - + "alloydb.v1.CreateInstanceRequest\032\035.google.longrunning.Operation\"\210\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033parent,instance,ins" + + "rojects/*/locations/*/clusters/*/instanc", + "es/*}\022\352\001\n\016CreateInstance\022..google.cloud." + + "alloydb.v1.CreateInstanceRequest\032\035.googl" + + "e.longrunning.Operation\"\210\001\312A\035\n\010Instance\022" + + "\021OperationMetadata\332A\033parent,instance,ins" + "tance_id\202\323\344\223\002D\"8/v1/{parent=projects/*/l" - + "ocations/*/clusters/*}/instances:\010instance\022\214\002\n" - + "\027CreateSecondaryInstance\0227.google.cloud.alloydb.v1.CreateSecondaryInstance" - + "Request\032\035.google.longrunning.Operation\"\230\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033pare" + + "ocations/*/clusters/*}/instances:\010instan" + + "ce\022\214\002\n\027CreateSecondaryInstance\0227.google." + + "cloud.alloydb.v1.CreateSecondaryInstance" + + "Request\032\035.google.longrunning.Operation\"\230" + + "\001\312A\035\n\010Instance\022\021OperationMetadata\332A\033pare" + "nt,instance,instance_id\202\323\344\223\002T\"H/v1/{pare" - + "nt=projects/*/locations/*/clusters/*}/instances:createsecondary:\010instance\022\370\001\n" - + "\024BatchCreateInstances\0224.google.cloud.alloyd" - + "b.v1.BatchCreateInstancesRequest\032\035.google.longrunning.Operation\"\212\001\312A1\n" - + "\034BatchCreateInstancesResponse\022\021OperationMetadata\202\323" + + "nt=projects/*/locations/*/clusters/*}/in" + + "stances:createsecondary:\010instance\022\370\001\n\024Ba" + + "tchCreateInstances\0224.google.cloud.alloyd" + + "b.v1.BatchCreateInstancesRequest\032\035.googl" + + "e.longrunning.Operation\"\212\001\312A1\n\034BatchCrea" + + "teInstancesResponse\022\021OperationMetadata\202\323" + "\344\223\002P\"D/v1/{parent=projects/*/locations/*" - + "/clusters/*}/instances:batchCreate:\010requests\022\354\001\n" - + "\016UpdateInstance\022..google.cloud.a" - + "lloydb.v1.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\212\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\024instance,update_mask" + + "/clusters/*}/instances:batchCreate:\010requ" + + "ests\022\354\001\n\016UpdateInstance\022..google.cloud.a" + + "lloydb.v1.UpdateInstanceRequest\032\035.google" + + ".longrunning.Operation\"\212\001\312A\035\n\010Instance\022\021" + + "OperationMetadata\332A\024instance,update_mask" + "\202\323\344\223\002M2A/v1/{instance.name=projects/*/lo" - + "cations/*/clusters/*/instances/*}:\010instance\022\325\001\n" - + "\016DeleteInstance\022..google.cloud.al" - + "loydb.v1.DeleteInstanceRequest\032\035.google.longrunning.Operation\"t\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" - + ":*8/v1/{name=projects/*/locations/*/clusters/*/instances/*}\022\330\001\n" - + "\020FailoverInstance\0220.google.cloud.alloydb.v1.FailoverInsta" - + "nceRequest\032\035.google.longrunning.Operation\"s\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\004na" + + "cations/*/clusters/*/instances/*}:\010insta" + + "nce\022\325\001\n\016DeleteInstance\022..google.cloud.al" + + "loydb.v1.DeleteInstanceRequest\032\035.google." + + "longrunning.Operation\"t\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + ":*8/v1/{name=projects/*/locations/*/clus" + + "ters/*/instances/*}\022\330\001\n\020FailoverInstance" + + "\0220.google.cloud.alloydb.v1.FailoverInsta" + + "nceRequest\032\035.google.longrunning.Operatio" + + "n\"s\312A\035\n\010Instance\022\021OperationMetadata\332A\004na" + "me\202\323\344\223\002F\"A/v1/{name=projects/*/locations" - + "/*/clusters/*/instances/*}:failover:\001*\022\335\001\n" - + "\013InjectFault\022+.google.cloud.alloydb.v1" - + ".InjectFaultRequest\032\035.google.longrunning.Operation\"\201\001\312A\035\n" - + "\010Instance\022\021OperationMet" + + "/*/clusters/*/instances/*}:failover:\001*\022\335" + + "\001\n\013InjectFault\022+.google.cloud.alloydb.v1" + + ".InjectFaultRequest\032\035.google.longrunning" + + ".Operation\"\201\001\312A\035\n\010Instance\022\021OperationMet" + "adata\332A\017fault_type,name\202\323\344\223\002I\"D/v1/{name" - + "=projects/*/locations/*/clusters/*/instances/*}:injectFault:\001*\022\325\001\n" - + "\017RestartInstance\022/.google.cloud.alloydb.v1.RestartInst" - + "anceRequest\032\035.google.longrunning.Operation\"r\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\004n" + + "=projects/*/locations/*/clusters/*/insta" + + "nces/*}:injectFault:\001*\022\325\001\n\017RestartInstan" + + "ce\022/.google.cloud.alloydb.v1.RestartInst" + + "anceRequest\032\035.google.longrunning.Operati" + + "on\"r\312A\035\n\010Instance\022\021OperationMetadata\332A\004n" + "ame\202\323\344\223\002E\"@/v1/{name=projects/*/location" - + "s/*/clusters/*/instances/*}:restart:\001*\022\352\001\n\n" - + "ExecuteSql\022*.google.cloud.alloydb.v1.ExecuteSqlRequest\032+.google.cloud.alloydb" + + "s/*/clusters/*/instances/*}:restart:\001*\022\352" + + "\001\n\nExecuteSql\022*.google.cloud.alloydb.v1." + + "ExecuteSqlRequest\032+.google.cloud.alloydb" + ".v1.ExecuteSqlResponse\"\202\001\332A-instance,dat" + "abase,user,sql_statement,password\202\323\344\223\002L\"" - + "G/v1/{instance=projects/*/locations/*/clusters/*/instances/*}:executeSql:\001*\022\246\001\n" - + "\013ListBackups\022+.google.cloud.alloydb.v1.Li" + + "G/v1/{instance=projects/*/locations/*/cl" + + "usters/*/instances/*}:executeSql:\001*\022\246\001\n\013" + + "ListBackups\022+.google.cloud.alloydb.v1.Li" + "stBackupsRequest\032,.google.cloud.alloydb." + "v1.ListBackupsResponse\"<\332A\006parent\202\323\344\223\002-\022" - + "+/v1/{parent=projects/*/locations/*}/backups\022\223\001\n" - + "\tGetBackup\022).google.cloud.alloydb.v1.GetBackupRequest\032\037.google.cloud.all" - + "oydb.v1.Backup\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/backups/*}\022\320\001\n" - + "\014CreateBackup\022,.google.cloud.alloydb.v1.Cr" - + "eateBackupRequest\032\035.google.longrunning.Operation\"s\312A\033\n" - + "\006Backup\022\021OperationMetadata" + + "+/v1/{parent=projects/*/locations/*}/bac" + + "kups\022\223\001\n\tGetBackup\022).google.cloud.alloyd" + + "b.v1.GetBackupRequest\032\037.google.cloud.all" + + "oydb.v1.Backup\":\332A\004name\202\323\344\223\002-\022+/v1/{name" + + "=projects/*/locations/*/backups/*}\022\320\001\n\014C" + + "reateBackup\022,.google.cloud.alloydb.v1.Cr" + + "eateBackupRequest\032\035.google.longrunning.O" + + "peration\"s\312A\033\n\006Backup\022\021OperationMetadata" + "\332A\027parent,backup,backup_id\202\323\344\223\0025\"+/v1/{p" - + "arent=projects/*/locations/*}/backups:\006backup\022\322\001\n" - + "\014UpdateBackup\022,.google.cloud.al" - + "loydb.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" - + "\006Backup\022\021OperationMetadata\332A\022backup,update_mask\202\323\344\223\002<22" - + "/v1/{backup.name=projects/*/locations/*/backups/*}:\006backup\022\304\001\n" - + "\014DeleteBackup\022,.go" - + "ogle.cloud.alloydb.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"g\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/backups/*}\022\342\001\n" - + "\032ListSupportedDatabaseFlags\022:.google.cloud.alloydb.v1.ListS" - + "upportedDatabaseFlagsRequest\032;.google.cloud.alloydb.v1.ListSupportedDatabaseFlag" + + "arent=projects/*/locations/*}/backups:\006b" + + "ackup\022\322\001\n\014UpdateBackup\022,.google.cloud.al" + + "loydb.v1.UpdateBackupRequest\032\035.google.lo" + + "ngrunning.Operation\"u\312A\033\n\006Backup\022\021Operat" + + "ionMetadata\332A\022backup,update_mask\202\323\344\223\002<22" + + "/v1/{backup.name=projects/*/locations/*/" + + "backups/*}:\006backup\022\304\001\n\014DeleteBackup\022,.go" + + "ogle.cloud.alloydb.v1.DeleteBackupReques" + + "t\032\035.google.longrunning.Operation\"g\312A*\n\025g" + + "oogle.protobuf.Empty\022\021OperationMetadata\332" + + "A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locat" + + "ions/*/backups/*}\022\342\001\n\032ListSupportedDatab" + + "aseFlags\022:.google.cloud.alloydb.v1.ListS" + + "upportedDatabaseFlagsRequest\032;.google.cl" + + "oud.alloydb.v1.ListSupportedDatabaseFlag" + "sResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=" - + "projects/*/locations/*}/supportedDatabaseFlags\022\360\001\n" - + "\031GenerateClientCertificate\0229.google.cloud.alloydb.v1.GenerateClientCer" + + "projects/*/locations/*}/supportedDatabas" + + "eFlags\022\360\001\n\031GenerateClientCertificate\0229.g" + + "oogle.cloud.alloydb.v1.GenerateClientCer" + "tificateRequest\032:.google.cloud.alloydb.v" + "1.GenerateClientCertificateResponse\"\\\332A\006" + "parent\202\323\344\223\002M\"H/v1/{parent=projects/*/loc" - + "ations/*/clusters/*}:generateClientCertificate:\001*\022\313\001\n" - + "\021GetConnectionInfo\0221.google.cloud.alloydb.v1.GetConnectionInfoReque" + + "ations/*/clusters/*}:generateClientCerti" + + "ficate:\001*\022\313\001\n\021GetConnectionInfo\0221.google" + + ".cloud.alloydb.v1.GetConnectionInfoReque" + "st\032\'.google.cloud.alloydb.v1.ConnectionI" + "nfo\"Z\332A\006parent\202\323\344\223\002K\022I/v1/{parent=projec" - + "ts/*/locations/*/clusters/*/instances/*}/connectionInfo\022\251\001\n" - + "\tListUsers\022).google.cloud.alloydb.v1.ListUsersRequest\032*.googl" + + "ts/*/locations/*/clusters/*/instances/*}" + + "/connectionInfo\022\251\001\n\tListUsers\022).google.c" + + "loud.alloydb.v1.ListUsersRequest\032*.googl" + "e.cloud.alloydb.v1.ListUsersResponse\"E\332A" - + "\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*/clusters/*}/users\022\226\001\n" - + "\007GetUser\022\'.google.cloud.alloydb.v1.GetUserRequest" + + "\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/lo" + + "cations/*/clusters/*}/users\022\226\001\n\007GetUser\022" + + "\'.google.cloud.alloydb.v1.GetUserRequest" + "\032\035.google.cloud.alloydb.v1.User\"C\332A\004name" - + "\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/clusters/*/users/*}\022\261\001\n\n" - + "CreateUser\022*.google.cloud.alloydb.v1.CreateUserRequest\032" + + "\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*" + + "/clusters/*/users/*}\022\261\001\n\nCreateUser\022*.go" + + "ogle.cloud.alloydb.v1.CreateUserRequest\032" + "\035.google.cloud.alloydb.v1.User\"X\332A\023paren" + "t,user,user_id\202\323\344\223\002<\"4/v1/{parent=projec" - + "ts/*/locations/*/clusters/*}/users:\004user\022\263\001\n\n" - + "UpdateUser\022*.google.cloud.alloydb.v1.UpdateUserRequest\032\035.google.cloud.alloy" + + "ts/*/locations/*/clusters/*}/users:\004user" + + "\022\263\001\n\nUpdateUser\022*.google.cloud.alloydb.v" + + "1.UpdateUserRequest\032\035.google.cloud.alloy" + "db.v1.User\"Z\332A\020user,update_mask\202\323\344\223\002A29/" - + "v1/{user.name=projects/*/locations/*/clusters/*/users/*}:\004user\022\225\001\n\n" - + "DeleteUser\022*.google.cloud.alloydb.v1.DeleteUserReques" + + "v1/{user.name=projects/*/locations/*/clu" + + "sters/*/users/*}:\004user\022\225\001\n\nDeleteUser\022*." + + "google.cloud.alloydb.v1.DeleteUserReques" + "t\032\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026" - + "*4/v1/{name=projects/*/locations/*/clusters/*/users/*}\022\271\001\n\r" - + "ListDatabases\022-.google.cloud.alloydb.v1.ListDatabasesRequest\032" + + "*4/v1/{name=projects/*/locations/*/clust" + + "ers/*/users/*}\022\271\001\n\rListDatabases\022-.googl" + + "e.cloud.alloydb.v1.ListDatabasesRequest\032" + "..google.cloud.alloydb.v1.ListDatabasesR" + "esponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=pr" + "ojects/*/locations/*/clusters/*}/databas" + "es\032J\312A\026alloydb.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\265", - "\001\n\033com.google.cloud.alloydb.v1B\014ServiceP" + + "www.googleapis.com/auth/cloud-platformB\265" + + "\001\n\033com.google.cloud.alloydb.v1B\014ServiceP" + "rotoP\001Z5cloud.google.com/go/alloydb/apiv" + "1/alloydbpb;alloydbpb\252\002\027Google.Cloud.All" + "oyDb.V1\312\002\027Google\\Cloud\\AlloyDb\\V1\352\002\032Goog" @@ -761,8 +1006,149 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UpdateMask", "Cluster", "RequestId", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_descriptor = + internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_alloydb_v1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor, + new java.lang.String[] { + "GcsDestination", + "CsvExportOptions", + "SqlExportOptions", + "Name", + "Database", + "Destination", + "ExportOptions", + }); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor = + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_CsvExportOptions_descriptor, + new java.lang.String[] { + "SelectQuery", "FieldDelimiter", "QuoteCharacter", "EscapeCharacter", + }); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor = + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ExportClusterRequest_SqlExportOptions_descriptor, + new java.lang.String[] { + "Tables", "SchemaOnly", "CleanTargetObjects", "IfExistTargetObjects", + }); + internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_alloydb_v1_ExportClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ExportClusterResponse_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor, + new java.lang.String[] { + "SqlImportOptions", + "CsvImportOptions", + "Name", + "GcsUri", + "Database", + "User", + "ImportOptions", + }); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor = + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_SqlImportOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor = + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ImportClusterRequest_CsvImportOptions_descriptor, + new java.lang.String[] { + "Table", "Columns", "FieldDelimiter", "QuoteCharacter", "EscapeCharacter", + }); + internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_alloydb_v1_ImportClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_ImportClusterResponse_descriptor, + new java.lang.String[] { + "BytesDownloaded", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor, + new java.lang.String[] { + "Name", "Version", "RequestId", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor, + new java.lang.String[] { + "Status", "Message", "ClusterUpgradeDetails", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor, + new java.lang.String[] { + "Stage", "Status", "LogsUrl", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor, + new java.lang.String[] { + "Name", "UpgradeStatus", "InstanceType", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor, + new java.lang.String[] { + "Name", + "UpgradeStatus", + "ClusterType", + "DatabaseVersion", + "StageInfo", + "InstanceUpgradeDetails", + }); + internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_DeleteClusterRequest_descriptor, @@ -770,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", "Force", }); internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_SwitchoverClusterRequest_descriptor, @@ -778,7 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_PromoteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_alloydb_v1_PromoteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_PromoteClusterRequest_descriptor, @@ -786,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_RestoreClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_alloydb_v1_RestoreClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_RestoreClusterRequest_descriptor, @@ -801,7 +1187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", }); internal_static_google_cloud_alloydb_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_alloydb_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListInstancesRequest_descriptor, @@ -809,7 +1195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_alloydb_v1_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListInstancesResponse_descriptor, @@ -817,7 +1203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_alloydb_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GetInstanceRequest_descriptor, @@ -825,7 +1211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_alloydb_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_alloydb_v1_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_CreateInstanceRequest_descriptor, @@ -833,7 +1219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstanceId", "Instance", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_CreateSecondaryInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_alloydb_v1_CreateSecondaryInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_CreateSecondaryInstanceRequest_descriptor, @@ -841,7 +1227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstanceId", "Instance", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_CreateInstanceRequests_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_alloydb_v1_CreateInstanceRequests_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_CreateInstanceRequests_descriptor, @@ -849,7 +1235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateInstanceRequests", }); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_BatchCreateInstancesRequest_descriptor, @@ -857,7 +1243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", "RequestId", }); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_BatchCreateInstancesResponse_descriptor, @@ -865,7 +1251,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", }); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_alloydb_v1_BatchCreateInstancesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_BatchCreateInstancesMetadata_descriptor, @@ -883,7 +1269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1_BatchCreateInstanceStatus_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_alloydb_v1_BatchCreateInstanceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_BatchCreateInstanceStatus_descriptor, @@ -891,7 +1277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "ErrorMsg", "Error", "Type", }); internal_static_google_cloud_alloydb_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_alloydb_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_UpdateInstanceRequest_descriptor, @@ -899,7 +1285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Instance", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_alloydb_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_DeleteInstanceRequest_descriptor, @@ -907,7 +1293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_alloydb_v1_FailoverInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_FailoverInstanceRequest_descriptor, @@ -915,7 +1301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_InjectFaultRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_alloydb_v1_InjectFaultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_InjectFaultRequest_descriptor, @@ -923,7 +1309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FaultType", "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_RestartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_alloydb_v1_RestartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_RestartInstanceRequest_descriptor, @@ -931,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "NodeIds", }); internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ExecuteSqlRequest_descriptor, @@ -939,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Password", "Instance", "Database", "User", "SqlStatement", "UserCredential", }); internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ExecuteSqlResponse_descriptor, @@ -947,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlResults", "Metadata", }); internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ExecuteSqlMetadata_descriptor, @@ -955,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "PartialResult", "SqlStatementExecutionDuration", "Status", }); internal_static_google_cloud_alloydb_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_alloydb_v1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListBackupsRequest_descriptor, @@ -963,7 +1349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_alloydb_v1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListBackupsResponse_descriptor, @@ -971,7 +1357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_alloydb_v1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GetBackupRequest_descriptor, @@ -979,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_alloydb_v1_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_alloydb_v1_CreateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_CreateBackupRequest_descriptor, @@ -987,7 +1373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "BackupId", "Backup", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_alloydb_v1_UpdateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_UpdateBackupRequest_descriptor, @@ -995,7 +1381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Backup", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_alloydb_v1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_DeleteBackupRequest_descriptor, @@ -1003,15 +1389,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Scope", }); internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListSupportedDatabaseFlagsResponse_descriptor, @@ -1019,7 +1405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SupportedDatabaseFlags", "NextPageToken", }); internal_static_google_cloud_alloydb_v1_GenerateClientCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_alloydb_v1_GenerateClientCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GenerateClientCertificateRequest_descriptor, @@ -1027,7 +1413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RequestId", "CertDuration", "PublicKey", "UseMetadataExchange", }); internal_static_google_cloud_alloydb_v1_GenerateClientCertificateResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_alloydb_v1_GenerateClientCertificateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GenerateClientCertificateResponse_descriptor, @@ -1035,7 +1421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PemCertificateChain", "CaCert", }); internal_static_google_cloud_alloydb_v1_GetConnectionInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_alloydb_v1_GetConnectionInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GetConnectionInfoRequest_descriptor, @@ -1043,12 +1429,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RequestId", }); internal_static_google_cloud_alloydb_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_alloydb_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_OperationMetadata_descriptor, new java.lang.String[] { "BatchCreateInstancesMetadata", + "UpgradeClusterStatus", "CreateTime", "EndTime", "Target", @@ -1058,8 +1445,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", "RequestSpecific", }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor, + new java.lang.String[] { + "State", "Cancellable", "SourceVersion", "TargetVersion", "Stages", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor, + new java.lang.String[] { + "ReadPoolInstancesUpgrade", "Stage", "State", "StageSpecificStatus", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor, + new java.lang.String[] { + "UpgradeStats", + }); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor = + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor, + new java.lang.String[] { + "NotStarted", "Ongoing", "Success", "Failed", + }); internal_static_google_cloud_alloydb_v1_ListUsersRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_alloydb_v1_ListUsersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListUsersRequest_descriptor, @@ -1067,7 +1492,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1_ListUsersResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_alloydb_v1_ListUsersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListUsersResponse_descriptor, @@ -1075,7 +1500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Users", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1_GetUserRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_alloydb_v1_GetUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_GetUserRequest_descriptor, @@ -1083,7 +1508,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_alloydb_v1_CreateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_alloydb_v1_CreateUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_CreateUserRequest_descriptor, @@ -1091,7 +1516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "UserId", "User", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_UpdateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_alloydb_v1_UpdateUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_UpdateUserRequest_descriptor, @@ -1099,7 +1524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "User", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1_DeleteUserRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_alloydb_v1_DeleteUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_DeleteUserRequest_descriptor, @@ -1107,7 +1532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListDatabasesRequest_descriptor, @@ -1115,7 +1540,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1_ListDatabasesResponse_descriptor, @@ -1126,6 +1551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlag.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlag.java index 7cd9b1568505..5a479a55355b 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlag.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlag.java @@ -48,6 +48,7 @@ private SupportedDatabaseFlag() { flagName_ = ""; valueType_ = 0; supportedDbVersions_ = java.util.Collections.emptyList(); + scope_ = 0; } @java.lang.Override @@ -280,6 +281,167 @@ private ValueType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType) } + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + DATABASE(1), + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + CONNECTION_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + public static final int DATABASE_VALUE = 1; + + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + public static final int CONNECTION_POOL_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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return CONNECTION_POOL; + 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 Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1.SupportedDatabaseFlag.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope) + } + public interface StringRestrictionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions) @@ -2230,6 +2392,56 @@ public RestrictionsCase getRestrictionsCase() { return RestrictionsCase.forNumber(restrictionsCase_); } + private int recommendedValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object recommendedValue_; + + public enum RecommendedValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOMMENDED_STRING_VALUE(10), + RECOMMENDED_INTEGER_VALUE(11), + RECOMMENDEDVALUE_NOT_SET(0); + private final int value; + + private RecommendedValueCase(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 RecommendedValueCase valueOf(int value) { + return forNumber(value); + } + + public static RecommendedValueCase forNumber(int value) { + switch (value) { + case 10: + return RECOMMENDED_STRING_VALUE; + case 11: + return RECOMMENDED_INTEGER_VALUE; + case 0: + return RECOMMENDEDVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + public static final int STRING_RESTRICTIONS_FIELD_NUMBER = 7; /** @@ -2358,6 +2570,133 @@ public boolean hasIntegerRestrictions() { .getDefaultInstance(); } + public static final int RECOMMENDED_STRING_VALUE_FIELD_NUMBER = 10; + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.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 (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER = 11; + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2644,13 +2983,52 @@ public boolean getRequiresDbRestart() { return requiresDbRestart_; } - private byte memoizedIsInitialized = -1; + public static final int SCOPE_FIELD_NUMBER = 9; + private int scope_ = 0; + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.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; @@ -2691,6 +3069,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 8, (com.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, scope_); + } + if (recommendedValueCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + output.writeMessage(11, (com.google.protobuf.Int64Value) recommendedValue_); + } getUnknownFields().writeTo(output); } @@ -2743,6 +3131,18 @@ public int getSerializedSize() { (com.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); + } + if (recommendedValueCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Int64Value) recommendedValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2765,6 +3165,7 @@ public boolean equals(final java.lang.Object obj) { if (getAcceptsMultipleValues() != other.getAcceptsMultipleValues()) return false; if (!supportedDbVersions_.equals(other.supportedDbVersions_)) return false; if (getRequiresDbRestart() != other.getRequiresDbRestart()) return false; + if (scope_ != other.scope_) return false; if (!getRestrictionsCase().equals(other.getRestrictionsCase())) return false; switch (restrictionsCase_) { case 7: @@ -2776,6 +3177,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getRecommendedValueCase().equals(other.getRecommendedValueCase())) return false; + switch (recommendedValueCase_) { + case 10: + if (!getRecommendedStringValue().equals(other.getRecommendedStringValue())) return false; + break; + case 11: + if (!getRecommendedIntegerValue().equals(other.getRecommendedIntegerValue())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2801,6 +3213,8 @@ public int hashCode() { } hash = (37 * hash) + REQUIRES_DB_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiresDbRestart()); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; switch (restrictionsCase_) { case 7: hash = (37 * hash) + STRING_RESTRICTIONS_FIELD_NUMBER; @@ -2813,6 +3227,18 @@ public int hashCode() { case 0: default: } + switch (recommendedValueCase_) { + case 10: + hash = (37 * hash) + RECOMMENDED_STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedStringValue().hashCode(); + break; + case 11: + hash = (37 * hash) + RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedIntegerValue().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2963,15 +3389,21 @@ public Builder clear() { if (integerRestrictionsBuilder_ != null) { integerRestrictionsBuilder_.clear(); } + if (recommendedIntegerValueBuilder_ != null) { + recommendedIntegerValueBuilder_.clear(); + } name_ = ""; flagName_ = ""; valueType_ = 0; acceptsMultipleValues_ = false; supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); requiresDbRestart_ = false; + scope_ = 0; restrictionsCase_ = 0; restrictions_ = null; + recommendedValueCase_ = 0; + recommendedValue_ = null; return this; } @@ -3010,30 +3442,33 @@ public com.google.cloud.alloydb.v1.SupportedDatabaseFlag buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.alloydb.v1.SupportedDatabaseFlag result) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = java.util.Collections.unmodifiableList(supportedDbVersions_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } result.supportedDbVersions_ = supportedDbVersions_; } private void buildPartial0(com.google.cloud.alloydb.v1.SupportedDatabaseFlag result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.flagName_ = flagName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.valueType_ = valueType_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.acceptsMultipleValues_ = acceptsMultipleValues_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.requiresDbRestart_ = requiresDbRestart_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scope_ = scope_; + } } private void buildPartialOneofs(com.google.cloud.alloydb.v1.SupportedDatabaseFlag result) { @@ -3045,6 +3480,11 @@ private void buildPartialOneofs(com.google.cloud.alloydb.v1.SupportedDatabaseFla if (restrictionsCase_ == 8 && integerRestrictionsBuilder_ != null) { result.restrictions_ = integerRestrictionsBuilder_.build(); } + result.recommendedValueCase_ = recommendedValueCase_; + result.recommendedValue_ = this.recommendedValue_; + if (recommendedValueCase_ == 11 && recommendedIntegerValueBuilder_ != null) { + result.recommendedValue_ = recommendedIntegerValueBuilder_.build(); + } } @java.lang.Override @@ -3095,12 +3535,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.SupportedDatabaseFlag other return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getFlagName().isEmpty()) { flagName_ = other.flagName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (other.valueType_ != 0) { @@ -3112,7 +3552,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.SupportedDatabaseFlag other if (!other.supportedDbVersions_.isEmpty()) { if (supportedDbVersions_.isEmpty()) { supportedDbVersions_ = other.supportedDbVersions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSupportedDbVersionsIsMutable(); supportedDbVersions_.addAll(other.supportedDbVersions_); @@ -3122,6 +3562,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.SupportedDatabaseFlag other if (other.getRequiresDbRestart() != false) { setRequiresDbRestart(other.getRequiresDbRestart()); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } switch (other.getRestrictionsCase()) { case STRING_RESTRICTIONS: { @@ -3138,6 +3581,24 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1.SupportedDatabaseFlag other break; } } + switch (other.getRecommendedValueCase()) { + case RECOMMENDED_STRING_VALUE: + { + recommendedValueCase_ = 10; + recommendedValue_ = other.recommendedValue_; + onChanged(); + break; + } + case RECOMMENDED_INTEGER_VALUE: + { + mergeRecommendedIntegerValue(other.getRecommendedIntegerValue()); + break; + } + case RECOMMENDEDVALUE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3167,25 +3628,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { flagName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 24: { valueType_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 24 case 32: { acceptsMultipleValues_ = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 32 case 40: @@ -3210,7 +3671,7 @@ public Builder mergeFrom( case 48: { requiresDbRestart_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 48 case 58: @@ -3227,6 +3688,26 @@ public Builder mergeFrom( restrictionsCase_ = 8; break; } // case 66 + case 72: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + recommendedValueCase_ = 10; + recommendedValue_ = s; + break; + } // case 82 + case 90: + { + input.readMessage( + getRecommendedIntegerValueFieldBuilder().getBuilder(), extensionRegistry); + recommendedValueCase_ = 11; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3258,6 +3739,20 @@ public Builder clearRestrictions() { return this; } + private int recommendedValueCase_ = 0; + private java.lang.Object recommendedValue_; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + + public Builder clearRecommendedValue() { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3766,6 +4261,363 @@ public Builder clearIntegerRestrictions() { return integerRestrictionsBuilder_; } + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + @java.lang.Override + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return This builder for chaining. + */ + public Builder clearRecommendedStringValue() { + if (recommendedValueCase_ == 10) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The bytes for recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + recommendedIntegerValueBuilder_; + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } else { + if (recommendedValueCase_ == 11) { + return recommendedIntegerValueBuilder_.getMessage(); + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValue_ = value; + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedIntegerValueBuilder_ == null) { + recommendedValue_ = builderForValue.build(); + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(builderForValue.build()); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder mergeRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11 + && recommendedValue_ != com.google.protobuf.Int64Value.getDefaultInstance()) { + recommendedValue_ = + com.google.protobuf.Int64Value.newBuilder( + (com.google.protobuf.Int64Value) recommendedValue_) + .mergeFrom(value) + .buildPartial(); + } else { + recommendedValue_ = value; + } + onChanged(); + } else { + if (recommendedValueCase_ == 11) { + recommendedIntegerValueBuilder_.mergeFrom(value); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder clearRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + } else { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + } + recommendedIntegerValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedIntegerValueBuilder() { + return getRecommendedIntegerValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if ((recommendedValueCase_ == 11) && (recommendedIntegerValueBuilder_ != null)) { + return recommendedIntegerValueBuilder_.getMessageOrBuilder(); + } else { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + getRecommendedIntegerValueFieldBuilder() { + if (recommendedIntegerValueBuilder_ == null) { + if (!(recommendedValueCase_ == 11)) { + recommendedValue_ = com.google.protobuf.Int64Value.getDefaultInstance(); + } + recommendedIntegerValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder>( + (com.google.protobuf.Int64Value) recommendedValue_, + getParentForChildren(), + isClean()); + recommendedValue_ = null; + } + recommendedValueCase_ = 11; + onChanged(); + return recommendedIntegerValueBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -3837,7 +4689,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3857,7 +4709,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3882,7 +4734,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3955,7 +4807,7 @@ public Builder setFlagName(java.lang.String value) { throw new NullPointerException(); } flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3974,7 +4826,7 @@ public Builder setFlagName(java.lang.String value) { */ public Builder clearFlagName() { flagName_ = getDefaultInstance().getFlagName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3998,7 +4850,7 @@ public Builder setFlagNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4023,7 +4875,7 @@ public int getValueTypeValue() { */ public Builder setValueTypeValue(int value) { valueType_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4052,7 +4904,7 @@ public Builder setValueType(com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; valueType_ = value.getNumber(); onChanged(); return this; @@ -4064,7 +4916,7 @@ public Builder setValueType(com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Va * @return This builder for chaining. */ public Builder clearValueType() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); valueType_ = 0; onChanged(); return this; @@ -4105,7 +4957,7 @@ public boolean getAcceptsMultipleValues() { public Builder setAcceptsMultipleValues(boolean value) { acceptsMultipleValues_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4123,7 +4975,7 @@ public Builder setAcceptsMultipleValues(boolean value) { * @return This builder for chaining. */ public Builder clearAcceptsMultipleValues() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); acceptsMultipleValues_ = false; onChanged(); return this; @@ -4133,9 +4985,9 @@ public Builder clearAcceptsMultipleValues() { java.util.Collections.emptyList(); private void ensureSupportedDbVersionsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = new java.util.ArrayList(supportedDbVersions_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; } } @@ -4269,7 +5121,7 @@ public Builder addAllSupportedDbVersions( */ public Builder clearSupportedDbVersions() { supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4404,7 +5256,7 @@ public boolean getRequiresDbRestart() { public Builder setRequiresDbRestart(boolean value) { requiresDbRestart_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4424,12 +5276,109 @@ public Builder setRequiresDbRestart(boolean value) { * @return This builder for chaining. */ public Builder clearRequiresDbRestart() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); requiresDbRestart_ = false; onChanged(); return this; } + private int scope_ = 0; + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000400); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagOrBuilder.java index 0f4f3304291f..f289e7f12d09 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/SupportedDatabaseFlagOrBuilder.java @@ -112,6 +112,82 @@ public interface SupportedDatabaseFlagOrBuilder com.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder(); + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + boolean hasRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + java.lang.String getRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + com.google.protobuf.ByteString getRecommendedStringValueBytes(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + boolean hasRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + com.google.protobuf.Int64Value getRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder(); + /** * * @@ -281,5 +357,33 @@ public interface SupportedDatabaseFlagOrBuilder */ boolean getRequiresDbRestart(); + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope getScope(); + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase(); + + com.google.cloud.alloydb.v1.SupportedDatabaseFlag.RecommendedValueCase getRecommendedValueCase(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequest.java new file mode 100644 index 000000000000..2d898b02b078 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequest.java @@ -0,0 +1,1414 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Upgrades a cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterRequest} + */ +public final class UpgradeClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterRequest) + UpgradeClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpgradeClusterRequest.newBuilder() to construct. + private UpgradeClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeClusterRequest() { + name_ = ""; + version_ = 0; + requestId_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterRequest.class, + com.google.cloud.alloydb.v1.UpgradeClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 2; + private int version_ = 0; + + /** + * + * + *
+   * Required. The version the cluster is going to be upgraded to.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + + /** + * + * + *
+   * Required. The version the cluster is going to be upgraded to.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(version_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. The current etag of the Cluster.
+   * If an etag is provided and does not match the current etag of the Cluster,
+   * upgrade will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The current etag of the Cluster.
+   * If an etag is provided and does not match the current etag of the Cluster,
+   * upgrade will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (version_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (version_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1.UpgradeClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterRequest other = + (com.google.cloud.alloydb.v1.UpgradeClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (version_ != other.version_) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest 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.alloydb.v1.UpgradeClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest 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.alloydb.v1.UpgradeClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest 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.alloydb.v1.UpgradeClusterRequest 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; + } + + /** + * + * + *
+   * Upgrades a cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterRequest) + com.google.cloud.alloydb.v1.UpgradeClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterRequest.class, + com.google.cloud.alloydb.v1.UpgradeClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.UpgradeClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + version_ = 0; + requestId_ = ""; + validateOnly_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterRequest build() { + com.google.cloud.alloydb.v1.UpgradeClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterRequest buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterRequest result = + new com.google.cloud.alloydb.v1.UpgradeClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1.UpgradeClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + } + + @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.alloydb.v1.UpgradeClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1.UpgradeClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.UpgradeClusterRequest other) { + if (other == com.google.cloud.alloydb.v1.UpgradeClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.version_ != 0) { + setVersionValue(other.getVersionValue()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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 resource name of the cluster.
+     * 
+ * + * + * 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 resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int version_ = 0; + + /** + * + * + *
+     * Required. The version the cluster is going to be upgraded to.
+     * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + + /** + * + * + *
+     * Required. The version the cluster is going to be upgraded to.
+     * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The version the cluster is going to be upgraded to.
+     * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(version_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Required. The version the cluster is going to be upgraded to.
+     * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + version_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The version the cluster is going to be upgraded to.
+     * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server ignores the
+     * request if it has already been completed. The server guarantees that for at
+     * least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and
+     * the request times out. If you make the request again with the same request
+     * ID, the server can check if the original operation with the same request ID
+     * was received, and if so, ignores the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, performs request validation, for example, permission
+     * checks and any other type of validation, but does not actually execute the
+     * create request.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. The current etag of the Cluster.
+     * If an etag is provided and does not match the current etag of the Cluster,
+     * upgrade will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the Cluster.
+     * If an etag is provided and does not match the current etag of the Cluster,
+     * upgrade will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The current etag of the Cluster.
+     * If an etag is provided and does not match the current etag of the Cluster,
+     * upgrade will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the Cluster.
+     * If an etag is provided and does not match the current etag of the Cluster,
+     * upgrade will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The current etag of the Cluster.
+     * If an etag is provided and does not match the current etag of the Cluster,
+     * upgrade will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.UpgradeClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterRequest) + private static final com.google.cloud.alloydb.v1.UpgradeClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.UpgradeClusterRequest(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeClusterRequest 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.alloydb.v1.UpgradeClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequestOrBuilder.java new file mode 100644 index 000000000000..df5b881f3172 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterRequestOrBuilder.java @@ -0,0 +1,185 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface UpgradeClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The version the cluster is going to be upgraded to.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + + /** + * + * + *
+   * Required. The version the cluster is going to be upgraded to.
+   * 
+ * + * + * .google.cloud.alloydb.v1.DatabaseVersion version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + com.google.cloud.alloydb.v1.DatabaseVersion getVersion(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server ignores the
+   * request if it has already been completed. The server guarantees that for at
+   * least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and
+   * the request times out. If you make the request again with the same request
+   * ID, the server can check if the original operation with the same request ID
+   * was received, and if so, ignores the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set, performs request validation, for example, permission
+   * checks and any other type of validation, but does not actually execute the
+   * create request.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. The current etag of the Cluster.
+   * If an etag is provided and does not match the current etag of the Cluster,
+   * upgrade will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. The current etag of the Cluster.
+   * If an etag is provided and does not match the current etag of the Cluster,
+   * upgrade will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponse.java new file mode 100644 index 000000000000..1efbdb456b02 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponse.java @@ -0,0 +1,6643 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * UpgradeClusterResponse contains the response for upgrade cluster operation.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse} + */ +public final class UpgradeClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterResponse) + UpgradeClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpgradeClusterResponse.newBuilder() to construct. + private UpgradeClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeClusterResponse() { + status_ = 0; + message_ = ""; + clusterUpgradeDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Builder.class); + } + + /** + * + * + *
+   * Status of upgrade operation.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1.UpgradeClusterResponse.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified status.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * Not started.
+     * 
+ * + * NOT_STARTED = 4; + */ + NOT_STARTED(4), + /** + * + * + *
+     * In progress.
+     * 
+ * + * IN_PROGRESS = 5; + */ + IN_PROGRESS(5), + /** + * + * + *
+     * Operation succeeded.
+     * 
+ * + * SUCCESS = 1; + */ + SUCCESS(1), + /** + * + * + *
+     * Operation failed.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + /** + * + * + *
+     * Operation partially succeeded.
+     * 
+ * + * PARTIAL_SUCCESS = 3; + */ + PARTIAL_SUCCESS(3), + /** + * + * + *
+     * Cancel is in progress.
+     * 
+ * + * CANCEL_IN_PROGRESS = 6; + */ + CANCEL_IN_PROGRESS(6), + /** + * + * + *
+     * Cancellation complete.
+     * 
+ * + * CANCELLED = 7; + */ + CANCELLED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified status.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Not started.
+     * 
+ * + * NOT_STARTED = 4; + */ + public static final int NOT_STARTED_VALUE = 4; + + /** + * + * + *
+     * In progress.
+     * 
+ * + * IN_PROGRESS = 5; + */ + public static final int IN_PROGRESS_VALUE = 5; + + /** + * + * + *
+     * Operation succeeded.
+     * 
+ * + * SUCCESS = 1; + */ + public static final int SUCCESS_VALUE = 1; + + /** + * + * + *
+     * Operation failed.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + + /** + * + * + *
+     * Operation partially succeeded.
+     * 
+ * + * PARTIAL_SUCCESS = 3; + */ + public static final int PARTIAL_SUCCESS_VALUE = 3; + + /** + * + * + *
+     * Cancel is in progress.
+     * 
+ * + * CANCEL_IN_PROGRESS = 6; + */ + public static final int CANCEL_IN_PROGRESS_VALUE = 6; + + /** + * + * + *
+     * Cancellation complete.
+     * 
+ * + * CANCELLED = 7; + */ + public static final int CANCELLED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 4: + return NOT_STARTED; + case 5: + return IN_PROGRESS; + case 1: + return SUCCESS; + case 2: + return FAILED; + case 3: + return PARTIAL_SUCCESS; + case 6: + return CANCEL_IN_PROGRESS; + case 7: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1.UpgradeClusterResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.UpgradeClusterResponse.Status) + } + + /** + * + * + *
+   * Stage in the upgrade.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1.UpgradeClusterResponse.Stage} + */ + public enum Stage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified stage.
+     * 
+ * + * STAGE_UNSPECIFIED = 0; + */ + STAGE_UNSPECIFIED(0), + /** + * + * + *
+     * Pre-upgrade custom checks, not covered by pg_upgrade.
+     * 
+ * + * ALLOYDB_PRECHECK = 1; + */ + ALLOYDB_PRECHECK(1), + /** + * + * + *
+     * Pre-upgrade pg_upgrade checks.
+     * 
+ * + * PG_UPGRADE_CHECK = 2; + */ + PG_UPGRADE_CHECK(2), + /** + * + * + *
+     * Clone the original cluster.
+     * 
+ * + * PREPARE_FOR_UPGRADE = 5; + */ + PREPARE_FOR_UPGRADE(5), + /** + * + * + *
+     * Upgrade the primary instance(downtime).
+     * 
+ * + * PRIMARY_INSTANCE_UPGRADE = 3; + */ + PRIMARY_INSTANCE_UPGRADE(3), + /** + * + * + *
+     * This stage is read pool upgrade.
+     * 
+ * + * READ_POOL_INSTANCES_UPGRADE = 4; + */ + READ_POOL_INSTANCES_UPGRADE(4), + /** + * + * + *
+     * Rollback in case of critical failures.
+     * 
+ * + * ROLLBACK = 6; + */ + ROLLBACK(6), + /** + * + * + *
+     * Cleanup.
+     * 
+ * + * CLEANUP = 7; + */ + CLEANUP(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified stage.
+     * 
+ * + * STAGE_UNSPECIFIED = 0; + */ + public static final int STAGE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Pre-upgrade custom checks, not covered by pg_upgrade.
+     * 
+ * + * ALLOYDB_PRECHECK = 1; + */ + public static final int ALLOYDB_PRECHECK_VALUE = 1; + + /** + * + * + *
+     * Pre-upgrade pg_upgrade checks.
+     * 
+ * + * PG_UPGRADE_CHECK = 2; + */ + public static final int PG_UPGRADE_CHECK_VALUE = 2; + + /** + * + * + *
+     * Clone the original cluster.
+     * 
+ * + * PREPARE_FOR_UPGRADE = 5; + */ + public static final int PREPARE_FOR_UPGRADE_VALUE = 5; + + /** + * + * + *
+     * Upgrade the primary instance(downtime).
+     * 
+ * + * PRIMARY_INSTANCE_UPGRADE = 3; + */ + public static final int PRIMARY_INSTANCE_UPGRADE_VALUE = 3; + + /** + * + * + *
+     * This stage is read pool upgrade.
+     * 
+ * + * READ_POOL_INSTANCES_UPGRADE = 4; + */ + public static final int READ_POOL_INSTANCES_UPGRADE_VALUE = 4; + + /** + * + * + *
+     * Rollback in case of critical failures.
+     * 
+ * + * ROLLBACK = 6; + */ + public static final int ROLLBACK_VALUE = 6; + + /** + * + * + *
+     * Cleanup.
+     * 
+ * + * CLEANUP = 7; + */ + public static final int CLEANUP_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Stage 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 Stage forNumber(int value) { + switch (value) { + case 0: + return STAGE_UNSPECIFIED; + case 1: + return ALLOYDB_PRECHECK; + case 2: + return PG_UPGRADE_CHECK; + case 5: + return PREPARE_FOR_UPGRADE; + case 3: + return PRIMARY_INSTANCE_UPGRADE; + case 4: + return READ_POOL_INSTANCES_UPGRADE; + case 6: + return ROLLBACK; + case 7: + return CLEANUP; + 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 Stage findValueByNumber(int number) { + return Stage.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.alloydb.v1.UpgradeClusterResponse.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Stage[] VALUES = values(); + + public static Stage 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 Stage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1.UpgradeClusterResponse.Stage) + } + + public interface StageInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + int getStageValue(); + + /** + * + * + *
+     * The stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage(); + + /** + * + * + *
+     * Status of the stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+     * Status of the stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The status. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus(); + + /** + * + * + *
+     * logs_url is the URL for the logs associated with a stage if that stage
+     * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+     * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+     * 
+ * + * string logs_url = 3; + * + * @return The logsUrl. + */ + java.lang.String getLogsUrl(); + + /** + * + * + *
+     * logs_url is the URL for the logs associated with a stage if that stage
+     * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+     * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+     * 
+ * + * string logs_url = 3; + * + * @return The bytes for logsUrl. + */ + com.google.protobuf.ByteString getLogsUrlBytes(); + } + + /** + * + * + *
+   * Stage information for different stages in the upgrade process.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo} + */ + public static final class StageInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) + StageInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StageInfo.newBuilder() to construct. + private StageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StageInfo() { + stage_ = 0; + status_ = 0; + logsUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StageInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder.class); + } + + public static final int STAGE_FIELD_NUMBER = 1; + private int stage_ = 0; + + /** + * + * + *
+     * The stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override + public int getStageValue() { + return stage_; + } + + /** + * + * + *
+     * The stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.forNumber(stage_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.UNRECOGNIZED + : result; + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_ = 0; + + /** + * + * + *
+     * Status of the stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Status of the stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + public static final int LOGS_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object logsUrl_ = ""; + + /** + * + * + *
+     * logs_url is the URL for the logs associated with a stage if that stage
+     * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+     * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+     * 
+ * + * string logs_url = 3; + * + * @return The logsUrl. + */ + @java.lang.Override + public java.lang.String getLogsUrl() { + java.lang.Object ref = logsUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logsUrl_ = s; + return s; + } + } + + /** + * + * + *
+     * logs_url is the URL for the logs associated with a stage if that stage
+     * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+     * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+     * 
+ * + * string logs_url = 3; + * + * @return The bytes for logsUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogsUrlBytes() { + java.lang.Object ref = logsUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logsUrl_ = 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 (stage_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.STAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, stage_); + } + if (status_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, logsUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stage_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.STAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, stage_); + } + if (status_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logsUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, logsUrl_); + } + 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.alloydb.v1.UpgradeClusterResponse.StageInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo other = + (com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) obj; + + if (stage_ != other.stage_) return false; + if (status_ != other.status_) return false; + if (!getLogsUrl().equals(other.getLogsUrl())) 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) + STAGE_FIELD_NUMBER; + hash = (53 * hash) + stage_; + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + LOGS_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogsUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo 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.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo 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.alloydb.v1.UpgradeClusterResponse.StageInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterResponse.StageInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo 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.alloydb.v1.UpgradeClusterResponse.StageInfo 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; + } + + /** + * + * + *
+     * Stage information for different stages in the upgrade process.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stage_ = 0; + status_ = 0; + logsUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_StageInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo build() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo result = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stage_ = stage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logsUrl_ = logsUrl_; + } + } + + @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.alloydb.v1.UpgradeClusterResponse.StageInfo) { + return mergeFrom((com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.getDefaultInstance()) + return this; + if (other.stage_ != 0) { + setStageValue(other.getStageValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getLogsUrl().isEmpty()) { + logsUrl_ = other.logsUrl_; + 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 8: + { + stage_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + logsUrl_ = 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 int stage_ = 0; + + /** + * + * + *
+       * The stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override + public int getStageValue() { + return stage_; + } + + /** + * + * + *
+       * The stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @param value The enum numeric value on the wire for stage to set. + * @return This builder for chaining. + */ + public Builder setStageValue(int value) { + stage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.forNumber(stage_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * The stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @param value The stage to set. + * @return This builder for chaining. + */ + public Builder setStage(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + stage_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * The stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return This builder for chaining. + */ + public Builder clearStage() { + bitField0_ = (bitField0_ & ~0x00000001); + stage_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
+       * Status of the stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+       * Status of the stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Status of the stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Status of the stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Status of the stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object logsUrl_ = ""; + + /** + * + * + *
+       * logs_url is the URL for the logs associated with a stage if that stage
+       * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+       * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+       * 
+ * + * string logs_url = 3; + * + * @return The logsUrl. + */ + public java.lang.String getLogsUrl() { + java.lang.Object ref = logsUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logsUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * logs_url is the URL for the logs associated with a stage if that stage
+       * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+       * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+       * 
+ * + * string logs_url = 3; + * + * @return The bytes for logsUrl. + */ + public com.google.protobuf.ByteString getLogsUrlBytes() { + java.lang.Object ref = logsUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logsUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * logs_url is the URL for the logs associated with a stage if that stage
+       * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+       * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+       * 
+ * + * string logs_url = 3; + * + * @param value The logsUrl to set. + * @return This builder for chaining. + */ + public Builder setLogsUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logsUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * logs_url is the URL for the logs associated with a stage if that stage
+       * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+       * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+       * 
+ * + * string logs_url = 3; + * + * @return This builder for chaining. + */ + public Builder clearLogsUrl() { + logsUrl_ = getDefaultInstance().getLogsUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * logs_url is the URL for the logs associated with a stage if that stage
+       * has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK,
+       * PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE.
+       * 
+ * + * string logs_url = 3; + * + * @param value The bytes for logsUrl to set. + * @return This builder for chaining. + */ + public Builder setLogsUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logsUrl_ = 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.alloydb.v1.UpgradeClusterResponse.StageInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo) + private static final com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StageInfo 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.alloydb.v1.UpgradeClusterResponse.StageInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InstanceUpgradeDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Normalized name of the instance.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Normalized name of the instance.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Upgrade status of the instance.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + int getUpgradeStatusValue(); + + /** + * + * + *
+     * Upgrade status of the instance.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus(); + + /** + * + * + *
+     * Instance type.
+     * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The enum numeric value on the wire for instanceType. + */ + int getInstanceTypeValue(); + + /** + * + * + *
+     * Instance type.
+     * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The instanceType. + */ + com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType(); + } + + /** + * + * + *
+   * Details regarding the upgrade of instaces associated with a cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails} + */ + public static final class InstanceUpgradeDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) + InstanceUpgradeDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use InstanceUpgradeDetails.newBuilder() to construct. + private InstanceUpgradeDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InstanceUpgradeDetails() { + name_ = ""; + upgradeStatus_ = 0; + instanceType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InstanceUpgradeDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Normalized name of the instance.
+     * 
+ * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
+     * Normalized name of the instance.
+     * 
+ * + * string name = 1; + * + * @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 UPGRADE_STATUS_FIELD_NUMBER = 2; + private int upgradeStatus_ = 0; + + /** + * + * + *
+     * Upgrade status of the instance.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + @java.lang.Override + public int getUpgradeStatusValue() { + return upgradeStatus_; + } + + /** + * + * + *
+     * Upgrade status of the instance.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(upgradeStatus_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + public static final int INSTANCE_TYPE_FIELD_NUMBER = 3; + private int instanceType_ = 0; + + /** + * + * + *
+     * Instance type.
+     * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The enum numeric value on the wire for instanceType. + */ + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; + } + + /** + * + * + *
+     * Instance type.
+     * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The instanceType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1.Instance.InstanceType result = + com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (upgradeStatus_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, upgradeStatus_); + } + if (instanceType_ + != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, instanceType_); + } + 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 (upgradeStatus_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, upgradeStatus_); + } + if (instanceType_ + != com.google.cloud.alloydb.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, instanceType_); + } + 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails other = + (com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) obj; + + if (!getName().equals(other.getName())) return false; + if (upgradeStatus_ != other.upgradeStatus_) return false; + if (instanceType_ != other.instanceType_) 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) + UPGRADE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + upgradeStatus_; + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + instanceType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails 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 regarding the upgrade of instaces associated with a cluster.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + upgradeStatus_ = 0; + instanceType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_InstanceUpgradeDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails build() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails result = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.upgradeStatus_ = upgradeStatus_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.instanceType_ = instanceType_; + } + } + + @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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) { + return mergeFrom( + (com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.upgradeStatus_ != 0) { + setUpgradeStatusValue(other.getUpgradeStatusValue()); + } + if (other.instanceType_ != 0) { + setInstanceTypeValue(other.getInstanceTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + upgradeStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + instanceType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * Normalized name of the instance.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Normalized name of the instance.
+       * 
+ * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
+       * Normalized name of the instance.
+       * 
+ * + * string name = 1; + * + * @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; + } + + /** + * + * + *
+       * Normalized name of the instance.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Normalized name of the instance.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int upgradeStatus_ = 0; + + /** + * + * + *
+       * Upgrade status of the instance.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + @java.lang.Override + public int getUpgradeStatusValue() { + return upgradeStatus_; + } + + /** + * + * + *
+       * Upgrade status of the instance.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @param value The enum numeric value on the wire for upgradeStatus to set. + * @return This builder for chaining. + */ + public Builder setUpgradeStatusValue(int value) { + upgradeStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade status of the instance.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(upgradeStatus_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Upgrade status of the instance.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @param value The upgradeStatus to set. + * @return This builder for chaining. + */ + public Builder setUpgradeStatus( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + upgradeStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade status of the instance.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return This builder for chaining. + */ + public Builder clearUpgradeStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + upgradeStatus_ = 0; + onChanged(); + return this; + } + + private int instanceType_ = 0; + + /** + * + * + *
+       * Instance type.
+       * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The enum numeric value on the wire for instanceType. + */ + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; + } + + /** + * + * + *
+       * Instance type.
+       * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @param value The enum numeric value on the wire for instanceType to set. + * @return This builder for chaining. + */ + public Builder setInstanceTypeValue(int value) { + instanceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Instance type.
+       * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return The instanceType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Instance.InstanceType getInstanceType() { + com.google.cloud.alloydb.v1.Instance.InstanceType result = + com.google.cloud.alloydb.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.cloud.alloydb.v1.Instance.InstanceType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Instance type.
+       * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @param value The instanceType to set. + * @return This builder for chaining. + */ + public Builder setInstanceType(com.google.cloud.alloydb.v1.Instance.InstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + instanceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Instance type.
+       * 
+ * + * .google.cloud.alloydb.v1.Instance.InstanceType instance_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearInstanceType() { + bitField0_ = (bitField0_ & ~0x00000004); + instanceType_ = 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails) + private static final com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceUpgradeDetails 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.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ClusterUpgradeDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Normalized name of the cluster
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Normalized name of the cluster
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * Upgrade status of the cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + int getUpgradeStatusValue(); + + /** + * + * + *
+     * Upgrade status of the cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus(); + + /** + * + * + *
+     * Cluster type which can either be primary or secondary.
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The enum numeric value on the wire for clusterType. + */ + int getClusterTypeValue(); + + /** + * + * + *
+     * Cluster type which can either be primary or secondary.
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The clusterType. + */ + com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType(); + + /** + * + * + *
+     * Database version of the cluster after the upgrade operation. This will be
+     * the target version if the upgrade was successful otherwise it remains the
+     * same as that before the upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The enum numeric value on the wire for databaseVersion. + */ + int getDatabaseVersionValue(); + + /** + * + * + *
+     * Database version of the cluster after the upgrade operation. This will be
+     * the target version if the upgrade was successful otherwise it remains the
+     * same as that before the upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The databaseVersion. + */ + com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion(); + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + java.util.List getStageInfoList(); + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo getStageInfo(int index); + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + int getStageInfoCount(); + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + java.util.List + getStageInfoOrBuilderList(); + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder getStageInfoOrBuilder( + int index); + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + java.util.List + getInstanceUpgradeDetailsList(); + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getInstanceUpgradeDetails(int index); + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + int getInstanceUpgradeDetailsCount(); + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder> + getInstanceUpgradeDetailsOrBuilderList(); + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder + getInstanceUpgradeDetailsOrBuilder(int index); + } + + /** + * + * + *
+   * Upgrade details of a cluster. This cluster can be primary or secondary.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails} + */ + public static final class ClusterUpgradeDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) + ClusterUpgradeDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ClusterUpgradeDetails.newBuilder() to construct. + private ClusterUpgradeDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterUpgradeDetails() { + name_ = ""; + upgradeStatus_ = 0; + clusterType_ = 0; + databaseVersion_ = 0; + stageInfo_ = java.util.Collections.emptyList(); + instanceUpgradeDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterUpgradeDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Normalized name of the cluster
+     * 
+ * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
+     * Normalized name of the cluster
+     * 
+ * + * string name = 1; + * + * @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 UPGRADE_STATUS_FIELD_NUMBER = 2; + private int upgradeStatus_ = 0; + + /** + * + * + *
+     * Upgrade status of the cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + @java.lang.Override + public int getUpgradeStatusValue() { + return upgradeStatus_; + } + + /** + * + * + *
+     * Upgrade status of the cluster.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(upgradeStatus_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + public static final int CLUSTER_TYPE_FIELD_NUMBER = 3; + private int clusterType_ = 0; + + /** + * + * + *
+     * Cluster type which can either be primary or secondary.
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
+     * Cluster type which can either be primary or secondary.
+     * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { + com.google.cloud.alloydb.v1.Cluster.ClusterType result = + com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); + return result == null ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED : result; + } + + public static final int DATABASE_VERSION_FIELD_NUMBER = 4; + private int databaseVersion_ = 0; + + /** + * + * + *
+     * Database version of the cluster after the upgrade operation. This will be
+     * the target version if the upgrade was successful otherwise it remains the
+     * same as that before the upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The enum numeric value on the wire for databaseVersion. + */ + @java.lang.Override + public int getDatabaseVersionValue() { + return databaseVersion_; + } + + /** + * + * + *
+     * Database version of the cluster after the upgrade operation. This will be
+     * the target version if the upgrade was successful otherwise it remains the
+     * same as that before the upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The databaseVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + public static final int STAGE_INFO_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List stageInfo_; + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + @java.lang.Override + public java.util.List + getStageInfoList() { + return stageInfo_; + } + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder> + getStageInfoOrBuilderList() { + return stageInfo_; + } + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + @java.lang.Override + public int getStageInfoCount() { + return stageInfo_.size(); + } + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo getStageInfo(int index) { + return stageInfo_.get(index); + } + + /** + * + * + *
+     * Array containing stage info associated with this cluster.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder + getStageInfoOrBuilder(int index) { + return stageInfo_.get(index); + } + + public static final int INSTANCE_UPGRADE_DETAILS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails> + instanceUpgradeDetails_; + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + @java.lang.Override + public java.util.List + getInstanceUpgradeDetailsList() { + return instanceUpgradeDetails_; + } + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder> + getInstanceUpgradeDetailsOrBuilderList() { + return instanceUpgradeDetails_; + } + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + @java.lang.Override + public int getInstanceUpgradeDetailsCount() { + return instanceUpgradeDetails_.size(); + } + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getInstanceUpgradeDetails(int index) { + return instanceUpgradeDetails_.get(index); + } + + /** + * + * + *
+     * Upgrade details of the instances directly associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder + getInstanceUpgradeDetailsOrBuilder(int index) { + return instanceUpgradeDetails_.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 (upgradeStatus_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, upgradeStatus_); + } + if (clusterType_ + != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, clusterType_); + } + if (databaseVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(4, databaseVersion_); + } + for (int i = 0; i < stageInfo_.size(); i++) { + output.writeMessage(5, stageInfo_.get(i)); + } + for (int i = 0; i < instanceUpgradeDetails_.size(); i++) { + output.writeMessage(6, instanceUpgradeDetails_.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 (upgradeStatus_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, upgradeStatus_); + } + if (clusterType_ + != com.google.cloud.alloydb.v1.Cluster.ClusterType.CLUSTER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, clusterType_); + } + if (databaseVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, databaseVersion_); + } + for (int i = 0; i < stageInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, stageInfo_.get(i)); + } + for (int i = 0; i < instanceUpgradeDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, instanceUpgradeDetails_.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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails other = + (com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) obj; + + if (!getName().equals(other.getName())) return false; + if (upgradeStatus_ != other.upgradeStatus_) return false; + if (clusterType_ != other.clusterType_) return false; + if (databaseVersion_ != other.databaseVersion_) return false; + if (!getStageInfoList().equals(other.getStageInfoList())) return false; + if (!getInstanceUpgradeDetailsList().equals(other.getInstanceUpgradeDetailsList())) + 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) + UPGRADE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + upgradeStatus_; + hash = (37 * hash) + CLUSTER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clusterType_; + hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + databaseVersion_; + if (getStageInfoCount() > 0) { + hash = (37 * hash) + STAGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStageInfoList().hashCode(); + } + if (getInstanceUpgradeDetailsCount() > 0) { + hash = (37 * hash) + INSTANCE_UPGRADE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceUpgradeDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + 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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails 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; + } + + /** + * + * + *
+     * Upgrade details of a cluster. This cluster can be primary or secondary.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + upgradeStatus_ = 0; + clusterType_ = 0; + databaseVersion_ = 0; + if (stageInfoBuilder_ == null) { + stageInfo_ = java.util.Collections.emptyList(); + } else { + stageInfo_ = null; + stageInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (instanceUpgradeDetailsBuilder_ == null) { + instanceUpgradeDetails_ = java.util.Collections.emptyList(); + } else { + instanceUpgradeDetails_ = null; + instanceUpgradeDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_ClusterUpgradeDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails build() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails result = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails result) { + if (stageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + stageInfo_ = java.util.Collections.unmodifiableList(stageInfo_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.stageInfo_ = stageInfo_; + } else { + result.stageInfo_ = stageInfoBuilder_.build(); + } + if (instanceUpgradeDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + instanceUpgradeDetails_ = + java.util.Collections.unmodifiableList(instanceUpgradeDetails_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.instanceUpgradeDetails_ = instanceUpgradeDetails_; + } else { + result.instanceUpgradeDetails_ = instanceUpgradeDetailsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.upgradeStatus_ = upgradeStatus_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterType_ = clusterType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.databaseVersion_ = databaseVersion_; + } + } + + @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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) { + return mergeFrom( + (com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.upgradeStatus_ != 0) { + setUpgradeStatusValue(other.getUpgradeStatusValue()); + } + if (other.clusterType_ != 0) { + setClusterTypeValue(other.getClusterTypeValue()); + } + if (other.databaseVersion_ != 0) { + setDatabaseVersionValue(other.getDatabaseVersionValue()); + } + if (stageInfoBuilder_ == null) { + if (!other.stageInfo_.isEmpty()) { + if (stageInfo_.isEmpty()) { + stageInfo_ = other.stageInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureStageInfoIsMutable(); + stageInfo_.addAll(other.stageInfo_); + } + onChanged(); + } + } else { + if (!other.stageInfo_.isEmpty()) { + if (stageInfoBuilder_.isEmpty()) { + stageInfoBuilder_.dispose(); + stageInfoBuilder_ = null; + stageInfo_ = other.stageInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + stageInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStageInfoFieldBuilder() + : null; + } else { + stageInfoBuilder_.addAllMessages(other.stageInfo_); + } + } + } + if (instanceUpgradeDetailsBuilder_ == null) { + if (!other.instanceUpgradeDetails_.isEmpty()) { + if (instanceUpgradeDetails_.isEmpty()) { + instanceUpgradeDetails_ = other.instanceUpgradeDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.addAll(other.instanceUpgradeDetails_); + } + onChanged(); + } + } else { + if (!other.instanceUpgradeDetails_.isEmpty()) { + if (instanceUpgradeDetailsBuilder_.isEmpty()) { + instanceUpgradeDetailsBuilder_.dispose(); + instanceUpgradeDetailsBuilder_ = null; + instanceUpgradeDetails_ = other.instanceUpgradeDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + instanceUpgradeDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstanceUpgradeDetailsFieldBuilder() + : null; + } else { + instanceUpgradeDetailsBuilder_.addAllMessages(other.instanceUpgradeDetails_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + upgradeStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + clusterType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + databaseVersion_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo m = + input.readMessage( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.parser(), + extensionRegistry); + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + stageInfo_.add(m); + } else { + stageInfoBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails m = + input.readMessage( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + .parser(), + extensionRegistry); + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.add(m); + } else { + instanceUpgradeDetailsBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * Normalized name of the cluster
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Normalized name of the cluster
+       * 
+ * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
+       * Normalized name of the cluster
+       * 
+ * + * string name = 1; + * + * @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; + } + + /** + * + * + *
+       * Normalized name of the cluster
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Normalized name of the cluster
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int upgradeStatus_ = 0; + + /** + * + * + *
+       * Upgrade status of the cluster.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The enum numeric value on the wire for upgradeStatus. + */ + @java.lang.Override + public int getUpgradeStatusValue() { + return upgradeStatus_; + } + + /** + * + * + *
+       * Upgrade status of the cluster.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @param value The enum numeric value on the wire for upgradeStatus to set. + * @return This builder for chaining. + */ + public Builder setUpgradeStatusValue(int value) { + upgradeStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade status of the cluster.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return The upgradeStatus. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getUpgradeStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(upgradeStatus_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Upgrade status of the cluster.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @param value The upgradeStatus to set. + * @return This builder for chaining. + */ + public Builder setUpgradeStatus( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + upgradeStatus_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade status of the cluster.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status upgrade_status = 2; + * + * @return This builder for chaining. + */ + public Builder clearUpgradeStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + upgradeStatus_ = 0; + onChanged(); + return this; + } + + private int clusterType_ = 0; + + /** + * + * + *
+       * Cluster type which can either be primary or secondary.
+       * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The enum numeric value on the wire for clusterType. + */ + @java.lang.Override + public int getClusterTypeValue() { + return clusterType_; + } + + /** + * + * + *
+       * Cluster type which can either be primary or secondary.
+       * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @param value The enum numeric value on the wire for clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterTypeValue(int value) { + clusterType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Cluster type which can either be primary or secondary.
+       * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return The clusterType. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.Cluster.ClusterType getClusterType() { + com.google.cloud.alloydb.v1.Cluster.ClusterType result = + com.google.cloud.alloydb.v1.Cluster.ClusterType.forNumber(clusterType_); + return result == null + ? com.google.cloud.alloydb.v1.Cluster.ClusterType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Cluster type which can either be primary or secondary.
+       * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @param value The clusterType to set. + * @return This builder for chaining. + */ + public Builder setClusterType(com.google.cloud.alloydb.v1.Cluster.ClusterType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + clusterType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Cluster type which can either be primary or secondary.
+       * 
+ * + * .google.cloud.alloydb.v1.Cluster.ClusterType cluster_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearClusterType() { + bitField0_ = (bitField0_ & ~0x00000004); + clusterType_ = 0; + onChanged(); + return this; + } + + private int databaseVersion_ = 0; + + /** + * + * + *
+       * Database version of the cluster after the upgrade operation. This will be
+       * the target version if the upgrade was successful otherwise it remains the
+       * same as that before the upgrade operation.
+       * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The enum numeric value on the wire for databaseVersion. + */ + @java.lang.Override + public int getDatabaseVersionValue() { + return databaseVersion_; + } + + /** + * + * + *
+       * Database version of the cluster after the upgrade operation. This will be
+       * the target version if the upgrade was successful otherwise it remains the
+       * same as that before the upgrade operation.
+       * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @param value The enum numeric value on the wire for databaseVersion to set. + * @return This builder for chaining. + */ + public Builder setDatabaseVersionValue(int value) { + databaseVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Database version of the cluster after the upgrade operation. This will be
+       * the target version if the upgrade was successful otherwise it remains the
+       * same as that before the upgrade operation.
+       * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return The databaseVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getDatabaseVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(databaseVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + /** + * + * + *
+       * Database version of the cluster after the upgrade operation. This will be
+       * the target version if the upgrade was successful otherwise it remains the
+       * same as that before the upgrade operation.
+       * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @param value The databaseVersion to set. + * @return This builder for chaining. + */ + public Builder setDatabaseVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + databaseVersion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Database version of the cluster after the upgrade operation. This will be
+       * the target version if the upgrade was successful otherwise it remains the
+       * same as that before the upgrade operation.
+       * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion database_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + databaseVersion_ = 0; + onChanged(); + return this; + } + + private java.util.List + stageInfo_ = java.util.Collections.emptyList(); + + private void ensureStageInfoIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + stageInfo_ = + new java.util.ArrayList( + stageInfo_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder> + stageInfoBuilder_; + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public java.util.List + getStageInfoList() { + if (stageInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(stageInfo_); + } else { + return stageInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public int getStageInfoCount() { + if (stageInfoBuilder_ == null) { + return stageInfo_.size(); + } else { + return stageInfoBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo getStageInfo(int index) { + if (stageInfoBuilder_ == null) { + return stageInfo_.get(index); + } else { + return stageInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder setStageInfo( + int index, com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo value) { + if (stageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStageInfoIsMutable(); + stageInfo_.set(index, value); + onChanged(); + } else { + stageInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder setStageInfo( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder builderForValue) { + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + stageInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + stageInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder addStageInfo( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo value) { + if (stageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStageInfoIsMutable(); + stageInfo_.add(value); + onChanged(); + } else { + stageInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder addStageInfo( + int index, com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo value) { + if (stageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStageInfoIsMutable(); + stageInfo_.add(index, value); + onChanged(); + } else { + stageInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder addStageInfo( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder builderForValue) { + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + stageInfo_.add(builderForValue.build()); + onChanged(); + } else { + stageInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder addStageInfo( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder builderForValue) { + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + stageInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + stageInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder addAllStageInfo( + java.lang.Iterable + values) { + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stageInfo_); + onChanged(); + } else { + stageInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder clearStageInfo() { + if (stageInfoBuilder_ == null) { + stageInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + stageInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public Builder removeStageInfo(int index) { + if (stageInfoBuilder_ == null) { + ensureStageInfoIsMutable(); + stageInfo_.remove(index); + onChanged(); + } else { + stageInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder + getStageInfoBuilder(int index) { + return getStageInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder + getStageInfoOrBuilder(int index) { + if (stageInfoBuilder_ == null) { + return stageInfo_.get(index); + } else { + return stageInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder> + getStageInfoOrBuilderList() { + if (stageInfoBuilder_ != null) { + return stageInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stageInfo_); + } + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder + addStageInfoBuilder() { + return getStageInfoFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.getDefaultInstance()); + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder + addStageInfoBuilder(int index) { + return getStageInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.getDefaultInstance()); + } + + /** + * + * + *
+       * Array containing stage info associated with this cluster.
+       * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo stage_info = 5; + * + */ + public java.util.List + getStageInfoBuilderList() { + return getStageInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder> + getStageInfoFieldBuilder() { + if (stageInfoBuilder_ == null) { + stageInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfo.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.StageInfoOrBuilder>( + stageInfo_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + stageInfo_ = null; + } + return stageInfoBuilder_; + } + + private java.util.List< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails> + instanceUpgradeDetails_ = java.util.Collections.emptyList(); + + private void ensureInstanceUpgradeDetailsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + instanceUpgradeDetails_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails>( + instanceUpgradeDetails_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder> + instanceUpgradeDetailsBuilder_; + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails> + getInstanceUpgradeDetailsList() { + if (instanceUpgradeDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(instanceUpgradeDetails_); + } else { + return instanceUpgradeDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public int getInstanceUpgradeDetailsCount() { + if (instanceUpgradeDetailsBuilder_ == null) { + return instanceUpgradeDetails_.size(); + } else { + return instanceUpgradeDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + getInstanceUpgradeDetails(int index) { + if (instanceUpgradeDetailsBuilder_ == null) { + return instanceUpgradeDetails_.get(index); + } else { + return instanceUpgradeDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder setInstanceUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails value) { + if (instanceUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.set(index, value); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder setInstanceUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + builderForValue) { + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder addInstanceUpgradeDetails( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails value) { + if (instanceUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.add(value); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder addInstanceUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails value) { + if (instanceUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.add(index, value); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder addInstanceUpgradeDetails( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + builderForValue) { + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.add(builderForValue.build()); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder addInstanceUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + builderForValue) { + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder addAllInstanceUpgradeDetails( + java.lang.Iterable< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails> + values) { + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceUpgradeDetails_); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder clearInstanceUpgradeDetails() { + if (instanceUpgradeDetailsBuilder_ == null) { + instanceUpgradeDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public Builder removeInstanceUpgradeDetails(int index) { + if (instanceUpgradeDetailsBuilder_ == null) { + ensureInstanceUpgradeDetailsIsMutable(); + instanceUpgradeDetails_.remove(index); + onChanged(); + } else { + instanceUpgradeDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + getInstanceUpgradeDetailsBuilder(int index) { + return getInstanceUpgradeDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder + getInstanceUpgradeDetailsOrBuilder(int index) { + if (instanceUpgradeDetailsBuilder_ == null) { + return instanceUpgradeDetails_.get(index); + } else { + return instanceUpgradeDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse + .InstanceUpgradeDetailsOrBuilder> + getInstanceUpgradeDetailsOrBuilderList() { + if (instanceUpgradeDetailsBuilder_ != null) { + return instanceUpgradeDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instanceUpgradeDetails_); + } + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + addInstanceUpgradeDetailsBuilder() { + return getInstanceUpgradeDetailsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + .getDefaultInstance()); + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder + addInstanceUpgradeDetailsBuilder(int index) { + return getInstanceUpgradeDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails + .getDefaultInstance()); + } + + /** + * + * + *
+       * Upgrade details of the instances directly associated with this cluster.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder> + getInstanceUpgradeDetailsBuilderList() { + return getInstanceUpgradeDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder> + getInstanceUpgradeDetailsFieldBuilder() { + if (instanceUpgradeDetailsBuilder_ == null) { + instanceUpgradeDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.InstanceUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse + .InstanceUpgradeDetailsOrBuilder>( + instanceUpgradeDetails_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + instanceUpgradeDetails_ = null; + } + return instanceUpgradeDetailsBuilder_; + } + + @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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails) + private static final com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterUpgradeDetails 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.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + + /** + * + * + *
+   * Status of upgrade operation.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Status of upgrade operation.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * A user friendly message summarising the upgrade operation details and the
+   * next steps for the user if there is any.
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * A user friendly message summarising the upgrade operation details and the
+   * next steps for the user if there is any.
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UPGRADE_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + clusterUpgradeDetails_; + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + @java.lang.Override + public java.util.List + getClusterUpgradeDetailsList() { + return clusterUpgradeDetails_; + } + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> + getClusterUpgradeDetailsOrBuilderList() { + return clusterUpgradeDetails_; + } + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + @java.lang.Override + public int getClusterUpgradeDetailsCount() { + return clusterUpgradeDetails_.size(); + } + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + getClusterUpgradeDetails(int index) { + return clusterUpgradeDetails_.get(index); + } + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder + getClusterUpgradeDetailsOrBuilder(int index) { + return clusterUpgradeDetails_.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 (status_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + for (int i = 0; i < clusterUpgradeDetails_.size(); i++) { + output.writeMessage(3, clusterUpgradeDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + for (int i = 0; i < clusterUpgradeDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, clusterUpgradeDetails_.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.alloydb.v1.UpgradeClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterResponse other = + (com.google.cloud.alloydb.v1.UpgradeClusterResponse) obj; + + if (status_ != other.status_) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getClusterUpgradeDetailsList().equals(other.getClusterUpgradeDetailsList())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (getClusterUpgradeDetailsCount() > 0) { + hash = (37 * hash) + CLUSTER_UPGRADE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getClusterUpgradeDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse 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.alloydb.v1.UpgradeClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse 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.alloydb.v1.UpgradeClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse 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.alloydb.v1.UpgradeClusterResponse 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; + } + + /** + * + * + *
+   * UpgradeClusterResponse contains the response for upgrade cluster operation.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterResponse) + com.google.cloud.alloydb.v1.UpgradeClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.class, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.UpgradeClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + message_ = ""; + if (clusterUpgradeDetailsBuilder_ == null) { + clusterUpgradeDetails_ = java.util.Collections.emptyList(); + } else { + clusterUpgradeDetails_ = null; + clusterUpgradeDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse build() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse result = + new com.google.cloud.alloydb.v1.UpgradeClusterResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.UpgradeClusterResponse result) { + if (clusterUpgradeDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + clusterUpgradeDetails_ = java.util.Collections.unmodifiableList(clusterUpgradeDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.clusterUpgradeDetails_ = clusterUpgradeDetails_; + } else { + result.clusterUpgradeDetails_ = clusterUpgradeDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.UpgradeClusterResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + } + + @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.alloydb.v1.UpgradeClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1.UpgradeClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.UpgradeClusterResponse other) { + if (other == com.google.cloud.alloydb.v1.UpgradeClusterResponse.getDefaultInstance()) + return this; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (clusterUpgradeDetailsBuilder_ == null) { + if (!other.clusterUpgradeDetails_.isEmpty()) { + if (clusterUpgradeDetails_.isEmpty()) { + clusterUpgradeDetails_ = other.clusterUpgradeDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.addAll(other.clusterUpgradeDetails_); + } + onChanged(); + } + } else { + if (!other.clusterUpgradeDetails_.isEmpty()) { + if (clusterUpgradeDetailsBuilder_.isEmpty()) { + clusterUpgradeDetailsBuilder_.dispose(); + clusterUpgradeDetailsBuilder_ = null; + clusterUpgradeDetails_ = other.clusterUpgradeDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + clusterUpgradeDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterUpgradeDetailsFieldBuilder() + : null; + } else { + clusterUpgradeDetailsBuilder_.addAllMessages(other.clusterUpgradeDetails_); + } + } + } + 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: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails m = + input.readMessage( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + .parser(), + extensionRegistry); + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.add(m); + } else { + clusterUpgradeDetailsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int status_ = 0; + + /** + * + * + *
+     * Status of upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Status of upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(status_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Status of upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of upgrade operation.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * A user friendly message summarising the upgrade operation details and the
+     * next steps for the user if there is any.
+     * 
+ * + * string message = 2; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A user friendly message summarising the upgrade operation details and the
+     * next steps for the user if there is any.
+     * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A user friendly message summarising the upgrade operation details and the
+     * next steps for the user if there is any.
+     * 
+ * + * string message = 2; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A user friendly message summarising the upgrade operation details and the
+     * next steps for the user if there is any.
+     * 
+ * + * string message = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A user friendly message summarising the upgrade operation details and the
+     * next steps for the user if there is any.
+     * 
+ * + * string message = 2; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + clusterUpgradeDetails_ = java.util.Collections.emptyList(); + + private void ensureClusterUpgradeDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + clusterUpgradeDetails_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails>( + clusterUpgradeDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> + clusterUpgradeDetailsBuilder_; + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public java.util.List + getClusterUpgradeDetailsList() { + if (clusterUpgradeDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterUpgradeDetails_); + } else { + return clusterUpgradeDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public int getClusterUpgradeDetailsCount() { + if (clusterUpgradeDetailsBuilder_ == null) { + return clusterUpgradeDetails_.size(); + } else { + return clusterUpgradeDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + getClusterUpgradeDetails(int index) { + if (clusterUpgradeDetailsBuilder_ == null) { + return clusterUpgradeDetails_.get(index); + } else { + return clusterUpgradeDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder setClusterUpgradeDetails( + int index, com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails value) { + if (clusterUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.set(index, value); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder setClusterUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + builderForValue) { + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder addClusterUpgradeDetails( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails value) { + if (clusterUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.add(value); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder addClusterUpgradeDetails( + int index, com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails value) { + if (clusterUpgradeDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.add(index, value); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder addClusterUpgradeDetails( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + builderForValue) { + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.add(builderForValue.build()); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder addClusterUpgradeDetails( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + builderForValue) { + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder addAllClusterUpgradeDetails( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails> + values) { + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterUpgradeDetails_); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder clearClusterUpgradeDetails() { + if (clusterUpgradeDetailsBuilder_ == null) { + clusterUpgradeDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public Builder removeClusterUpgradeDetails(int index) { + if (clusterUpgradeDetailsBuilder_ == null) { + ensureClusterUpgradeDetailsIsMutable(); + clusterUpgradeDetails_.remove(index); + onChanged(); + } else { + clusterUpgradeDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + getClusterUpgradeDetailsBuilder(int index) { + return getClusterUpgradeDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder + getClusterUpgradeDetailsOrBuilder(int index) { + if (clusterUpgradeDetailsBuilder_ == null) { + return clusterUpgradeDetails_.get(index); + } else { + return clusterUpgradeDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> + getClusterUpgradeDetailsOrBuilderList() { + if (clusterUpgradeDetailsBuilder_ != null) { + return clusterUpgradeDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterUpgradeDetails_); + } + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + addClusterUpgradeDetailsBuilder() { + return getClusterUpgradeDetailsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + .getDefaultInstance()); + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder + addClusterUpgradeDetailsBuilder(int index) { + return getClusterUpgradeDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails + .getDefaultInstance()); + } + + /** + * + * + *
+     * Array of upgrade details for the current cluster and all the secondary
+     * clusters associated with this cluster.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder> + getClusterUpgradeDetailsBuilderList() { + return getClusterUpgradeDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> + getClusterUpgradeDetailsFieldBuilder() { + if (clusterUpgradeDetailsBuilder_ == null) { + clusterUpgradeDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder>( + clusterUpgradeDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + clusterUpgradeDetails_ = null; + } + return clusterUpgradeDetailsBuilder_; + } + + @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.alloydb.v1.UpgradeClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterResponse) + private static final com.google.cloud.alloydb.v1.UpgradeClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.UpgradeClusterResponse(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeClusterResponse 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.alloydb.v1.UpgradeClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponseOrBuilder.java new file mode 100644 index 000000000000..d5d2130395cd --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface UpgradeClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Status of upgrade operation.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Status of upgrade operation.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status status = 1; + * + * @return The status. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getStatus(); + + /** + * + * + *
+   * A user friendly message summarising the upgrade operation details and the
+   * next steps for the user if there is any.
+   * 
+ * + * string message = 2; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * A user friendly message summarising the upgrade operation details and the
+   * next steps for the user if there is any.
+   * 
+ * + * string message = 2; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + java.util.List + getClusterUpgradeDetailsList(); + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails getClusterUpgradeDetails( + int index); + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + int getClusterUpgradeDetailsCount(); + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder> + getClusterUpgradeDetailsOrBuilderList(); + + /** + * + * + *
+   * Array of upgrade details for the current cluster and all the secondary
+   * clusters associated with this cluster.
+   * 
+ * + * + * repeated .google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetails cluster_upgrade_details = 3; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder + getClusterUpgradeDetailsOrBuilder(int index); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatus.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatus.java new file mode 100644 index 000000000000..5bff229b3af5 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatus.java @@ -0,0 +1,4721 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +/** + * + * + *
+ * Message for current status of the Major Version Upgrade operation.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterStatus} + */ +public final class UpgradeClusterStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterStatus) + UpgradeClusterStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpgradeClusterStatus.newBuilder() to construct. + private UpgradeClusterStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpgradeClusterStatus() { + state_ = 0; + sourceVersion_ = 0; + targetVersion_ = 0; + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpgradeClusterStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder.class); + } + + public interface StageStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return Whether the readPoolInstancesUpgrade field is set. + */ + boolean hasReadPoolInstancesUpgrade(); + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return The readPoolInstancesUpgrade. + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + getReadPoolInstancesUpgrade(); + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatusOrBuilder + getReadPoolInstancesUpgradeOrBuilder(); + + /** + * + * + *
+     * Upgrade stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + int getStageValue(); + + /** + * + * + *
+     * Upgrade stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage(); + + /** + * + * + *
+     * State of this stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+     * State of this stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The state. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState(); + + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.StageSpecificStatusCase + getStageSpecificStatusCase(); + } + + /** + * + * + *
+   * Status of an upgrade stage.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus} + */ + public static final class StageStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) + StageStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use StageStatus.newBuilder() to construct. + private StageStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StageStatus() { + stage_ = 0; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StageStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder.class); + } + + private int stageSpecificStatusCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object stageSpecificStatus_; + + public enum StageSpecificStatusCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_POOL_INSTANCES_UPGRADE(11), + STAGESPECIFICSTATUS_NOT_SET(0); + private final int value; + + private StageSpecificStatusCase(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 StageSpecificStatusCase valueOf(int value) { + return forNumber(value); + } + + public static StageSpecificStatusCase forNumber(int value) { + switch (value) { + case 11: + return READ_POOL_INSTANCES_UPGRADE; + case 0: + return STAGESPECIFICSTATUS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StageSpecificStatusCase getStageSpecificStatusCase() { + return StageSpecificStatusCase.forNumber(stageSpecificStatusCase_); + } + + public static final int READ_POOL_INSTANCES_UPGRADE_FIELD_NUMBER = 11; + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return Whether the readPoolInstancesUpgrade field is set. + */ + @java.lang.Override + public boolean hasReadPoolInstancesUpgrade() { + return stageSpecificStatusCase_ == 11; + } + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return The readPoolInstancesUpgrade. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + getReadPoolInstancesUpgrade() { + if (stageSpecificStatusCase_ == 11) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .getDefaultInstance(); + } + + /** + * + * + *
+     * Read pool instances upgrade metadata.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder + getReadPoolInstancesUpgradeOrBuilder() { + if (stageSpecificStatusCase_ == 11) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .getDefaultInstance(); + } + + public static final int STAGE_FIELD_NUMBER = 1; + private int stage_ = 0; + + /** + * + * + *
+     * Upgrade stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override + public int getStageValue() { + return stage_; + } + + /** + * + * + *
+     * Upgrade stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.forNumber(stage_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
+     * State of this stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * State of this stage.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(state_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.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 (stage_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.STAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, stage_); + } + if (state_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + if (stageSpecificStatusCase_ == 11) { + output.writeMessage( + 11, + (com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stage_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.STAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, stage_); + } + if (state_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (stageSpecificStatusCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_); + } + 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.alloydb.v1.UpgradeClusterStatus.StageStatus)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus other = + (com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) obj; + + if (stage_ != other.stage_) return false; + if (state_ != other.state_) return false; + if (!getStageSpecificStatusCase().equals(other.getStageSpecificStatusCase())) return false; + switch (stageSpecificStatusCase_) { + case 11: + if (!getReadPoolInstancesUpgrade().equals(other.getReadPoolInstancesUpgrade())) + 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) + STAGE_FIELD_NUMBER; + hash = (53 * hash) + stage_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (stageSpecificStatusCase_) { + case 11: + hash = (37 * hash) + READ_POOL_INSTANCES_UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + getReadPoolInstancesUpgrade().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus 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.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus 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.alloydb.v1.UpgradeClusterStatus.StageStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterStatus.StageStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus 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.alloydb.v1.UpgradeClusterStatus.StageStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Status of an upgrade stage.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readPoolInstancesUpgradeBuilder_ != null) { + readPoolInstancesUpgradeBuilder_.clear(); + } + stage_ = 0; + state_ = 0; + stageSpecificStatusCase_ = 0; + stageSpecificStatus_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_StageStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus build() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus result = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stage_ = stage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus result) { + result.stageSpecificStatusCase_ = stageSpecificStatusCase_; + result.stageSpecificStatus_ = this.stageSpecificStatus_; + if (stageSpecificStatusCase_ == 11 && readPoolInstancesUpgradeBuilder_ != null) { + result.stageSpecificStatus_ = readPoolInstancesUpgradeBuilder_.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.alloydb.v1.UpgradeClusterStatus.StageStatus) { + return mergeFrom((com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.getDefaultInstance()) + return this; + if (other.stage_ != 0) { + setStageValue(other.getStageValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getStageSpecificStatusCase()) { + case READ_POOL_INSTANCES_UPGRADE: + { + mergeReadPoolInstancesUpgrade(other.getReadPoolInstancesUpgrade()); + break; + } + case STAGESPECIFICSTATUS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + stage_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 90: + { + input.readMessage( + getReadPoolInstancesUpgradeFieldBuilder().getBuilder(), extensionRegistry); + stageSpecificStatusCase_ = 11; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int stageSpecificStatusCase_ = 0; + private java.lang.Object stageSpecificStatus_; + + public StageSpecificStatusCase getStageSpecificStatusCase() { + return StageSpecificStatusCase.forNumber(stageSpecificStatusCase_); + } + + public Builder clearStageSpecificStatus() { + stageSpecificStatusCase_ = 0; + stageSpecificStatus_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder> + readPoolInstancesUpgradeBuilder_; + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return Whether the readPoolInstancesUpgrade field is set. + */ + @java.lang.Override + public boolean hasReadPoolInstancesUpgrade() { + return stageSpecificStatusCase_ == 11; + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + * + * @return The readPoolInstancesUpgrade. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + getReadPoolInstancesUpgrade() { + if (readPoolInstancesUpgradeBuilder_ == null) { + if (stageSpecificStatusCase_ == 11) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.getDefaultInstance(); + } else { + if (stageSpecificStatusCase_ == 11) { + return readPoolInstancesUpgradeBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + public Builder setReadPoolInstancesUpgrade( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + value) { + if (readPoolInstancesUpgradeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stageSpecificStatus_ = value; + onChanged(); + } else { + readPoolInstancesUpgradeBuilder_.setMessage(value); + } + stageSpecificStatusCase_ = 11; + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + public Builder setReadPoolInstancesUpgrade( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder + builderForValue) { + if (readPoolInstancesUpgradeBuilder_ == null) { + stageSpecificStatus_ = builderForValue.build(); + onChanged(); + } else { + readPoolInstancesUpgradeBuilder_.setMessage(builderForValue.build()); + } + stageSpecificStatusCase_ = 11; + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + public Builder mergeReadPoolInstancesUpgrade( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + value) { + if (readPoolInstancesUpgradeBuilder_ == null) { + if (stageSpecificStatusCase_ == 11 + && stageSpecificStatus_ + != com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.getDefaultInstance()) { + stageSpecificStatus_ = + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .newBuilder( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_) + .mergeFrom(value) + .buildPartial(); + } else { + stageSpecificStatus_ = value; + } + onChanged(); + } else { + if (stageSpecificStatusCase_ == 11) { + readPoolInstancesUpgradeBuilder_.mergeFrom(value); + } else { + readPoolInstancesUpgradeBuilder_.setMessage(value); + } + } + stageSpecificStatusCase_ = 11; + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + public Builder clearReadPoolInstancesUpgrade() { + if (readPoolInstancesUpgradeBuilder_ == null) { + if (stageSpecificStatusCase_ == 11) { + stageSpecificStatusCase_ = 0; + stageSpecificStatus_ = null; + onChanged(); + } + } else { + if (stageSpecificStatusCase_ == 11) { + stageSpecificStatusCase_ = 0; + stageSpecificStatus_ = null; + } + readPoolInstancesUpgradeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder + getReadPoolInstancesUpgradeBuilder() { + return getReadPoolInstancesUpgradeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder + getReadPoolInstancesUpgradeOrBuilder() { + if ((stageSpecificStatusCase_ == 11) && (readPoolInstancesUpgradeBuilder_ != null)) { + return readPoolInstancesUpgradeBuilder_.getMessageOrBuilder(); + } else { + if (stageSpecificStatusCase_ == 11) { + return (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_; + } + return com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Read pool instances upgrade metadata.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder> + getReadPoolInstancesUpgradeFieldBuilder() { + if (readPoolInstancesUpgradeBuilder_ == null) { + if (!(stageSpecificStatusCase_ == 11)) { + stageSpecificStatus_ = + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .getDefaultInstance(); + } + readPoolInstancesUpgradeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder>( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus) + stageSpecificStatus_, + getParentForChildren(), + isClean()); + stageSpecificStatus_ = null; + } + stageSpecificStatusCase_ = 11; + onChanged(); + return readPoolInstancesUpgradeBuilder_; + } + + private int stage_ = 0; + + /** + * + * + *
+       * Upgrade stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The enum numeric value on the wire for stage. + */ + @java.lang.Override + public int getStageValue() { + return stage_; + } + + /** + * + * + *
+       * Upgrade stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @param value The enum numeric value on the wire for stage to set. + * @return This builder for chaining. + */ + public Builder setStageValue(int value) { + stage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return The stage. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage getStage() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.forNumber(stage_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Upgrade stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @param value The stage to set. + * @return This builder for chaining. + */ + public Builder setStage(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Stage value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + stage_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Upgrade stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Stage stage = 1; + * + * @return This builder for chaining. + */ + public Builder clearStage() { + bitField0_ = (bitField0_ & ~0x00000002); + stage_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+       * State of this stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+       * State of this stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * State of this stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(state_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * State of this stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * State of this stage.
+       * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus) + private static final com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StageStatus 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.alloydb.v1.UpgradeClusterStatus.StageStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ReadPoolInstancesUpgradeStageStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return Whether the upgradeStats field is set. + */ + boolean hasUpgradeStats(); + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return The upgradeStats. + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + getUpgradeStats(); + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder + getUpgradeStatsOrBuilder(); + } + + /** + * + * + *
+   * Read pool instances upgrade specific status.
+   * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus} + */ + public static final class ReadPoolInstancesUpgradeStageStatus + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + ReadPoolInstancesUpgradeStageStatusOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReadPoolInstancesUpgradeStageStatus.newBuilder() to construct. + private ReadPoolInstancesUpgradeStageStatus( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadPoolInstancesUpgradeStageStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadPoolInstancesUpgradeStageStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder.class); + } + + public interface StatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Number of read pool instances for which upgrade has not started.
+       * 
+ * + * int32 not_started = 1; + * + * @return The notStarted. + */ + int getNotStarted(); + + /** + * + * + *
+       * Number of read pool instances undergoing upgrade.
+       * 
+ * + * int32 ongoing = 2; + * + * @return The ongoing. + */ + int getOngoing(); + + /** + * + * + *
+       * Number of read pool instances successfully upgraded.
+       * 
+ * + * int32 success = 3; + * + * @return The success. + */ + int getSuccess(); + + /** + * + * + *
+       * Number of read pool instances which failed to upgrade.
+       * 
+ * + * int32 failed = 4; + * + * @return The failed. + */ + int getFailed(); + } + + /** + * + * + *
+     * Upgrade stats for read pool instances.
+     * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats} + */ + public static final class Stats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats) + StatsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Stats.newBuilder() to construct. + private Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Stats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Stats(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.Builder.class); + } + + public static final int NOT_STARTED_FIELD_NUMBER = 1; + private int notStarted_ = 0; + + /** + * + * + *
+       * Number of read pool instances for which upgrade has not started.
+       * 
+ * + * int32 not_started = 1; + * + * @return The notStarted. + */ + @java.lang.Override + public int getNotStarted() { + return notStarted_; + } + + public static final int ONGOING_FIELD_NUMBER = 2; + private int ongoing_ = 0; + + /** + * + * + *
+       * Number of read pool instances undergoing upgrade.
+       * 
+ * + * int32 ongoing = 2; + * + * @return The ongoing. + */ + @java.lang.Override + public int getOngoing() { + return ongoing_; + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + private int success_ = 0; + + /** + * + * + *
+       * Number of read pool instances successfully upgraded.
+       * 
+ * + * int32 success = 3; + * + * @return The success. + */ + @java.lang.Override + public int getSuccess() { + return success_; + } + + public static final int FAILED_FIELD_NUMBER = 4; + private int failed_ = 0; + + /** + * + * + *
+       * Number of read pool instances which failed to upgrade.
+       * 
+ * + * int32 failed = 4; + * + * @return The failed. + */ + @java.lang.Override + public int getFailed() { + return failed_; + } + + 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 (notStarted_ != 0) { + output.writeInt32(1, notStarted_); + } + if (ongoing_ != 0) { + output.writeInt32(2, ongoing_); + } + if (success_ != 0) { + output.writeInt32(3, success_); + } + if (failed_ != 0) { + output.writeInt32(4, failed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (notStarted_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, notStarted_); + } + if (ongoing_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, ongoing_); + } + if (success_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, success_); + } + if (failed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, failed_); + } + 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + other = + (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats) + obj; + + if (getNotStarted() != other.getNotStarted()) return false; + if (getOngoing() != other.getOngoing()) return false; + if (getSuccess() != other.getSuccess()) return false; + if (getFailed() != other.getFailed()) 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) + NOT_STARTED_FIELD_NUMBER; + hash = (53 * hash) + getNotStarted(); + hash = (37 * hash) + ONGOING_FIELD_NUMBER; + hash = (53 * hash) + getOngoing(); + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + getSuccess(); + hash = (37 * hash) + FAILED_FIELD_NUMBER; + hash = (53 * hash) + getFailed(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + 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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + 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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + 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; + } + + /** + * + * + *
+       * Upgrade stats for read pool instances.
+       * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats) + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + notStarted_ = 0; + ongoing_ = 0; + success_ = 0; + failed_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_Stats_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + build() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + result = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.notStarted_ = notStarted_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ongoing_ = ongoing_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failed_ = failed_; + } + } + + @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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats) { + return mergeFrom( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.getDefaultInstance()) return this; + if (other.getNotStarted() != 0) { + setNotStarted(other.getNotStarted()); + } + if (other.getOngoing() != 0) { + setOngoing(other.getOngoing()); + } + if (other.getSuccess() != 0) { + setSuccess(other.getSuccess()); + } + if (other.getFailed() != 0) { + setFailed(other.getFailed()); + } + 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: + { + notStarted_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + ongoing_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + success_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failed_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int notStarted_; + + /** + * + * + *
+         * Number of read pool instances for which upgrade has not started.
+         * 
+ * + * int32 not_started = 1; + * + * @return The notStarted. + */ + @java.lang.Override + public int getNotStarted() { + return notStarted_; + } + + /** + * + * + *
+         * Number of read pool instances for which upgrade has not started.
+         * 
+ * + * int32 not_started = 1; + * + * @param value The notStarted to set. + * @return This builder for chaining. + */ + public Builder setNotStarted(int value) { + + notStarted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of read pool instances for which upgrade has not started.
+         * 
+ * + * int32 not_started = 1; + * + * @return This builder for chaining. + */ + public Builder clearNotStarted() { + bitField0_ = (bitField0_ & ~0x00000001); + notStarted_ = 0; + onChanged(); + return this; + } + + private int ongoing_; + + /** + * + * + *
+         * Number of read pool instances undergoing upgrade.
+         * 
+ * + * int32 ongoing = 2; + * + * @return The ongoing. + */ + @java.lang.Override + public int getOngoing() { + return ongoing_; + } + + /** + * + * + *
+         * Number of read pool instances undergoing upgrade.
+         * 
+ * + * int32 ongoing = 2; + * + * @param value The ongoing to set. + * @return This builder for chaining. + */ + public Builder setOngoing(int value) { + + ongoing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of read pool instances undergoing upgrade.
+         * 
+ * + * int32 ongoing = 2; + * + * @return This builder for chaining. + */ + public Builder clearOngoing() { + bitField0_ = (bitField0_ & ~0x00000002); + ongoing_ = 0; + onChanged(); + return this; + } + + private int success_; + + /** + * + * + *
+         * Number of read pool instances successfully upgraded.
+         * 
+ * + * int32 success = 3; + * + * @return The success. + */ + @java.lang.Override + public int getSuccess() { + return success_; + } + + /** + * + * + *
+         * Number of read pool instances successfully upgraded.
+         * 
+ * + * int32 success = 3; + * + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(int value) { + + success_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of read pool instances successfully upgraded.
+         * 
+ * + * int32 success = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000004); + success_ = 0; + onChanged(); + return this; + } + + private int failed_; + + /** + * + * + *
+         * Number of read pool instances which failed to upgrade.
+         * 
+ * + * int32 failed = 4; + * + * @return The failed. + */ + @java.lang.Override + public int getFailed() { + return failed_; + } + + /** + * + * + *
+         * Number of read pool instances which failed to upgrade.
+         * 
+ * + * int32 failed = 4; + * + * @param value The failed to set. + * @return This builder for chaining. + */ + public Builder setFailed(int value) { + + failed_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+         * Number of read pool instances which failed to upgrade.
+         * 
+ * + * int32 failed = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailed() { + bitField0_ = (bitField0_ & ~0x00000008); + failed_ = 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats) + private static final com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stats 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int UPGRADE_STATS_FIELD_NUMBER = 1; + private com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + upgradeStats_; + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return Whether the upgradeStats field is set. + */ + @java.lang.Override + public boolean hasUpgradeStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return The upgradeStats. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + getUpgradeStats() { + return upgradeStats_ == null + ? com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.getDefaultInstance() + : upgradeStats_; + } + + /** + * + * + *
+     * Read pool instances upgrade statistics.
+     * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder + getUpgradeStatsOrBuilder() { + return upgradeStats_ == null + ? com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.getDefaultInstance() + : upgradeStats_; + } + + 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, getUpgradeStats()); + } + 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, getUpgradeStats()); + } + 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus other = + (com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + obj; + + if (hasUpgradeStats() != other.hasUpgradeStats()) return false; + if (hasUpgradeStats()) { + if (!getUpgradeStats().equals(other.getUpgradeStats())) 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 (hasUpgradeStats()) { + hash = (37 * hash) + UPGRADE_STATS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + 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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + 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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + 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; + } + + /** + * + * + *
+     * Read pool instances upgrade specific status.
+     * 
+ * + * Protobuf type {@code + * google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpgradeStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + upgradeStats_ = null; + if (upgradeStatsBuilder_ != null) { + upgradeStatsBuilder_.dispose(); + upgradeStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_ReadPoolInstancesUpgradeStageStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + build() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + result = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.upgradeStats_ = + upgradeStatsBuilder_ == null ? upgradeStats_ : upgradeStatsBuilder_.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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) { + return mergeFrom( + (com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + other) { + if (other + == com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .getDefaultInstance()) return this; + if (other.hasUpgradeStats()) { + mergeUpgradeStats(other.getUpgradeStats()); + } + 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(getUpgradeStatsFieldBuilder().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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + upgradeStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder> + upgradeStatsBuilder_; + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return Whether the upgradeStats field is set. + */ + public boolean hasUpgradeStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + * + * @return The upgradeStats. + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats + getUpgradeStats() { + if (upgradeStatsBuilder_ == null) { + return upgradeStats_ == null + ? com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.getDefaultInstance() + : upgradeStats_; + } else { + return upgradeStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public Builder setUpgradeStats( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + value) { + if (upgradeStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeStats_ = value; + } else { + upgradeStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public Builder setUpgradeStats( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + .Builder + builderForValue) { + if (upgradeStatsBuilder_ == null) { + upgradeStats_ = builderForValue.build(); + } else { + upgradeStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public Builder mergeUpgradeStats( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats + value) { + if (upgradeStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && upgradeStats_ != null + && upgradeStats_ + != com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.getDefaultInstance()) { + getUpgradeStatsBuilder().mergeFrom(value); + } else { + upgradeStats_ = value; + } + } else { + upgradeStatsBuilder_.mergeFrom(value); + } + if (upgradeStats_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public Builder clearUpgradeStats() { + bitField0_ = (bitField0_ & ~0x00000001); + upgradeStats_ = null; + if (upgradeStatsBuilder_ != null) { + upgradeStatsBuilder_.dispose(); + upgradeStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.Builder + getUpgradeStatsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpgradeStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder + getUpgradeStatsOrBuilder() { + if (upgradeStatsBuilder_ != null) { + return upgradeStatsBuilder_.getMessageOrBuilder(); + } else { + return upgradeStats_ == null + ? com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.getDefaultInstance() + : upgradeStats_; + } + } + + /** + * + * + *
+       * Read pool instances upgrade statistics.
+       * 
+ * + * + * .google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats upgrade_stats = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .Stats.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + .StatsOrBuilder> + getUpgradeStatsFieldBuilder() { + if (upgradeStatsBuilder_ == null) { + upgradeStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.Stats.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus.StatsOrBuilder>( + getUpgradeStats(), getParentForChildren(), isClean()); + upgradeStats_ = null; + } + return upgradeStatsBuilder_; + } + + @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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus) + private static final com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus + .ReadPoolInstancesUpgradeStageStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadPoolInstancesUpgradeStageStatus 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.alloydb.v1.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
+   * Cluster Major Version Upgrade state.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Cluster Major Version Upgrade state.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(state_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + public static final int CANCELLABLE_FIELD_NUMBER = 2; + private boolean cancellable_ = false; + + /** + * + * + *
+   * Whether the operation is cancellable.
+   * 
+ * + * bool cancellable = 2; + * + * @return The cancellable. + */ + @java.lang.Override + public boolean getCancellable() { + return cancellable_; + } + + public static final int SOURCE_VERSION_FIELD_NUMBER = 3; + private int sourceVersion_ = 0; + + /** + * + * + *
+   * Source database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The enum numeric value on the wire for sourceVersion. + */ + @java.lang.Override + public int getSourceVersionValue() { + return sourceVersion_; + } + + /** + * + * + *
+   * Source database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The sourceVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getSourceVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(sourceVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 4; + private int targetVersion_ = 0; + + /** + * + * + *
+   * Target database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The enum numeric value on the wire for targetVersion. + */ + @java.lang.Override + public int getTargetVersionValue() { + return targetVersion_; + } + + /** + * + * + *
+   * Target database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The targetVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getTargetVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(targetVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + public static final int STAGES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List stages_; + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + @java.lang.Override + public java.util.List + getStagesList() { + return stages_; + } + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder> + getStagesOrBuilderList() { + return stages_; + } + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus getStages(int index) { + return stages_.get(index); + } + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder getStagesOrBuilder( + int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (cancellable_ != false) { + output.writeBool(2, cancellable_); + } + if (sourceVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(3, sourceVersion_); + } + if (targetVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(4, targetVersion_); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(5, stages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (cancellable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, cancellable_); + } + if (sourceVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, sourceVersion_); + } + if (targetVersion_ + != com.google.cloud.alloydb.v1.DatabaseVersion.DATABASE_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, targetVersion_); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, stages_.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.alloydb.v1.UpgradeClusterStatus)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1.UpgradeClusterStatus other = + (com.google.cloud.alloydb.v1.UpgradeClusterStatus) obj; + + if (state_ != other.state_) return false; + if (getCancellable() != other.getCancellable()) return false; + if (sourceVersion_ != other.sourceVersion_) return false; + if (targetVersion_ != other.targetVersion_) return false; + if (!getStagesList().equals(other.getStagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CANCELLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancellable()); + hash = (37 * hash) + SOURCE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + sourceVersion_; + hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + targetVersion_; + if (getStagesCount() > 0) { + hash = (37 * hash) + STAGES_FIELD_NUMBER; + hash = (53 * hash) + getStagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus 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.alloydb.v1.UpgradeClusterStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus 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.alloydb.v1.UpgradeClusterStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus parseDelimitedFrom( + java.io.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.alloydb.v1.UpgradeClusterStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus 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.alloydb.v1.UpgradeClusterStatus 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 for current status of the Major Version Upgrade operation.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1.UpgradeClusterStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1.UpgradeClusterStatus) + com.google.cloud.alloydb.v1.UpgradeClusterStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.class, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1.UpgradeClusterStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + cancellable_ = false; + sourceVersion_ = 0; + targetVersion_ = 0; + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + } else { + stages_ = null; + stagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1.ServiceProto + .internal_static_google_cloud_alloydb_v1_UpgradeClusterStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus build() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterStatus buildPartial() { + com.google.cloud.alloydb.v1.UpgradeClusterStatus result = + new com.google.cloud.alloydb.v1.UpgradeClusterStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1.UpgradeClusterStatus result) { + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.alloydb.v1.UpgradeClusterStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cancellable_ = cancellable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceVersion_ = sourceVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.targetVersion_ = targetVersion_; + } + } + + @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.alloydb.v1.UpgradeClusterStatus) { + return mergeFrom((com.google.cloud.alloydb.v1.UpgradeClusterStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1.UpgradeClusterStatus other) { + if (other == com.google.cloud.alloydb.v1.UpgradeClusterStatus.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getCancellable() != false) { + setCancellable(other.getCancellable()); + } + if (other.sourceVersion_ != 0) { + setSourceVersionValue(other.getSourceVersionValue()); + } + if (other.targetVersion_ != 0) { + setTargetVersionValue(other.getTargetVersionValue()); + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000010); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStagesFieldBuilder() + : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + cancellable_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + sourceVersion_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + targetVersion_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus m = + input.readMessage( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.parser(), + extensionRegistry); + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(m); + } else { + stagesBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + + /** + * + * + *
+     * Cluster Major Version Upgrade state.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Cluster Major Version Upgrade state.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Cluster Major Version Upgrade state.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState() { + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status result = + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.forNumber(state_); + return result == null + ? com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Cluster Major Version Upgrade state.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Cluster Major Version Upgrade state.
+     * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private boolean cancellable_; + + /** + * + * + *
+     * Whether the operation is cancellable.
+     * 
+ * + * bool cancellable = 2; + * + * @return The cancellable. + */ + @java.lang.Override + public boolean getCancellable() { + return cancellable_; + } + + /** + * + * + *
+     * Whether the operation is cancellable.
+     * 
+ * + * bool cancellable = 2; + * + * @param value The cancellable to set. + * @return This builder for chaining. + */ + public Builder setCancellable(boolean value) { + + cancellable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether the operation is cancellable.
+     * 
+ * + * bool cancellable = 2; + * + * @return This builder for chaining. + */ + public Builder clearCancellable() { + bitField0_ = (bitField0_ & ~0x00000002); + cancellable_ = false; + onChanged(); + return this; + } + + private int sourceVersion_ = 0; + + /** + * + * + *
+     * Source database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The enum numeric value on the wire for sourceVersion. + */ + @java.lang.Override + public int getSourceVersionValue() { + return sourceVersion_; + } + + /** + * + * + *
+     * Source database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @param value The enum numeric value on the wire for sourceVersion to set. + * @return This builder for chaining. + */ + public Builder setSourceVersionValue(int value) { + sourceVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Source database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The sourceVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getSourceVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(sourceVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Source database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @param value The sourceVersion to set. + * @return This builder for chaining. + */ + public Builder setSourceVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + sourceVersion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Source database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return This builder for chaining. + */ + public Builder clearSourceVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceVersion_ = 0; + onChanged(); + return this; + } + + private int targetVersion_ = 0; + + /** + * + * + *
+     * Target database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The enum numeric value on the wire for targetVersion. + */ + @java.lang.Override + public int getTargetVersionValue() { + return targetVersion_; + } + + /** + * + * + *
+     * Target database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @param value The enum numeric value on the wire for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionValue(int value) { + targetVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Target database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The targetVersion. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1.DatabaseVersion getTargetVersion() { + com.google.cloud.alloydb.v1.DatabaseVersion result = + com.google.cloud.alloydb.v1.DatabaseVersion.forNumber(targetVersion_); + return result == null ? com.google.cloud.alloydb.v1.DatabaseVersion.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Target database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion(com.google.cloud.alloydb.v1.DatabaseVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + targetVersion_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Target database major version.
+     * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + targetVersion_ = 0; + onChanged(); + return this; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + stages_ = + new java.util.ArrayList( + stages_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder> + stagesBuilder_; + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public java.util.List + getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder setStages( + int index, com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder setStages( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder addStages(com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder addStages( + int index, com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder addStages( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder addStages( + int index, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder addAllStages( + java.lang.Iterable + values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder> + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder addStagesBuilder() { + return getStagesFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.getDefaultInstance()); + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.getDefaultInstance()); + } + + /** + * + * + *
+     * Status of all upgrade stages.
+     * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus.Builder, + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder>( + stages_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + stages_ = null; + } + return stagesBuilder_; + } + + @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.alloydb.v1.UpgradeClusterStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1.UpgradeClusterStatus) + private static final com.google.cloud.alloydb.v1.UpgradeClusterStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1.UpgradeClusterStatus(); + } + + public static com.google.cloud.alloydb.v1.UpgradeClusterStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeClusterStatus 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.alloydb.v1.UpgradeClusterStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatusOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatusOrBuilder.java new file mode 100644 index 000000000000..22f53778c240 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/UpgradeClusterStatusOrBuilder.java @@ -0,0 +1,174 @@ +/* + * 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/alloydb/v1/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1; + +public interface UpgradeClusterStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1.UpgradeClusterStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Cluster Major Version Upgrade state.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Cluster Major Version Upgrade state.
+   * 
+ * + * .google.cloud.alloydb.v1.UpgradeClusterResponse.Status state = 1; + * + * @return The state. + */ + com.google.cloud.alloydb.v1.UpgradeClusterResponse.Status getState(); + + /** + * + * + *
+   * Whether the operation is cancellable.
+   * 
+ * + * bool cancellable = 2; + * + * @return The cancellable. + */ + boolean getCancellable(); + + /** + * + * + *
+   * Source database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The enum numeric value on the wire for sourceVersion. + */ + int getSourceVersionValue(); + + /** + * + * + *
+   * Source database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion source_version = 3; + * + * @return The sourceVersion. + */ + com.google.cloud.alloydb.v1.DatabaseVersion getSourceVersion(); + + /** + * + * + *
+   * Target database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The enum numeric value on the wire for targetVersion. + */ + int getTargetVersionValue(); + + /** + * + * + *
+   * Target database major version.
+   * 
+ * + * .google.cloud.alloydb.v1.DatabaseVersion target_version = 4; + * + * @return The targetVersion. + */ + com.google.cloud.alloydb.v1.DatabaseVersion getTargetVersion(); + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + java.util.List getStagesList(); + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus getStages(int index); + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + int getStagesCount(); + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + java.util.List + getStagesOrBuilderList(); + + /** + * + * + *
+   * Status of all upgrade stages.
+   * 
+ * + * repeated .google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatus stages = 5; + */ + com.google.cloud.alloydb.v1.UpgradeClusterStatus.StageStatusOrBuilder getStagesOrBuilder( + int index); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_resources.proto new file mode 100644 index 000000000000..43893ff3350f --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_resources.proto @@ -0,0 +1,40 @@ +// 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.cloud.alloydb.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.AlloyDb.V1"; +option go_package = "cloud.google.com/go/alloydb/apiv1/alloydbpb;alloydbpb"; +option java_multiple_files = true; +option java_outer_classname = "CsqlResourcesProto"; +option java_package = "com.google.cloud.alloydb.v1"; +option php_namespace = "Google\\Cloud\\AlloyDb\\V1"; +option ruby_package = "Google::Cloud::AlloyDB::V1"; + +// The source CloudSQL backup resource. +message CloudSQLBackupRunSource { + // The project ID of the source CloudSQL instance. This should be the same as + // the AlloyDB cluster's project. + string project = 1; + + // Required. The CloudSQL instance ID. + string instance_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The CloudSQL backup run ID. + int64 backup_run_id = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_service.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_service.proto new file mode 100644 index 000000000000..bff72301bcb2 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/csql_service.proto @@ -0,0 +1,79 @@ +// 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.cloud.alloydb.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/alloydb/v1/csql_resources.proto"; +import "google/cloud/alloydb/v1/resources.proto"; +import "google/cloud/alloydb/v1/service.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.AlloyDb.V1"; +option go_package = "cloud.google.com/go/alloydb/apiv1/alloydbpb;alloydbpb"; +option java_multiple_files = true; +option java_outer_classname = "CSQLServiceProto"; +option java_package = "com.google.cloud.alloydb.v1"; +option php_namespace = "Google\\Cloud\\AlloyDb\\V1"; +option ruby_package = "Google::Cloud::AlloyDB::V1"; + +// Service for interactions with CloudSQL. +service AlloyDBCSQLAdmin { + option (google.api.default_host) = "alloydb.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Restores an AlloyDB cluster from a CloudSQL resource. + rpc RestoreFromCloudSQL(RestoreFromCloudSQLRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL" + body: "*" + }; + option (google.api.method_signature) = "parent,cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } +} + +// Message for registering Restoring from CloudSQL resource. +message RestoreFromCloudSQLRequest { + // The source CloudSQL resource to restore from. + oneof source { + // Cluster created from CloudSQL backup run. + CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + } + + // Required. The location of the new cluster. For the required format, see the + // comment on Cluster.name field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "alloydb.googleapis.com/Cluster" + } + ]; + + // Required. ID of the requesting object. + string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto index dd0a692f3353..fdff1688be21 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto @@ -19,6 +19,7 @@ package google.cloud.alloydb.v1; import "google/api/field_behavior.proto"; import "google/api/field_info.proto"; import "google/api/resource.proto"; +import "google/cloud/alloydb/v1/csql_resources.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; @@ -309,8 +310,7 @@ message AutomatedBackupPolicy { // Optional. The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -337,8 +337,7 @@ message ContinuousBackupConfig { // The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 3; } @@ -480,6 +479,11 @@ message Cluster { // Optional. Create an instance that allows connections from Private Service // Connect endpoints to the instance. bool psc_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The project number that needs to be allowlisted on the + // network attachment to enable outbound connectivity. + int64 service_owned_project_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains information and all metadata related to TRIAL clusters. @@ -560,6 +564,10 @@ message Cluster { // Output only. Cluster created via DMS migration. MigrationSource migration_source = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cluster created from CloudSQL snapshot. + CloudSQLBackupRunSource cloudsql_backup_run_source = 42 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The name of the cluster resource with the format: @@ -729,26 +737,32 @@ message Instance { message MachineConfig { // The number of CPU's in the VM instance. int32 cpu_count = 1; + + // Machine type of the VM instance. E.g. "n2-highmem-4", + // "n2-highmem-8", "c4a-highmem-4-lssd". + // cpu_count must match the number of vCPUs in the machine type. + string machine_type = 4; } // Details of a single node in the instance. - // Nodes in an AlloyDB instance are ephemereal, they can change during + // Nodes in an AlloyDB instance are ephemeral, they can change during // update, failover, autohealing and resize operations. message Node { - // The Compute Engine zone of the VM e.g. "us-central1-b". - string zone_id = 1; + // Output only. The Compute Engine zone of the VM e.g. "us-central1-b". + string zone_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - string id = 2; + // Output only. The identifier of the VM e.g. + // "test-read-0601-407e52be-ms3l". + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The private IP address of the VM e.g. "10.57.0.34". - string ip = 3; + // Output only. The private IP address of the VM e.g. "10.57.0.34". + string ip = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Determined by state of the compute VM and postgres-service health. - // Compute VM state can have values listed in + // Output only. Determined by state of the compute VM and postgres-service + // health. Compute VM state can have values listed in // https://cloud.google.com/compute/docs/instances/instance-life-cycle and // postgres-service health can have values: HEALTHY and UNHEALTHY. - string state = 4; + string state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // QueryInsights Instance specific configuration. @@ -771,6 +785,45 @@ message Instance { optional uint32 query_plans_per_minute = 5; } + // Observability Instance specific configuration. + message ObservabilityInstanceConfig { + // Observability feature status for an instance. + // This flag is turned "off" by default. + optional bool enabled = 1; + + // Preserve comments in query string for an instance. + // This flag is turned "off" by default. + optional bool preserve_comments = 2; + + // Track wait events during query execution for an instance. + // This flag is turned "on" by default but tracking is enabled only after + // observability enabled flag is also turned on. + optional bool track_wait_events = 3; + + // Output only. Track wait event types during query execution for an + // instance. This flag is turned "on" by default but tracking is enabled + // only after observability enabled flag is also turned on. This is + // read-only flag and only modifiable by internal API. + optional bool track_wait_event_types = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Query string length. The default value is 10k. + optional int32 max_query_string_length = 5; + + // Record application tags for an instance. + // This flag is turned "off" by default. + optional bool record_application_tags = 6; + + // Number of query execution plans captured by Insights per minute + // for all queries combined. The default value is 200. + // Any integer between 0 to 200 is considered valid. + optional int32 query_plans_per_minute = 7; + + // Track actively running queries on the instance. + // If not set, this flag is "off" by default. + optional bool track_active_queries = 8; + } + // Configuration for a read pool instance. message ReadPoolConfig { // Read capacity, i.e. number of nodes in a read pool instance. @@ -787,6 +840,43 @@ message Instance { SslConfig ssl_config = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for setting up a PSC interface to enable outbound + // connectivity. + message PscInterfaceConfig { + // The network attachment resource created in the consumer network to which + // the PSC interface will be linked. This is of the format: + // "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". + // The network attachment must be in the same region as the instance. + string network_attachment_resource = 1; + } + + // Configuration for setting up PSC service automation. Consumer projects in + // the configs will be allowlisted automatically for the instance. + message PscAutoConnectionConfig { + // The consumer project to which the PSC service automation endpoint will + // be created. + string consumer_project = 1; + + // The consumer network for the PSC service automation, example: + // "projects/vpc-host-project/global/networks/default". + // The consumer network might be hosted a different project than the + // consumer project. + string consumer_network = 2; + + // Output only. The IP address of the PSC service automation endpoint. + string ip_address = 3 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The status of the PSC service automation connection. + string status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the service connection policy. + string consumer_network_status = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { @@ -805,6 +895,17 @@ message Instance { // Output only. The DNS name of the instance for PSC connectivity. // Name convention: ...alloydb-psc.goog string psc_dns_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configurations for setting up PSC interfaces attached to the + // instance which are used for outbound connectivity. Only primary instances + // can have PSC interface attached. Currently we only support 0 or 1 PSC + // interface. + repeated PscInterfaceConfig psc_interface_configs = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configurations for setting up PSC service automation. + repeated PscAutoConnectionConfig psc_auto_connections = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Metadata related to instance-level network configuration. @@ -959,11 +1060,13 @@ message Instance { // zone with available capacity. string gce_zone = 12; - // Database flags. Set at instance level. - // * They are copied from primary instance on read instance creation. - // * Read instances can set new or override existing flags that are relevant - // for reads, e.g. for enabling columnar cache on a read instance. Flags - // set on read instance may or may not be present on primary. + // Database flags. Set at the instance level. + // They are copied from the primary instance on secondary instance creation. + // Flags that have restrictions default to the value at primary + // instance on read instances during creation. Read instances can set new + // flags or override existing flags that are relevant for reads, for example, + // for enabling columnar cache on a read instance. Flags set on read instance + // might or might not be present on the primary instance. // // // This is a list of "key": "value" pairs. @@ -986,6 +1089,9 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; + // Configuration for observability. + ObservabilityInstanceConfig observability_config = 26; + // Read pool instance configuration. // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; @@ -1305,6 +1411,18 @@ message SupportedDatabaseFlag { NONE = 4; } + // The scope of the flag. + enum Scope { + // The scope of the flag is not specified. Default is DATABASE. + SCOPE_UNSPECIFIED = 0; + + // The flag is a database flag. + DATABASE = 1; + + // The flag is a connection pool flag. + CONNECTION_POOL = 2; + } + // The restrictions on the flag value per type. oneof restrictions { // Restriction on STRING type value. @@ -1314,6 +1432,15 @@ message SupportedDatabaseFlag { IntegerRestrictions integer_restrictions = 8; } + // The recommended value for the flag by type, if applicable. + oneof recommended_value { + // The recommended value for a STRING flag. + string recommended_string_value = 10; + + // The recommended value for an INTEGER flag. + google.protobuf.Int64Value recommended_integer_value = 11; + } + // The name of the flag resource, following Google Cloud conventions, e.g.: // * projects/{project}/locations/{location}/flags/{flag} // This field currently has no semantic meaning. @@ -1337,6 +1464,9 @@ message SupportedDatabaseFlag { // will automatically restart the database (making sure to satisfy any // availability SLO's). bool requires_db_restart = 6; + + // The scope of the flag. + Scope scope = 9; } // Message describing User object. diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto index 335ec8c6ff4b..272f2c92e207 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/service.proto @@ -88,6 +88,52 @@ service AlloyDBAdmin { }; } + // Exports data from the cluster. + // Imperative only. + rpc ExportCluster(ExportClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:export" + body: "*" + }; + option (google.api.method_signature) = + "name,gcs_destination,database,csv_export_options,sql_export_options"; + option (google.longrunning.operation_info) = { + response_type: "ExportClusterResponse" + metadata_type: "OperationMetadata" + }; + } + + // Imports data to the cluster. + // Imperative only. + rpc ImportCluster(ImportClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:import" + body: "*" + }; + option (google.api.method_signature) = "name,gcs_uri,database,user"; + option (google.longrunning.operation_info) = { + response_type: "ImportClusterResponse" + metadata_type: "OperationMetadata" + }; + } + + // Upgrades a single Cluster. + // Imperative only. + rpc UpgradeCluster(UpgradeClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/clusters/*}:upgrade" + body: "*" + }; + option (google.api.method_signature) = "name,version"; + option (google.longrunning.operation_info) = { + response_type: "UpgradeClusterResponse" + metadata_type: "OperationMetadata" + }; + } + // Deletes a single Cluster. rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) { @@ -614,6 +660,321 @@ message UpdateClusterRequest { bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Destination for Export. Export will be done to cloud storage. +message GcsDestination { + // Required. The path to the file in Google Cloud Storage where the export + // will be stored. The URI is in the form `gs://bucketName/fileName`. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Export cluster request. +message ExportClusterRequest { + // Options for exporting data in CSV format. + message CsvExportOptions { + // Required. The SELECT query used to extract the data. + string select_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the character that separates columns within each row + // (line) of the file. The default is comma. The value of this argument has + // to be a character in Hex ASCII Code. + string field_delimiter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the quoting character to be used when a data value is + // quoted. The default is double-quote. The value of this argument has to be + // a character in Hex ASCII Code. + string quote_character = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that should appear before a data + // character that needs to be escaped. The default is the same as quote + // character. The value of this argument has to be a character in Hex ASCII + // Code. + string escape_character = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Options for exporting data in SQL format. + message SqlExportOptions { + // Optional. Tables to export from. + repeated string tables = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, only export the schema. + optional bool schema_only = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, output commands to DROP all the dumped database + // objects prior to outputting the commands for creating them. + optional bool clean_target_objects = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, use DROP ... IF EXISTS commands to check for the + // object's existence before dropping it in clean_target_objects mode. + optional bool if_exist_target_objects = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Oneof field to support other destinations in future. + oneof destination { + // Required. Option to export data to cloud storage. + GcsDestination gcs_destination = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required field to specify export file type and options. + oneof export_options { + // Options for exporting data in CSV format. Required field to be set for + // CSV file type. + CsvExportOptions csv_export_options = 4; + + // Options for exporting data in SQL format. Required field to be set for + // SQL file type. + SqlExportOptions sql_export_options = 5; + } + + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. Name of the database where the export command will be executed. + // Note - Value provided should be the same as expected from + // `SELECT current_database();` and NOT as a resource reference. + string database = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response of export cluster rpc. +message ExportClusterResponse { + // Oneof field to support other destinations in future. + oneof destination { + // Required. Option to export data to cloud storage. + GcsDestination gcs_destination = 2 [(google.api.field_behavior) = REQUIRED]; + } +} + +// Import cluster request. +message ImportClusterRequest { + // Options for importing data in SQL format. + message SqlImportOptions {} + + // Options for importing data in CSV format. + message CsvImportOptions { + // Required. The database table to import CSV file into. + string table = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The columns to which CSV data is imported. If not specified, + // all columns of the database table are loaded with CSV data. + repeated string columns = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that separates columns within each row + // (line) of the file. The default is comma. The value of this argument has + // to be a character in Hex ASCII Code. + string field_delimiter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the quoting character to be used when a data value is + // quoted. The default is double-quote. The value of this argument has to be + // a character in Hex ASCII Code. + string quote_character = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that should appear before a data + // character that needs to be escaped. The default is same as quote + // character. The value of this argument has to be a character in Hex ASCII + // Code. + string escape_character = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // oneof field to support various import formats like SQL and CSV. + oneof import_options { + // Options for importing data in SQL format. + SqlImportOptions sql_import_options = 4; + + // Options for importing data in CSV format. + CsvImportOptions csv_import_options = 7; + } + + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. The path to the file in Google Cloud Storage where the source + // file for import will be stored. The URI is in the form + // `gs://bucketName/fileName`. + string gcs_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of the database to which the import will be done. + // For import from SQL file, this is required only if the file does not + // specify a database. + // Note - Value provided should be the same as expected from `SELECT + // current_database();` and NOT as a resource reference. + string database = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Database user to be used for importing the data. + // Note - Value provided should be the same as expected from + // `SELECT current_user;` and NOT as a resource reference. + string user = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of import rpc. +message ImportClusterResponse { + // Required. Size of the object downloaded from Google Cloud Storage in bytes. + int64 bytes_downloaded = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Upgrades a cluster. +message UpgradeClusterRequest { + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. The version the cluster is going to be upgraded to. + DatabaseVersion version = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server ignores the + // request if it has already been completed. The server guarantees that for at + // least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and + // the request times out. If you make the request again with the same request + // ID, the server can check if the original operation with the same request ID + // was received, and if so, ignores the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. If set, performs request validation, for example, permission + // checks and any other type of validation, but does not actually execute the + // create request. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The current etag of the Cluster. + // If an etag is provided and does not match the current etag of the Cluster, + // upgrade will be blocked and an ABORTED error will be returned. + string etag = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// UpgradeClusterResponse contains the response for upgrade cluster operation. +message UpgradeClusterResponse { + // Stage information for different stages in the upgrade process. + message StageInfo { + // The stage. + Stage stage = 1; + + // Status of the stage. + Status status = 2; + + // logs_url is the URL for the logs associated with a stage if that stage + // has logs. Right now, only three stages have logs: ALLOYDB_PRECHECK, + // PG_UPGRADE_CHECK, PRIMARY_INSTANCE_UPGRADE. + string logs_url = 3; + } + + // Details regarding the upgrade of instaces associated with a cluster. + message InstanceUpgradeDetails { + // Normalized name of the instance. + string name = 1; + + // Upgrade status of the instance. + Status upgrade_status = 2; + + // Instance type. + Instance.InstanceType instance_type = 3; + } + + // Upgrade details of a cluster. This cluster can be primary or secondary. + message ClusterUpgradeDetails { + // Normalized name of the cluster + string name = 1; + + // Upgrade status of the cluster. + Status upgrade_status = 2; + + // Cluster type which can either be primary or secondary. + Cluster.ClusterType cluster_type = 3; + + // Database version of the cluster after the upgrade operation. This will be + // the target version if the upgrade was successful otherwise it remains the + // same as that before the upgrade operation. + DatabaseVersion database_version = 4; + + // Array containing stage info associated with this cluster. + repeated StageInfo stage_info = 5; + + // Upgrade details of the instances directly associated with this cluster. + repeated InstanceUpgradeDetails instance_upgrade_details = 6; + } + + // Status of upgrade operation. + enum Status { + // Unspecified status. + STATUS_UNSPECIFIED = 0; + + // Not started. + NOT_STARTED = 4; + + // In progress. + IN_PROGRESS = 5; + + // Operation succeeded. + SUCCESS = 1; + + // Operation failed. + FAILED = 2; + + // Operation partially succeeded. + PARTIAL_SUCCESS = 3; + + // Cancel is in progress. + CANCEL_IN_PROGRESS = 6; + + // Cancellation complete. + CANCELLED = 7; + } + + // Stage in the upgrade. + enum Stage { + // Unspecified stage. + STAGE_UNSPECIFIED = 0; + + // Pre-upgrade custom checks, not covered by pg_upgrade. + ALLOYDB_PRECHECK = 1; + + // Pre-upgrade pg_upgrade checks. + PG_UPGRADE_CHECK = 2; + + // Clone the original cluster. + PREPARE_FOR_UPGRADE = 5; + + // Upgrade the primary instance(downtime). + PRIMARY_INSTANCE_UPGRADE = 3; + + // This stage is read pool upgrade. + READ_POOL_INSTANCES_UPGRADE = 4; + + // Rollback in case of critical failures. + ROLLBACK = 6; + + // Cleanup. + CLEANUP = 7; + } + + // Status of upgrade operation. + Status status = 1; + + // A user friendly message summarising the upgrade operation details and the + // next steps for the user if there is any. + string message = 2; + + // Array of upgrade details for the current cluster and all the secondary + // clusters associated with this cluster. + repeated ClusterUpgradeDetails cluster_upgrade_details = 3; +} + // Message for deleting a Cluster message DeleteClusterRequest { // Required. The name of the resource. For the required format, see the @@ -1239,7 +1600,7 @@ message ExecuteSqlRequest { // Required. Database user to be used for executing the SQL. // Note - Value provided should be the same as expected from // `SELECT current_user;` and NOT as a resource reference. - string user = 3 [(google.api.field_behavior) = REQUIRED]; + string user = 3 [(google.api.field_behavior) = OPTIONAL]; // Required. SQL statement to execute on database. Any valid statement is // permitted, including DDL, DML, DQL statements. @@ -1472,6 +1833,11 @@ message ListSupportedDatabaseFlagsRequest { // A token identifying a page of results the server should return. string page_token = 3; + + // Optional. The scope for which supported flags are requested. If not + // specified, default is DATABASE. + SupportedDatabaseFlag.Scope scope = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Message for response to listing SupportedDatabaseFlags. @@ -1519,9 +1885,9 @@ message GenerateClientCertificateRequest { // Optional. The public key from the client. string public_key = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. An optional hint to the endpoint to generate a client - // ceritificate that can be used by AlloyDB connectors to exchange additional - // metadata with the server after TLS handshake. + // Optional. An optional hint to the endpoint to generate a client certificate + // that can be used by AlloyDB connectors to exchange additional metadata with + // the server after TLS handshake. bool use_metadata_exchange = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -1570,6 +1936,10 @@ message OperationMetadata { // Output only. BatchCreateInstances related metadata. BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. UpgradeClusterStatus related metadata. + UpgradeClusterStatus upgrade_cluster_status = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The time the operation was created. @@ -1591,15 +1961,70 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Message for current status of the Major Version Upgrade operation. +message UpgradeClusterStatus { + // Status of an upgrade stage. + message StageStatus { + // Stage specific status information, if any. + oneof stage_specific_status { + // Read pool instances upgrade metadata. + ReadPoolInstancesUpgradeStageStatus read_pool_instances_upgrade = 11; + } + + // Upgrade stage. + UpgradeClusterResponse.Stage stage = 1; + + // State of this stage. + UpgradeClusterResponse.Status state = 2; + } + + // Read pool instances upgrade specific status. + message ReadPoolInstancesUpgradeStageStatus { + // Upgrade stats for read pool instances. + message Stats { + // Number of read pool instances for which upgrade has not started. + int32 not_started = 1; + + // Number of read pool instances undergoing upgrade. + int32 ongoing = 2; + + // Number of read pool instances successfully upgraded. + int32 success = 3; + + // Number of read pool instances which failed to upgrade. + int32 failed = 4; + } + + // Read pool instances upgrade statistics. + Stats upgrade_stats = 1; + } + + // Cluster Major Version Upgrade state. + UpgradeClusterResponse.Status state = 1; + + // Whether the operation is cancellable. + bool cancellable = 2; + + // Source database major version. + DatabaseVersion source_version = 3; + + // Target database major version. + DatabaseVersion target_version = 4; + + // Status of all upgrade stages. + repeated StageStatus stages = 5; +} + // Message for requesting list of Users message ListUsersRequest { // Required. Parent value for ListUsersRequest diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicy.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicy.java index 66f7bef4d38a..1c746f07f9de 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicy.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicy.java @@ -3522,8 +3522,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3543,8 +3542,7 @@ public boolean hasEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3566,8 +3564,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -5516,8 +5513,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5536,8 +5532,7 @@ public boolean hasEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5562,8 +5557,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5590,8 +5584,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1alpha.EncryptionCo *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5616,8 +5609,7 @@ public Builder setEncryptionConfig( *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5650,8 +5642,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1alpha.Encryption *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5675,8 +5666,7 @@ public Builder clearEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5695,8 +5685,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder getEncryptionCo *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5720,8 +5709,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder getEncryptionCo *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicyOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicyOrBuilder.java index 12e1cbbf78c0..7107826c1edb 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicyOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/AutomatedBackupPolicyOrBuilder.java @@ -240,8 +240,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -258,8 +257,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -276,8 +274,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/CSQLServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/CSQLServiceProto.java new file mode 100644 index 000000000000..d03983f42aba --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/CSQLServiceProto.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/alloydb/v1alpha/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public final class CSQLServiceProto { + private CSQLServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/alloydb/v1alpha/csql_serv" + + "ice.proto\022\034google.cloud.alloydb.v1alpha\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\0321goog" + + "le/cloud/alloydb/v1alpha/csql_resources." + + "proto\032,google/cloud/alloydb/v1alpha/reso" + + "urces.proto\032*google/cloud/alloydb/v1alph" + + "a/service.proto\032#google/longrunning/oper" + + "ations.proto\"\221\002\n\032RestoreFromCloudSQLRequ" + + "est\022[\n\032cloudsql_backup_run_source\030e \001(\0132" + + "5.google.cloud.alloydb.v1alpha.CloudSQLB" + + "ackupRunSourceH\000\0226\n\006parent\030\001 \001(\tB&\340A\002\372A " + + "\022\036alloydb.googleapis.com/Cluster\022\027\n\nclus" + + "ter_id\030\002 \001(\tB\003\340A\002\022;\n\007cluster\030\003 \001(\0132%.goo" + + "gle.cloud.alloydb.v1alpha.ClusterB\003\340A\002B\010" + + "\n\006source2\325\002\n\020AlloyDBCSQLAdmin\022\364\001\n\023Restor" + + "eFromCloudSQL\0228.google.cloud.alloydb.v1a" + + "lpha.RestoreFromCloudSQLRequest\032\035.google" + + ".longrunning.Operation\"\203\001\312A\034\n\007Cluster\022\021O" + + "perationMetadata\332A\021parent,cluster_id\202\323\344\223" + + "\002J\"E/v1alpha/{parent=projects/*/location" + + "s/*}/clusters:restoreFromCloudSQL:\001*\032J\312A" + + "\026alloydb.googleapis.com\322A.https://www.go" + + "ogleapis.com/auth/cloud-platformB\322\001\n com" + + ".google.cloud.alloydb.v1alphaB\020CSQLServi" + + "ceProtoP\001Z:cloud.google.com/go/alloydb/a" + + "piv1alpha/alloydbpb;alloydbpb\252\002\034Google.C" + + "loud.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\Allo" + + "yDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1" + + "alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.alloydb.v1alpha.CsqlResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1alpha.ResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1alpha.ServiceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor, + new java.lang.String[] { + "CloudsqlBackupRunSource", "Parent", "ClusterId", "Cluster", "Source", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.alloydb.v1alpha.CsqlResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1alpha.ResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1alpha.ServiceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Cluster.java index a5ceda5e8266..8ac05066a9b5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Cluster.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Cluster.java @@ -6323,7 +6323,7 @@ public com.google.cloud.alloydb.v1alpha.Cluster.NetworkConfig getNetworkConfig() * * * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The network. */ @java.lang.Override @@ -6356,7 +6356,7 @@ public java.lang.String getNetwork() { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Override @@ -6712,7 +6712,7 @@ public com.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy getAutomatedBackup * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -6731,7 +6731,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Override @@ -11585,7 +11585,7 @@ public Builder clearNetworkConfig() { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The network. */ @java.lang.Deprecated @@ -11617,7 +11617,7 @@ public java.lang.String getNetwork() { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Deprecated @@ -11649,7 +11649,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @param value The network to set. * @return This builder for chaining. */ @@ -11680,7 +11680,7 @@ public Builder setNetwork(java.lang.String value) { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return This builder for chaining. */ @java.lang.Deprecated @@ -11707,7 +11707,7 @@ public Builder clearNetwork() { *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @param value The bytes for network to set. * @return This builder for chaining. */ @@ -12593,7 +12593,7 @@ public Builder clearAutomatedBackupPolicy() { * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -12611,7 +12611,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterOrBuilder.java index 74ab9130fb5f..362b2507bb31 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ClusterOrBuilder.java @@ -570,7 +570,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The network. */ @java.lang.Deprecated @@ -592,7 +592,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1alpha.Cluster.network is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=627 + * google/cloud/alloydb/v1alpha/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Deprecated @@ -826,7 +826,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1alpha.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1alpha.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=662 + * google/cloud/alloydb/v1alpha/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java index d04fab6883b8..2349d44cfb6e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfo.java @@ -264,7 +264,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -285,7 +285,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -306,7 +306,7 @@ public int getPemCertificateChainCount() { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -328,7 +328,7 @@ public java.lang.String getPemCertificateChain(int index) { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1317,7 +1317,7 @@ private void ensurePemCertificateChainIsMutable() { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1339,7 +1339,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { *
* * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1360,7 +1360,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1382,7 +1382,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1404,7 +1404,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1434,7 +1434,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1463,7 +1463,7 @@ public Builder addPemCertificateChain(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1489,7 +1489,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable va * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1514,7 +1514,7 @@ public Builder clearPemCertificateChain() { * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java index ecff932cf677..aeede5d79b69 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ConnectionInfoOrBuilder.java @@ -131,7 +131,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -150,7 +150,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -169,7 +169,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -189,7 +189,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1alpha/resources.proto;l=1187 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1227 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfig.java index d336c57652e5..1974c82298e3 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfig.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfig.java @@ -129,8 +129,7 @@ public int getRecoveryWindowDays() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -148,8 +147,7 @@ public boolean hasEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -169,8 +167,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -745,8 +742,7 @@ public Builder clearRecoveryWindowDays() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -763,8 +759,7 @@ public boolean hasEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -787,8 +782,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig getEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -813,8 +807,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1alpha.EncryptionCo *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -837,8 +830,7 @@ public Builder setEncryptionConfig( *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -869,8 +861,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1alpha.Encryption *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -892,8 +883,7 @@ public Builder clearEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -910,8 +900,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder getEncryptionCo *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -933,8 +922,7 @@ public com.google.cloud.alloydb.v1alpha.EncryptionConfig.Builder getEncryptionCo *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfigOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfigOrBuilder.java index 85f623ae4909..ed0dcbf83c9d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfigOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ContinuousBackupConfigOrBuilder.java @@ -71,8 +71,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -87,8 +86,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; @@ -103,8 +101,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequest.java new file mode 100644 index 000000000000..081d2128ac8f --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequest.java @@ -0,0 +1,4777 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Export cluster request.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest} + */ +public final class ExportClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest) + ExportClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportClusterRequest.newBuilder() to construct. + private ExportClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportClusterRequest() { + name_ = ""; + database_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.Builder.class); + } + + public interface CsvExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + java.lang.String getSelectQuery(); + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + com.google.protobuf.ByteString getSelectQueryBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + java.lang.String getFieldDelimiter(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + com.google.protobuf.ByteString getFieldDelimiterBytes(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + java.lang.String getQuoteCharacter(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + com.google.protobuf.ByteString getQuoteCharacterBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + java.lang.String getEscapeCharacter(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + com.google.protobuf.ByteString getEscapeCharacterBytes(); + } + + /** + * + * + *
+   * Options for exporting data in CSV format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions} + */ + public static final class CsvExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + CsvExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CsvExportOptions.newBuilder() to construct. + private CsvExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvExportOptions() { + selectQuery_ = ""; + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvExportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder.class); + } + + public static final int SELECT_QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object selectQuery_ = ""; + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + @java.lang.Override + public java.lang.String getSelectQuery() { + java.lang.Object ref = selectQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selectQuery_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The SELECT query used to extract the data.
+     * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSelectQueryBytes() { + java.lang.Object ref = selectQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selectQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_DELIMITER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + @java.lang.Override + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUOTE_CHARACTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + @java.lang.Override + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ESCAPE_CHARACTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + @java.lang.Override + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is the same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = 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(selectQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, escapeCharacter_); + } + 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(selectQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selectQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, escapeCharacter_); + } + 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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions other = + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) obj; + + if (!getSelectQuery().equals(other.getSelectQuery())) return false; + if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false; + if (!getQuoteCharacter().equals(other.getQuoteCharacter())) return false; + if (!getEscapeCharacter().equals(other.getEscapeCharacter())) 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) + SELECT_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSelectQuery().hashCode(); + hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getFieldDelimiter().hashCode(); + hash = (37 * hash) + QUOTE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getQuoteCharacter().hashCode(); + hash = (37 * hash) + ESCAPE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getEscapeCharacter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions 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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions 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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions 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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for exporting data in CSV format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + selectQuery_ = ""; + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions build() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions buildPartial() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions result = + new com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.selectQuery_ = selectQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldDelimiter_ = fieldDelimiter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.quoteCharacter_ = quoteCharacter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.escapeCharacter_ = escapeCharacter_; + } + } + + @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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions other) { + if (other + == com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance()) return this; + if (!other.getSelectQuery().isEmpty()) { + selectQuery_ = other.selectQuery_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFieldDelimiter().isEmpty()) { + fieldDelimiter_ = other.fieldDelimiter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuoteCharacter().isEmpty()) { + quoteCharacter_ = other.quoteCharacter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEscapeCharacter().isEmpty()) { + escapeCharacter_ = other.escapeCharacter_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + selectQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + fieldDelimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + quoteCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + escapeCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object selectQuery_ = ""; + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The selectQuery. + */ + public java.lang.String getSelectQuery() { + java.lang.Object ref = selectQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selectQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for selectQuery. + */ + public com.google.protobuf.ByteString getSelectQueryBytes() { + java.lang.Object ref = selectQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + selectQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The selectQuery to set. + * @return This builder for chaining. + */ + public Builder setSelectQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + selectQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSelectQuery() { + selectQuery_ = getDefaultInstance().getSelectQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The SELECT query used to extract the data.
+       * 
+ * + * string select_query = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for selectQuery to set. + * @return This builder for chaining. + */ + public Builder setSelectQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + selectQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldDelimiter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldDelimiter() { + fieldDelimiter_ = getDefaultInstance().getFieldDelimiter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldDelimiter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + quoteCharacter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuoteCharacter() { + quoteCharacter_ = getDefaultInstance().getQuoteCharacter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + quoteCharacter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + escapeCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscapeCharacter() { + escapeCharacter_ = getDefaultInstance().getEscapeCharacter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is the same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + escapeCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + private static final com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions(); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvExportOptions 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.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SqlExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + java.util.List getTablesList(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + int getTablesCount(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + java.lang.String getTables(int index); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + com.google.protobuf.ByteString getTablesBytes(int index); + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + boolean hasSchemaOnly(); + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + boolean getSchemaOnly(); + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + boolean hasCleanTargetObjects(); + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + boolean getCleanTargetObjects(); + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + boolean hasIfExistTargetObjects(); + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + boolean getIfExistTargetObjects(); + } + + /** + * + * + *
+   * Options for exporting data in SQL format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions} + */ + public static final class SqlExportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + SqlExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SqlExportOptions.newBuilder() to construct. + private SqlExportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlExportOptions() { + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlExportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder.class); + } + + private int bitField0_; + public static final int TABLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + public com.google.protobuf.ProtocolStringList getTablesList() { + return tables_; + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + public int getTablesCount() { + return tables_.size(); + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + public java.lang.String getTables(int index) { + return tables_.get(index); + } + + /** + * + * + *
+     * Optional. Tables to export from.
+     * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + public com.google.protobuf.ByteString getTablesBytes(int index) { + return tables_.getByteString(index); + } + + public static final int SCHEMA_ONLY_FIELD_NUMBER = 2; + private boolean schemaOnly_ = false; + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + @java.lang.Override + public boolean hasSchemaOnly() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. If true, only export the schema.
+     * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + @java.lang.Override + public boolean getSchemaOnly() { + return schemaOnly_; + } + + public static final int CLEAN_TARGET_OBJECTS_FIELD_NUMBER = 3; + private boolean cleanTargetObjects_ = false; + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + @java.lang.Override + public boolean hasCleanTargetObjects() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. If true, output commands to DROP all the dumped database
+     * objects prior to outputting the commands for creating them.
+     * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + @java.lang.Override + public boolean getCleanTargetObjects() { + return cleanTargetObjects_; + } + + public static final int IF_EXIST_TARGET_OBJECTS_FIELD_NUMBER = 4; + private boolean ifExistTargetObjects_ = false; + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + @java.lang.Override + public boolean hasIfExistTargetObjects() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. If true, use DROP ... IF EXISTS commands to check for the
+     * object's existence before dropping it in clean_target_objects mode.
+     * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + @java.lang.Override + public boolean getIfExistTargetObjects() { + return ifExistTargetObjects_; + } + + 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 < tables_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tables_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(2, schemaOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(3, cleanTargetObjects_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(4, ifExistTargetObjects_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tables_.size(); i++) { + dataSize += computeStringSizeNoTag(tables_.getRaw(i)); + } + size += dataSize; + size += 1 * getTablesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, schemaOnly_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, cleanTargetObjects_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, ifExistTargetObjects_); + } + 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions other = + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) obj; + + if (!getTablesList().equals(other.getTablesList())) return false; + if (hasSchemaOnly() != other.hasSchemaOnly()) return false; + if (hasSchemaOnly()) { + if (getSchemaOnly() != other.getSchemaOnly()) return false; + } + if (hasCleanTargetObjects() != other.hasCleanTargetObjects()) return false; + if (hasCleanTargetObjects()) { + if (getCleanTargetObjects() != other.getCleanTargetObjects()) return false; + } + if (hasIfExistTargetObjects() != other.hasIfExistTargetObjects()) return false; + if (hasIfExistTargetObjects()) { + if (getIfExistTargetObjects() != other.getIfExistTargetObjects()) 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 (getTablesCount() > 0) { + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTablesList().hashCode(); + } + if (hasSchemaOnly()) { + hash = (37 * hash) + SCHEMA_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSchemaOnly()); + } + if (hasCleanTargetObjects()) { + hash = (37 * hash) + CLEAN_TARGET_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCleanTargetObjects()); + } + if (hasIfExistTargetObjects()) { + hash = (37 * hash) + IF_EXIST_TARGET_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIfExistTargetObjects()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for exporting data in SQL format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + schemaOnly_ = false; + cleanTargetObjects_ = false; + ifExistTargetObjects_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions build() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions buildPartial() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions result = + new com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + tables_.makeImmutable(); + result.tables_ = tables_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaOnly_ = schemaOnly_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cleanTargetObjects_ = cleanTargetObjects_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ifExistTargetObjects_ = ifExistTargetObjects_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions other) { + if (other + == com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance()) return this; + if (!other.tables_.isEmpty()) { + if (tables_.isEmpty()) { + tables_ = other.tables_; + bitField0_ |= 0x00000001; + } else { + ensureTablesIsMutable(); + tables_.addAll(other.tables_); + } + onChanged(); + } + if (other.hasSchemaOnly()) { + setSchemaOnly(other.getSchemaOnly()); + } + if (other.hasCleanTargetObjects()) { + setCleanTargetObjects(other.getCleanTargetObjects()); + } + if (other.hasIfExistTargetObjects()) { + setIfExistTargetObjects(other.getIfExistTargetObjects()); + } + 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(); + ensureTablesIsMutable(); + tables_.add(s); + break; + } // case 10 + case 16: + { + schemaOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + cleanTargetObjects_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + ifExistTargetObjects_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList tables_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTablesIsMutable() { + if (!tables_.isModifiable()) { + tables_ = new com.google.protobuf.LazyStringArrayList(tables_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tables. + */ + public com.google.protobuf.ProtocolStringList getTablesList() { + tables_.makeImmutable(); + return tables_; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tables. + */ + public int getTablesCount() { + return tables_.size(); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tables at the given index. + */ + public java.lang.String getTables(int index) { + return tables_.get(index); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tables at the given index. + */ + public com.google.protobuf.ByteString getTablesBytes(int index) { + return tables_.getByteString(index); + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tables to set. + * @return This builder for chaining. + */ + public Builder setTables(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tables to add. + * @return This builder for chaining. + */ + public Builder addTables(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesIsMutable(); + tables_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tables to add. + * @return This builder for chaining. + */ + public Builder addAllTables(java.lang.Iterable values) { + ensureTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tables_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTables() { + tables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Tables to export from.
+       * 
+ * + * repeated string tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tables to add. + * @return This builder for chaining. + */ + public Builder addTablesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTablesIsMutable(); + tables_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean schemaOnly_; + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the schemaOnly field is set. + */ + @java.lang.Override + public boolean hasSchemaOnly() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The schemaOnly. + */ + @java.lang.Override + public boolean getSchemaOnly() { + return schemaOnly_; + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The schemaOnly to set. + * @return This builder for chaining. + */ + public Builder setSchemaOnly(boolean value) { + + schemaOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, only export the schema.
+       * 
+ * + * optional bool schema_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSchemaOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + schemaOnly_ = false; + onChanged(); + return this; + } + + private boolean cleanTargetObjects_; + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cleanTargetObjects field is set. + */ + @java.lang.Override + public boolean hasCleanTargetObjects() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cleanTargetObjects. + */ + @java.lang.Override + public boolean getCleanTargetObjects() { + return cleanTargetObjects_; + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The cleanTargetObjects to set. + * @return This builder for chaining. + */ + public Builder setCleanTargetObjects(boolean value) { + + cleanTargetObjects_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, output commands to DROP all the dumped database
+       * objects prior to outputting the commands for creating them.
+       * 
+ * + * optional bool clean_target_objects = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCleanTargetObjects() { + bitField0_ = (bitField0_ & ~0x00000004); + cleanTargetObjects_ = false; + onChanged(); + return this; + } + + private boolean ifExistTargetObjects_; + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ifExistTargetObjects field is set. + */ + @java.lang.Override + public boolean hasIfExistTargetObjects() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ifExistTargetObjects. + */ + @java.lang.Override + public boolean getIfExistTargetObjects() { + return ifExistTargetObjects_; + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ifExistTargetObjects to set. + * @return This builder for chaining. + */ + public Builder setIfExistTargetObjects(boolean value) { + + ifExistTargetObjects_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, use DROP ... IF EXISTS commands to check for the
+       * object's existence before dropping it in clean_target_objects mode.
+       * 
+ * + * optional bool if_exist_target_objects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIfExistTargetObjects() { + bitField0_ = (bitField0_ & ~0x00000008); + ifExistTargetObjects_ = 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + private static final com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions(); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlExportOptions 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.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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_DESTINATION(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_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + private int exportOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object exportOptions_; + + public enum ExportOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CSV_EXPORT_OPTIONS(4), + SQL_EXPORT_OPTIONS(5), + EXPORTOPTIONS_NOT_SET(0); + private final int value; + + private ExportOptionsCase(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 ExportOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static ExportOptionsCase forNumber(int value) { + switch (value) { + case 4: + return CSV_EXPORT_OPTIONS; + case 5: + return SQL_EXPORT_OPTIONS; + case 0: + return EXPORTOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExportOptionsCase getExportOptionsCase() { + return ExportOptionsCase.forNumber(exportOptionsCase_); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + + public static final int CSV_EXPORT_OPTIONS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvExportOptions() { + return exportOptionsCase_ == 4; + } + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + getCsvExportOptions() { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder() { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + + public static final int SQL_EXPORT_OPTIONS_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlExportOptions() { + return exportOptionsCase_ == 5; + } + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + getSqlExportOptions() { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder() { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = 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 (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, database_); + } + if (exportOptionsCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) exportOptions_); + } + if (exportOptionsCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) exportOptions_); + } + 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.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, database_); + } + if (exportOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_); + } + if (exportOptionsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_); + } + 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.alloydb.v1alpha.ExportClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ExportClusterRequest other = + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsDestination().equals(other.getGcsDestination())) return false; + break; + case 0: + default: + } + if (!getExportOptionsCase().equals(other.getExportOptionsCase())) return false; + switch (exportOptionsCase_) { + case 4: + if (!getCsvExportOptions().equals(other.getCsvExportOptions())) return false; + break; + case 5: + if (!getSqlExportOptions().equals(other.getSqlExportOptions())) 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) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + switch (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 0: + default: + } + switch (exportOptionsCase_) { + case 4: + hash = (37 * hash) + CSV_EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCsvExportOptions().hashCode(); + break; + case 5: + hash = (37 * hash) + SQL_EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSqlExportOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest 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.alloydb.v1alpha.ExportClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest 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.alloydb.v1alpha.ExportClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ExportClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest 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.alloydb.v1alpha.ExportClusterRequest 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; + } + + /** + * + * + *
+   * Export cluster request.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ExportClusterRequest) + com.google.cloud.alloydb.v1alpha.ExportClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.class, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.ExportClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + if (csvExportOptionsBuilder_ != null) { + csvExportOptionsBuilder_.clear(); + } + if (sqlExportOptionsBuilder_ != null) { + sqlExportOptionsBuilder_.clear(); + } + name_ = ""; + database_ = ""; + destinationCase_ = 0; + destination_ = null; + exportOptionsCase_ = 0; + exportOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest build() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest buildPartial() { + com.google.cloud.alloydb.v1alpha.ExportClusterRequest result = + new com.google.cloud.alloydb.v1alpha.ExportClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.ExportClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.ExportClusterRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.build(); + } + result.exportOptionsCase_ = exportOptionsCase_; + result.exportOptions_ = this.exportOptions_; + if (exportOptionsCase_ == 4 && csvExportOptionsBuilder_ != null) { + result.exportOptions_ = csvExportOptionsBuilder_.build(); + } + if (exportOptionsCase_ == 5 && sqlExportOptionsBuilder_ != null) { + result.exportOptions_ = sqlExportOptionsBuilder_.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.alloydb.v1alpha.ExportClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.ExportClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ExportClusterRequest other) { + if (other == com.google.cloud.alloydb.v1alpha.ExportClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + switch (other.getExportOptionsCase()) { + case CSV_EXPORT_OPTIONS: + { + mergeCsvExportOptions(other.getCsvExportOptions()); + break; + } + case SQL_EXPORT_OPTIONS: + { + mergeSqlExportOptions(other.getSqlExportOptions()); + break; + } + case EXPORTOPTIONS_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_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + case 26: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getCsvExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + exportOptionsCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getSqlExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + exportOptionsCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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 exportOptionsCase_ = 0; + private java.lang.Object exportOptions_; + + public ExportOptionsCase getExportOptionsCase() { + return ExportOptionsCase.forNumber(exportOptionsCase_); + } + + public Builder clearExportOptions() { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.alloydb.v1alpha.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.alloydb.v1alpha.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.alloydb.v1alpha.GcsDestination.newBuilder( + (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1alpha.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 2) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder>( + (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return gcsDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder> + csvExportOptionsBuilder_; + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvExportOptions() { + return exportOptionsCase_ == 4; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + getCsvExportOptions() { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } else { + if (exportOptionsCase_ == 4) { + return csvExportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder setCsvExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions value) { + if (csvExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + onChanged(); + } else { + csvExportOptionsBuilder_.setMessage(value); + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder setCsvExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder + builderForValue) { + if (csvExportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + onChanged(); + } else { + csvExportOptionsBuilder_.setMessage(builderForValue.build()); + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder mergeCsvExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions value) { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4 + && exportOptions_ + != com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance()) { + exportOptions_ = + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.newBuilder( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + exportOptions_ = value; + } + onChanged(); + } else { + if (exportOptionsCase_ == 4) { + csvExportOptionsBuilder_.mergeFrom(value); + } else { + csvExportOptionsBuilder_.setMessage(value); + } + } + exportOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public Builder clearCsvExportOptions() { + if (csvExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 4) { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + } + } else { + if (exportOptionsCase_ == 4) { + exportOptionsCase_ = 0; + exportOptions_ = null; + } + csvExportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder + getCsvExportOptionsBuilder() { + return getCsvExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder() { + if ((exportOptionsCase_ == 4) && (csvExportOptionsBuilder_ != null)) { + return csvExportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (exportOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in CSV format. Required field to be set for
+     * CSV file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder> + getCsvExportOptionsFieldBuilder() { + if (csvExportOptionsBuilder_ == null) { + if (!(exportOptionsCase_ == 4)) { + exportOptions_ = + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions + .getDefaultInstance(); + } + csvExportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions) + exportOptions_, + getParentForChildren(), + isClean()); + exportOptions_ = null; + } + exportOptionsCase_ = 4; + onChanged(); + return csvExportOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder> + sqlExportOptionsBuilder_; + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlExportOptions() { + return exportOptionsCase_ == 5; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + getSqlExportOptions() { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } else { + if (exportOptionsCase_ == 5) { + return sqlExportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder setSqlExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions value) { + if (sqlExportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + onChanged(); + } else { + sqlExportOptionsBuilder_.setMessage(value); + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder setSqlExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder + builderForValue) { + if (sqlExportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + onChanged(); + } else { + sqlExportOptionsBuilder_.setMessage(builderForValue.build()); + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder mergeSqlExportOptions( + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions value) { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5 + && exportOptions_ + != com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance()) { + exportOptions_ = + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.newBuilder( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + exportOptions_ = value; + } + onChanged(); + } else { + if (exportOptionsCase_ == 5) { + sqlExportOptionsBuilder_.mergeFrom(value); + } else { + sqlExportOptionsBuilder_.setMessage(value); + } + } + exportOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public Builder clearSqlExportOptions() { + if (sqlExportOptionsBuilder_ == null) { + if (exportOptionsCase_ == 5) { + exportOptionsCase_ = 0; + exportOptions_ = null; + onChanged(); + } + } else { + if (exportOptionsCase_ == 5) { + exportOptionsCase_ = 0; + exportOptions_ = null; + } + sqlExportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder + getSqlExportOptionsBuilder() { + return getSqlExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder() { + if ((exportOptionsCase_ == 5) && (sqlExportOptionsBuilder_ != null)) { + return sqlExportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (exportOptionsCase_ == 5) { + return (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_; + } + return com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for exporting data in SQL format. Required field to be set for
+     * SQL file type.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder> + getSqlExportOptionsFieldBuilder() { + if (sqlExportOptionsBuilder_ == null) { + if (!(exportOptionsCase_ == 5)) { + exportOptions_ = + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions + .getDefaultInstance(); + } + sqlExportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions) + exportOptions_, + getParentForChildren(), + isClean()); + exportOptions_ = null; + } + exportOptionsCase_ = 5; + onChanged(); + return sqlExportOptionsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the database where the export command will be executed.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.ExportClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ExportClusterRequest) + private static final com.google.cloud.alloydb.v1alpha.ExportClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.ExportClusterRequest(); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportClusterRequest 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.alloydb.v1alpha.ExportClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequestOrBuilder.java new file mode 100644 index 000000000000..e8042f8a4798 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterRequestOrBuilder.java @@ -0,0 +1,227 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface ExportClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ExportClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return Whether the csvExportOptions field is set. + */ + boolean hasCsvExportOptions(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + * + * @return The csvExportOptions. + */ + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions getCsvExportOptions(); + + /** + * + * + *
+   * Options for exporting data in CSV format. Required field to be set for
+   * CSV file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions csv_export_options = 4; + * + */ + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptionsOrBuilder + getCsvExportOptionsOrBuilder(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return Whether the sqlExportOptions field is set. + */ + boolean hasSqlExportOptions(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + * + * @return The sqlExportOptions. + */ + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions getSqlExportOptions(); + + /** + * + * + *
+   * Options for exporting data in SQL format. Required field to be set for
+   * SQL file type.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions sql_export_options = 5; + * + */ + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsOrBuilder + getSqlExportOptionsOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+   * Required. Name of the database where the export command will be executed.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.DestinationCase getDestinationCase(); + + com.google.cloud.alloydb.v1alpha.ExportClusterRequest.ExportOptionsCase getExportOptionsCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponse.java new file mode 100644 index 000000000000..224de30a6e52 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponse.java @@ -0,0 +1,858 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Response of export cluster rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterResponse} + */ +public final class ExportClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ExportClusterResponse) + ExportClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportClusterResponse.newBuilder() to construct. + private ExportClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportClusterResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterResponse.class, + com.google.cloud.alloydb.v1alpha.ExportClusterResponse.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_DESTINATION(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_DESTINATION; + 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_DESTINATION_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.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 (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_); + } + 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.alloydb.v1alpha.ExportClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ExportClusterResponse other = + (com.google.cloud.alloydb.v1alpha.ExportClusterResponse) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsDestination().equals(other.getGcsDestination())) 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 (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse 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.alloydb.v1alpha.ExportClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse 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.alloydb.v1alpha.ExportClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ExportClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse 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.alloydb.v1alpha.ExportClusterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response of export cluster rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ExportClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ExportClusterResponse) + com.google.cloud.alloydb.v1alpha.ExportClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ExportClusterResponse.class, + com.google.cloud.alloydb.v1alpha.ExportClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.ExportClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsDestinationBuilder_ != null) { + gcsDestinationBuilder_.clear(); + } + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ExportClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterResponse build() { + com.google.cloud.alloydb.v1alpha.ExportClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ExportClusterResponse buildPartial() { + com.google.cloud.alloydb.v1alpha.ExportClusterResponse result = + new com.google.cloud.alloydb.v1alpha.ExportClusterResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.ExportClusterResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.ExportClusterResponse result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + if (destinationCase_ == 2 && gcsDestinationBuilder_ != null) { + result.destination_ = gcsDestinationBuilder_.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.alloydb.v1alpha.ExportClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.ExportClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ExportClusterResponse other) { + if (other == com.google.cloud.alloydb.v1alpha.ExportClusterResponse.getDefaultInstance()) + return this; + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + 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 18: + { + input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry); + destinationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + @java.lang.Override + public boolean hasGcsDestination() { + return destinationCase_ == 2; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination(com.google.cloud.alloydb.v1alpha.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGcsDestination( + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGcsDestination(com.google.cloud.alloydb.v1alpha.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.alloydb.v1alpha.GcsDestination.newBuilder( + (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + gcsDestinationBuilder_.mergeFrom(value); + } else { + gcsDestinationBuilder_.setMessage(value); + } + } + destinationCase_ = 2; + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1alpha.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 2) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_; + } + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Required. Option to export data to cloud storage.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GcsDestination, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder, + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder>( + (com.google.cloud.alloydb.v1alpha.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + return gcsDestinationBuilder_; + } + + @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.alloydb.v1alpha.ExportClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ExportClusterResponse) + private static final com.google.cloud.alloydb.v1alpha.ExportClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.ExportClusterResponse(); + } + + public static com.google.cloud.alloydb.v1alpha.ExportClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportClusterResponse 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.alloydb.v1alpha.ExportClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponseOrBuilder.java new file mode 100644 index 000000000000..34aae6461136 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ExportClusterResponseOrBuilder.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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface ExportClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ExportClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The gcsDestination. + */ + com.google.cloud.alloydb.v1alpha.GcsDestination getGcsDestination(); + + /** + * + * + *
+   * Required. Option to export data to cloud storage.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GcsDestination gcs_destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + com.google.cloud.alloydb.v1alpha.ExportClusterResponse.DestinationCase getDestinationCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAEntitlementType.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAEntitlementType.java new file mode 100644 index 000000000000..07cea59ed01e --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAEntitlementType.java @@ -0,0 +1,158 @@ +/* + * 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/alloydb/v1alpha/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Enum representing the type of GCA entitlement assigned to a resource.
+ * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1alpha.GCAEntitlementType} + */ +public enum GCAEntitlementType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * No GCA entitlement is assigned.
+   * 
+ * + * GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + */ + GCA_ENTITLEMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * The resource is entitled to the GCA Standard Tier.
+   * 
+ * + * GCA_STANDARD = 1; + */ + GCA_STANDARD(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * No GCA entitlement is assigned.
+   * 
+ * + * GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int GCA_ENTITLEMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The resource is entitled to the GCA Standard Tier.
+   * 
+ * + * GCA_STANDARD = 1; + */ + public static final int GCA_STANDARD_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GCAEntitlementType 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 GCAEntitlementType forNumber(int value) { + switch (value) { + case 0: + return GCA_ENTITLEMENT_TYPE_UNSPECIFIED; + case 1: + return GCA_STANDARD; + 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 GCAEntitlementType findValueByNumber(int number) { + return GCAEntitlementType.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.alloydb.v1alpha.GeminiProto.getDescriptor().getEnumTypes().get(0); + } + + private static final GCAEntitlementType[] VALUES = values(); + + public static GCAEntitlementType 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 GCAEntitlementType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.GCAEntitlementType) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfig.java new file mode 100644 index 000000000000..770533e0cd77 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfig.java @@ -0,0 +1,624 @@ +/* + * 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/alloydb/v1alpha/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Instance level configuration parameters related to the Gemini Cloud Assist
+ * product.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.GCAInstanceConfig} + */ +public final class GCAInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.GCAInstanceConfig) + GCAInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GCAInstanceConfig.newBuilder() to construct. + private GCAInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GCAInstanceConfig() { + gcaEntitlement_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GCAInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.GeminiProto + .internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.GeminiProto + .internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder.class); + } + + public static final int GCA_ENTITLEMENT_FIELD_NUMBER = 1; + private int gcaEntitlement_ = 0; + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + @java.lang.Override + public int getGcaEntitlementValue() { + return gcaEntitlement_; + } + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAEntitlementType getGcaEntitlement() { + com.google.cloud.alloydb.v1alpha.GCAEntitlementType result = + com.google.cloud.alloydb.v1alpha.GCAEntitlementType.forNumber(gcaEntitlement_); + return result == null + ? com.google.cloud.alloydb.v1alpha.GCAEntitlementType.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 (gcaEntitlement_ + != com.google.cloud.alloydb.v1alpha.GCAEntitlementType.GCA_ENTITLEMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, gcaEntitlement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcaEntitlement_ + != com.google.cloud.alloydb.v1alpha.GCAEntitlementType.GCA_ENTITLEMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gcaEntitlement_); + } + 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.alloydb.v1alpha.GCAInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig other = + (com.google.cloud.alloydb.v1alpha.GCAInstanceConfig) obj; + + if (gcaEntitlement_ != other.gcaEntitlement_) 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) + GCA_ENTITLEMENT_FIELD_NUMBER; + hash = (53 * hash) + gcaEntitlement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig 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.alloydb.v1alpha.GCAInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig 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.alloydb.v1alpha.GCAInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig parseDelimitedFrom( + java.io.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.alloydb.v1alpha.GCAInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig 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.alloydb.v1alpha.GCAInstanceConfig 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; + } + + /** + * + * + *
+   * Instance level configuration parameters related to the Gemini Cloud Assist
+   * product.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.GCAInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.GCAInstanceConfig) + com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.GeminiProto + .internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.GeminiProto + .internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcaEntitlement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.GeminiProto + .internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig build() { + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig result = + new com.google.cloud.alloydb.v1alpha.GCAInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcaEntitlement_ = gcaEntitlement_; + } + } + + @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.alloydb.v1alpha.GCAInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.GCAInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig other) { + if (other == com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance()) + return this; + if (other.gcaEntitlement_ != 0) { + setGcaEntitlementValue(other.getGcaEntitlementValue()); + } + 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: + { + gcaEntitlement_ = input.readEnum(); + 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 gcaEntitlement_ = 0; + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + @java.lang.Override + public int getGcaEntitlementValue() { + return gcaEntitlement_; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for gcaEntitlement to set. + * @return This builder for chaining. + */ + public Builder setGcaEntitlementValue(int value) { + gcaEntitlement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAEntitlementType getGcaEntitlement() { + com.google.cloud.alloydb.v1alpha.GCAEntitlementType result = + com.google.cloud.alloydb.v1alpha.GCAEntitlementType.forNumber(gcaEntitlement_); + return result == null + ? com.google.cloud.alloydb.v1alpha.GCAEntitlementType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The gcaEntitlement to set. + * @return This builder for chaining. + */ + public Builder setGcaEntitlement(com.google.cloud.alloydb.v1alpha.GCAEntitlementType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gcaEntitlement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGcaEntitlement() { + bitField0_ = (bitField0_ & ~0x00000001); + gcaEntitlement_ = 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.alloydb.v1alpha.GCAInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.GCAInstanceConfig) + private static final com.google.cloud.alloydb.v1alpha.GCAInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.GCAInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1alpha.GCAInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GCAInstanceConfig 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.alloydb.v1alpha.GCAInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfigOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..e095038186ec --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GCAInstanceConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/alloydb/v1alpha/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface GCAInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.GCAInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + int getGcaEntitlementValue(); + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + com.google.cloud.alloydb.v1alpha.GCAEntitlementType getGcaEntitlement(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestination.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestination.java new file mode 100644 index 000000000000..a883da5008a0 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestination.java @@ -0,0 +1,641 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Destination for Export. Export will be done to cloud storage.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.GcsDestination} + */ +public final class GcsDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.GcsDestination) + GcsDestinationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GcsDestination.newBuilder() to construct. + private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsDestination() { + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_GcsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.GcsDestination.class, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = 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(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + 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(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + 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.alloydb.v1alpha.GcsDestination)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.GcsDestination other = + (com.google.cloud.alloydb.v1alpha.GcsDestination) obj; + + if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination 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.alloydb.v1alpha.GcsDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination 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.alloydb.v1alpha.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination parseDelimitedFrom( + java.io.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.alloydb.v1alpha.GcsDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination 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.alloydb.v1alpha.GcsDestination 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; + } + + /** + * + * + *
+   * Destination for Export. Export will be done to cloud storage.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.GcsDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.GcsDestination) + com.google.cloud.alloydb.v1alpha.GcsDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_GcsDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.GcsDestination.class, + com.google.cloud.alloydb.v1alpha.GcsDestination.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.GcsDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination build() { + com.google.cloud.alloydb.v1alpha.GcsDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GcsDestination buildPartial() { + com.google.cloud.alloydb.v1alpha.GcsDestination result = + new com.google.cloud.alloydb.v1alpha.GcsDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.GcsDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @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.alloydb.v1alpha.GcsDestination) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.GcsDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.GcsDestination other) { + if (other == com.google.cloud.alloydb.v1alpha.GcsDestination.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + 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: + { + uri_ = 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 uri_ = ""; + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the export
+     * will be stored. The URI is in the form `gs://bucketName/fileName`.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = 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.alloydb.v1alpha.GcsDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.GcsDestination) + private static final com.google.cloud.alloydb.v1alpha.GcsDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.GcsDestination(); + } + + public static com.google.cloud.alloydb.v1alpha.GcsDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestination 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.alloydb.v1alpha.GcsDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestinationOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestinationOrBuilder.java new file mode 100644 index 000000000000..50df86d85eee --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GcsDestinationOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface GcsDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.GcsDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the export
+   * will be stored. The URI is in the form `gs://bucketName/fileName`.
+   * 
+ * + * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GeminiProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GeminiProto.java index 2f8ee35be5ac..a78019fb895e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GeminiProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GeminiProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1alpha_GeminiInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_GeminiInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -49,13 +53,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\022\034google.cloud.alloydb.v1alpha\032\037googl" + "e/api/field_behavior.proto\",\n\023GeminiClus" + "terConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003\"-\n\024Gemi" - + "niInstanceConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003B" - + "\315\001\n com.google.cloud.alloydb.v1alphaB\013Ge" - + "miniProtoP\001Z:cloud.google.com/go/alloydb" - + "/apiv1alpha/alloydbpb;alloydbpb\252\002\034Google" - + ".Cloud.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\Al" - + "loyDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::" - + "V1alphab\006proto3" + + "niInstanceConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003\"" + + "c\n\021GCAInstanceConfig\022N\n\017gca_entitlement\030" + + "\001 \001(\01620.google.cloud.alloydb.v1alpha.GCA" + + "EntitlementTypeB\003\340A\003*L\n\022GCAEntitlementTy" + + "pe\022$\n GCA_ENTITLEMENT_TYPE_UNSPECIFIED\020\000" + + "\022\020\n\014GCA_STANDARD\020\001B\315\001\n com.google.cloud." + + "alloydb.v1alphaB\013GeminiProtoP\001Z:cloud.go" + + "ogle.com/go/alloydb/apiv1alpha/alloydbpb" + + ";alloydbpb\252\002\034Google.Cloud.AlloyDb.V1Alph" + + "a\312\002\034Google\\Cloud\\AlloyDb\\V1alpha\352\002\037Googl" + + "e::Cloud::AlloyDB::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -79,6 +87,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Entitled", }); + internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_GCAInstanceConfig_descriptor, + new java.lang.String[] { + "GcaEntitlement", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequest.java index 86858eff4c26..4c9c85a223be 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequest.java @@ -222,7 +222,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Override @@ -250,7 +250,7 @@ public java.lang.String getPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Override @@ -395,9 +395,9 @@ public com.google.protobuf.ByteString getPublicKeyBytes() { * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1208,7 +1208,7 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public java.lang.String getPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Deprecated @@ -1262,7 +1262,7 @@ public com.google.protobuf.ByteString getPemCsrBytes() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @param value The pemCsr to set. * @return This builder for chaining. */ @@ -1288,7 +1288,7 @@ public Builder setPemCsr(java.lang.String value) { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1310,7 +1310,7 @@ public Builder clearPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ @@ -1682,9 +1682,9 @@ public Builder setPublicKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1700,9 +1700,9 @@ public boolean getUseMetadataExchange() { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1722,9 +1722,9 @@ public Builder setUseMetadataExchange(boolean value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequestOrBuilder.java index 1b92ce66e14e..be528587beb4 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateRequestOrBuilder.java @@ -117,7 +117,7 @@ public interface GenerateClientCertificateRequestOrBuilder * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Deprecated @@ -134,7 +134,7 @@ public interface GenerateClientCertificateRequestOrBuilder * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1684 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Deprecated @@ -222,9 +222,9 @@ public interface GenerateClientCertificateRequestOrBuilder * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponse.java index caebf8d84ed4..293daaca87db 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponse.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponse.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getPemCertificate() { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Deprecated @@ -715,7 +715,7 @@ public java.lang.String getPemCertificate() { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Deprecated @@ -743,7 +743,7 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @param value The pemCertificate to set. * @return This builder for chaining. */ @@ -770,7 +770,7 @@ public Builder setPemCertificate(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return This builder for chaining. */ @java.lang.Deprecated @@ -793,7 +793,7 @@ public Builder clearPemCertificate() { * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponseOrBuilder.java index effdc82e6708..1745ddb00b15 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponseOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/GenerateClientCertificateResponseOrBuilder.java @@ -36,7 +36,7 @@ public interface GenerateClientCertificateResponseOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GenerateClientCertificateResponseOrBuilder * * * @deprecated google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1707 + * deprecated. See google/cloud/alloydb/v1alpha/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequest.java new file mode 100644 index 000000000000..b25ddbf9414b --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequest.java @@ -0,0 +1,4250 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Import cluster request.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest} + */ +public final class ImportClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest) + ImportClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterRequest.newBuilder() to construct. + private ImportClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterRequest() { + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.Builder.class); + } + + public interface SqlImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions} + */ + public static final class SqlImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + SqlImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SqlImportOptions.newBuilder() to construct. + private SqlImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlImportOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions other = + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions 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.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions 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.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions 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.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions build() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions buildPartial() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions result = + new com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions other) { + if (other + == com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + private static final com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions(); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlImportOptions 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.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CsvImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + java.util.List getColumnsList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + int getColumnsCount(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + java.lang.String getColumns(int index); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + com.google.protobuf.ByteString getColumnsBytes(int index); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + java.lang.String getFieldDelimiter(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + com.google.protobuf.ByteString getFieldDelimiterBytes(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + java.lang.String getQuoteCharacter(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + com.google.protobuf.ByteString getQuoteCharacterBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + java.lang.String getEscapeCharacter(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + com.google.protobuf.ByteString getEscapeCharacterBytes(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions} + */ + public static final class CsvImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + CsvImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CsvImportOptions.newBuilder() to construct. + private CsvImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvImportOptions() { + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + return columns_; + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + public static final int FIELD_DELIMITER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + @java.lang.Override + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUOTE_CHARACTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + @java.lang.Override + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ESCAPE_CHARACTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + @java.lang.Override + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = 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(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columns_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escapeCharacter_); + } + 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(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + { + int dataSize = 0; + for (int i = 0; i < columns_.size(); i++) { + dataSize += computeStringSizeNoTag(columns_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escapeCharacter_); + } + 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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions other = + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false; + if (!getQuoteCharacter().equals(other.getQuoteCharacter())) return false; + if (!getEscapeCharacter().equals(other.getEscapeCharacter())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getFieldDelimiter().hashCode(); + hash = (37 * hash) + QUOTE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getQuoteCharacter().hashCode(); + hash = (37 * hash) + ESCAPE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getEscapeCharacter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions 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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions 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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions 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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions build() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions buildPartial() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions result = + new com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + columns_.makeImmutable(); + result.columns_ = columns_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldDelimiter_ = fieldDelimiter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quoteCharacter_ = quoteCharacter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.escapeCharacter_ = escapeCharacter_; + } + } + + @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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions other) { + if (other + == com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ |= 0x00000002; + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + if (!other.getFieldDelimiter().isEmpty()) { + fieldDelimiter_ = other.fieldDelimiter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getQuoteCharacter().isEmpty()) { + quoteCharacter_ = other.quoteCharacter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getEscapeCharacter().isEmpty()) { + escapeCharacter_ = other.escapeCharacter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnsIsMutable(); + columns_.add(s); + break; + } // case 18 + case 26: + { + fieldDelimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + quoteCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + escapeCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureColumnsIsMutable() { + if (!columns_.isModifiable()) { + columns_ = new com.google.protobuf.LazyStringArrayList(columns_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + columns_.makeImmutable(); + return columns_; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The columns to add. + * @return This builder for chaining. + */ + public Builder addColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The columns to add. + * @return This builder for chaining. + */ + public Builder addAllColumns(java.lang.Iterable values) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearColumns() { + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the columns to add. + * @return This builder for chaining. + */ + public Builder addColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldDelimiter() { + fieldDelimiter_ = getDefaultInstance().getFieldDelimiter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuoteCharacter() { + quoteCharacter_ = getDefaultInstance().getQuoteCharacter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscapeCharacter() { + escapeCharacter_ = getDefaultInstance().getEscapeCharacter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + private static final com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions(); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvImportOptions 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.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int importOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importOptions_; + + public enum ImportOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SQL_IMPORT_OPTIONS(4), + CSV_IMPORT_OPTIONS(7), + IMPORTOPTIONS_NOT_SET(0); + private final int value; + + private ImportOptionsCase(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 ImportOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static ImportOptionsCase forNumber(int value) { + switch (value) { + case 4: + return SQL_IMPORT_OPTIONS; + case 7: + return CSV_IMPORT_OPTIONS; + case 0: + return IMPORTOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public static final int SQL_IMPORT_OPTIONS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + getSqlImportOptions() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + public static final int CSV_IMPORT_OPTIONS_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + getCsvImportOptions() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = 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(gcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, database_); + } + if (importOptionsCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); + } + if (importOptionsCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) importOptions_); + } + 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(gcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, database_); + } + if (importOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); + } + if (importOptionsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_); + } + 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.alloydb.v1alpha.ImportClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ImportClusterRequest other = + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getImportOptionsCase().equals(other.getImportOptionsCase())) return false; + switch (importOptionsCase_) { + case 4: + if (!getSqlImportOptions().equals(other.getSqlImportOptions())) return false; + break; + case 7: + if (!getCsvImportOptions().equals(other.getCsvImportOptions())) 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) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + switch (importOptionsCase_) { + case 4: + hash = (37 * hash) + SQL_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSqlImportOptions().hashCode(); + break; + case 7: + hash = (37 * hash) + CSV_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCsvImportOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest 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.alloydb.v1alpha.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest 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.alloydb.v1alpha.ImportClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ImportClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest 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.alloydb.v1alpha.ImportClusterRequest 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; + } + + /** + * + * + *
+   * Import cluster request.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ImportClusterRequest) + com.google.cloud.alloydb.v1alpha.ImportClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.class, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.ImportClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sqlImportOptionsBuilder_ != null) { + sqlImportOptionsBuilder_.clear(); + } + if (csvImportOptionsBuilder_ != null) { + csvImportOptionsBuilder_.clear(); + } + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + importOptionsCase_ = 0; + importOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest build() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest buildPartial() { + com.google.cloud.alloydb.v1alpha.ImportClusterRequest result = + new com.google.cloud.alloydb.v1alpha.ImportClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.ImportClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.user_ = user_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.ImportClusterRequest result) { + result.importOptionsCase_ = importOptionsCase_; + result.importOptions_ = this.importOptions_; + if (importOptionsCase_ == 4 && sqlImportOptionsBuilder_ != null) { + result.importOptions_ = sqlImportOptionsBuilder_.build(); + } + if (importOptionsCase_ == 7 && csvImportOptionsBuilder_ != null) { + result.importOptions_ = csvImportOptionsBuilder_.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.alloydb.v1alpha.ImportClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.ImportClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ImportClusterRequest other) { + if (other == com.google.cloud.alloydb.v1alpha.ImportClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000020; + onChanged(); + } + switch (other.getImportOptionsCase()) { + case SQL_IMPORT_OPTIONS: + { + mergeSqlImportOptions(other.getSqlImportOptions()); + break; + } + case CSV_IMPORT_OPTIONS: + { + mergeCsvImportOptions(other.getCsvImportOptions()); + break; + } + case IMPORTOPTIONS_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_ |= 0x00000004; + break; + } // case 10 + case 18: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getSqlImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 4; + break; + } // case 34 + case 42: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + input.readMessage( + getCsvImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 7; + 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 importOptionsCase_ = 0; + private java.lang.Object importOptions_; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public Builder clearImportOptions() { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder> + sqlImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + getSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 4) { + return sqlImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder + builderForValue) { + if (sqlImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder mergeSqlImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4 + && importOptions_ + != com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.newBuilder( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 4) { + sqlImportOptionsBuilder_.mergeFrom(value); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder clearSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + } + sqlImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder + getSqlImportOptionsBuilder() { + return getSqlImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if ((importOptionsCase_ == 4) && (sqlImportOptionsBuilder_ != null)) { + return sqlImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder> + getSqlImportOptionsFieldBuilder() { + if (sqlImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 4)) { + importOptions_ = + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + sqlImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions) + importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 4; + onChanged(); + return sqlImportOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder> + csvImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + getCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 7) { + return csvImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder + builderForValue) { + if (csvImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder mergeCsvImportOptions( + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7 + && importOptions_ + != com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.newBuilder( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 7) { + csvImportOptionsBuilder_.mergeFrom(value); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder clearCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + } + csvImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder + getCsvImportOptionsBuilder() { + return getCsvImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if ((importOptionsCase_ == 7) && (csvImportOptionsBuilder_ != null)) { + return csvImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder> + getCsvImportOptionsFieldBuilder() { + if (csvImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 7)) { + importOptions_ = + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + csvImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions) + importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 7; + onChanged(); + return csvImportOptionsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000020; + 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.alloydb.v1alpha.ImportClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ImportClusterRequest) + private static final com.google.cloud.alloydb.v1alpha.ImportClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.ImportClusterRequest(); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterRequest 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.alloydb.v1alpha.ImportClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequestOrBuilder.java new file mode 100644 index 000000000000..9ebaab277771 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface ImportClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ImportClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + boolean hasSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions getSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + boolean hasCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions getCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + com.google.cloud.alloydb.v1alpha.ImportClusterRequest.ImportOptionsCase getImportOptionsCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponse.java new file mode 100644 index 000000000000..ea87ae042146 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponse.java @@ -0,0 +1,542 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Response of import rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterResponse} + */ +public final class ImportClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.ImportClusterResponse) + ImportClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterResponse.newBuilder() to construct. + private ImportClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterResponse.class, + com.google.cloud.alloydb.v1alpha.ImportClusterResponse.Builder.class); + } + + public static final int BYTES_DOWNLOADED_FIELD_NUMBER = 1; + private long bytesDownloaded_ = 0L; + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + 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 (bytesDownloaded_ != 0L) { + output.writeInt64(1, bytesDownloaded_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bytesDownloaded_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, bytesDownloaded_); + } + 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.alloydb.v1alpha.ImportClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.ImportClusterResponse other = + (com.google.cloud.alloydb.v1alpha.ImportClusterResponse) obj; + + if (getBytesDownloaded() != other.getBytesDownloaded()) 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) + BYTES_DOWNLOADED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBytesDownloaded()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse 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.alloydb.v1alpha.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse 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.alloydb.v1alpha.ImportClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1alpha.ImportClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse 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.alloydb.v1alpha.ImportClusterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response of import rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.ImportClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.ImportClusterResponse) + com.google.cloud.alloydb.v1alpha.ImportClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.ImportClusterResponse.class, + com.google.cloud.alloydb.v1alpha.ImportClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.ImportClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bytesDownloaded_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ServiceProto + .internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.ImportClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterResponse build() { + com.google.cloud.alloydb.v1alpha.ImportClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ImportClusterResponse buildPartial() { + com.google.cloud.alloydb.v1alpha.ImportClusterResponse result = + new com.google.cloud.alloydb.v1alpha.ImportClusterResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.ImportClusterResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bytesDownloaded_ = bytesDownloaded_; + } + } + + @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.alloydb.v1alpha.ImportClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.ImportClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ImportClusterResponse other) { + if (other == com.google.cloud.alloydb.v1alpha.ImportClusterResponse.getDefaultInstance()) + return this; + if (other.getBytesDownloaded() != 0L) { + setBytesDownloaded(other.getBytesDownloaded()); + } + 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: + { + bytesDownloaded_ = input.readInt64(); + 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 long bytesDownloaded_; + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytesDownloaded to set. + * @return This builder for chaining. + */ + public Builder setBytesDownloaded(long value) { + + bytesDownloaded_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBytesDownloaded() { + bitField0_ = (bitField0_ & ~0x00000001); + bytesDownloaded_ = 0L; + 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.alloydb.v1alpha.ImportClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.ImportClusterResponse) + private static final com.google.cloud.alloydb.v1alpha.ImportClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.ImportClusterResponse(); + } + + public static com.google.cloud.alloydb.v1alpha.ImportClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterResponse 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.alloydb.v1alpha.ImportClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponseOrBuilder.java new file mode 100644 index 000000000000..b262c8ac8ac3 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ImportClusterResponseOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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/alloydb/v1alpha/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface ImportClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.ImportClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + long getBytesDownloaded(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java index acac974323de..164e78206efa 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/Instance.java @@ -776,6 +776,36 @@ public interface MachineConfigOrBuilder * @return The cpuCount. */ int getCpuCount(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); } /** @@ -798,7 +828,9 @@ private MachineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private MachineConfig() {} + private MachineConfig() { + machineType_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -840,6 +872,63 @@ public int getCpuCount() { return cpuCount_; } + public static final int MACHINE_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -857,6 +946,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); + } getUnknownFields().writeTo(output); } @@ -869,6 +961,9 @@ public int getSerializedSize() { if (cpuCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -886,6 +981,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.alloydb.v1alpha.Instance.MachineConfig) obj; if (getCpuCount() != other.getCpuCount()) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -899,6 +995,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; hash = (53 * hash) + getCpuCount(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1043,6 +1141,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; cpuCount_ = 0; + machineType_ = ""; return this; } @@ -1082,6 +1181,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance.MachineConf if (((from_bitField0_ & 0x00000001) != 0)) { result.cpuCount_ = cpuCount_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.machineType_ = machineType_; + } } @java.lang.Override @@ -1135,6 +1237,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance.MachineConfig if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1167,6 +1274,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 34: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1242,6 +1355,127 @@ public Builder clearCpuCount() { return this; } + private java.lang.Object machineType_ = ""; + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1315,10 +1549,10 @@ public interface NodeOrBuilder * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -1328,10 +1562,10 @@ public interface NodeOrBuilder * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -1341,10 +1575,11 @@ public interface NodeOrBuilder * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -1354,10 +1589,11 @@ public interface NodeOrBuilder * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -1367,10 +1603,10 @@ public interface NodeOrBuilder * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -1380,10 +1616,10 @@ public interface NodeOrBuilder * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -1393,13 +1629,13 @@ public interface NodeOrBuilder * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -1409,13 +1645,13 @@ public interface NodeOrBuilder * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -1427,7 +1663,7 @@ public interface NodeOrBuilder * *
    * Details of a single node in the instance.
-   * Nodes in an AlloyDB instance are ephemereal, they can change during
+   * Nodes in an AlloyDB instance are ephemeral, they can change during
    * update, failover, autohealing and resize operations.
    * 
* @@ -1481,10 +1717,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -1505,10 +1741,10 @@ public java.lang.String getZoneId() { * * *
-     * The Compute Engine zone of the VM e.g. "us-central1-b".
+     * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
      * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -1534,10 +1770,11 @@ public com.google.protobuf.ByteString getZoneIdBytes() { * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -1558,10 +1795,11 @@ public java.lang.String getId() { * * *
-     * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+     * Output only. The identifier of the VM e.g.
+     * "test-read-0601-407e52be-ms3l".
      * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -1587,10 +1825,10 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -1611,10 +1849,10 @@ public java.lang.String getIp() { * * *
-     * The private IP address of the VM e.g. "10.57.0.34".
+     * Output only. The private IP address of the VM e.g. "10.57.0.34".
      * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -1640,13 +1878,13 @@ public com.google.protobuf.ByteString getIpBytes() { * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -1667,13 +1905,13 @@ public java.lang.String getState() { * * *
-     * Determined by state of the compute VM and postgres-service health.
-     * Compute VM state can have values listed in
+     * Output only. Determined by state of the compute VM and postgres-service
+     * health. Compute VM state can have values listed in
      * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
      * postgres-service health can have values: HEALTHY and UNHEALTHY.
      * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -1883,7 +2121,7 @@ protected Builder newBuilderForType( * *
      * Details of a single node in the instance.
-     * Nodes in an AlloyDB instance are ephemereal, they can change during
+     * Nodes in an AlloyDB instance are ephemeral, they can change during
      * update, failover, autohealing and resize operations.
      * 
* @@ -2117,10 +2355,10 @@ public Builder mergeFrom( * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The zoneId. */ @@ -2140,10 +2378,10 @@ public java.lang.String getZoneId() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for zoneId. */ @@ -2163,10 +2401,10 @@ public com.google.protobuf.ByteString getZoneIdBytes() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The zoneId to set. * @return This builder for chaining. @@ -2185,10 +2423,10 @@ public Builder setZoneId(java.lang.String value) { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2203,10 +2441,10 @@ public Builder clearZoneId() { * * *
-       * The Compute Engine zone of the VM e.g. "us-central1-b".
+       * Output only. The Compute Engine zone of the VM e.g. "us-central1-b".
        * 
* - * string zone_id = 1; + * string zone_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for zoneId to set. * @return This builder for chaining. @@ -2228,10 +2466,11 @@ public Builder setZoneIdBytes(com.google.protobuf.ByteString value) { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The id. */ @@ -2251,10 +2490,11 @@ public java.lang.String getId() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for id. */ @@ -2274,10 +2514,11 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The id to set. * @return This builder for chaining. @@ -2296,10 +2537,11 @@ public Builder setId(java.lang.String value) { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2314,10 +2556,11 @@ public Builder clearId() { * * *
-       * The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
+       * Output only. The identifier of the VM e.g.
+       * "test-read-0601-407e52be-ms3l".
        * 
* - * string id = 2; + * string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for id to set. * @return This builder for chaining. @@ -2339,10 +2582,10 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The ip. */ @@ -2362,10 +2605,10 @@ public java.lang.String getIp() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for ip. */ @@ -2385,10 +2628,10 @@ public com.google.protobuf.ByteString getIpBytes() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The ip to set. * @return This builder for chaining. @@ -2407,10 +2650,10 @@ public Builder setIp(java.lang.String value) { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2425,10 +2668,10 @@ public Builder clearIp() { * * *
-       * The private IP address of the VM e.g. "10.57.0.34".
+       * Output only. The private IP address of the VM e.g. "10.57.0.34".
        * 
* - * string ip = 3; + * string ip = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for ip to set. * @return This builder for chaining. @@ -2450,13 +2693,13 @@ public Builder setIpBytes(com.google.protobuf.ByteString value) { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The state. */ @@ -2476,13 +2719,13 @@ public java.lang.String getState() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for state. */ @@ -2502,13 +2745,13 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The state to set. * @return This builder for chaining. @@ -2527,13 +2770,13 @@ public Builder setState(java.lang.String value) { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2548,13 +2791,13 @@ public Builder clearState() { * * *
-       * Determined by state of the compute VM and postgres-service health.
-       * Compute VM state can have values listed in
+       * Output only. Determined by state of the compute VM and postgres-service
+       * health. Compute VM state can have values listed in
        * https://cloud.google.com/compute/docs/instances/instance-life-cycle and
        * postgres-service health can have values: HEALTHY and UNHEALTHY.
        * 
* - * string state = 4; + * string state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for state to set. * @return This builder for chaining. @@ -3818,7 +4061,7 @@ public interface ObservabilityInstanceConfigOrBuilder * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3835,7 +4078,7 @@ public interface ObservabilityInstanceConfigOrBuilder * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4154,7 +4397,7 @@ public boolean getTrackWaitEvents() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4174,7 +4417,7 @@ public boolean hasTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5202,7 +5445,7 @@ public Builder clearTrackWaitEvents() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5223,7 +5466,7 @@ public boolean hasTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5244,7 +5487,7 @@ public boolean getTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5269,7 +5512,7 @@ public Builder setTrackWaitEventTypes(boolean value) { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -8682,298 +8925,230 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PscInstanceConfigOrBuilder + public interface PscAutoConnectionConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string consumer_project = 1; * - * @return The serviceAttachmentLink. + * @return The consumerProject. */ - java.lang.String getServiceAttachmentLink(); + java.lang.String getConsumerProject(); /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string consumer_project = 1; * - * @return The bytes for serviceAttachmentLink. + * @return The bytes for consumerProject. */ - com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + com.google.protobuf.ByteString getConsumerProjectBytes(); /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return A list containing the allowedConsumerProjects. + * @return The consumerNetwork. */ - java.util.List getAllowedConsumerProjectsList(); + java.lang.String getConsumerNetwork(); /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return The count of allowedConsumerProjects. + * @return The bytes for consumerNetwork. */ - int getAllowedConsumerProjectsCount(); + com.google.protobuf.ByteString getConsumerNetworkBytes(); /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * Output only. The IP address of the PSC service automation endpoint.
      * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. + * @return The ipAddress. */ - java.lang.String getAllowedConsumerProjects(int index); + java.lang.String getIpAddress(); /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * Output only. The IP address of the PSC service automation endpoint.
      * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. + * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + com.google.protobuf.ByteString getIpAddressBytes(); /** * * *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * Output only. The status of the PSC service automation connection.
      * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The pscDnsName. + * @return The status. */ - java.lang.String getPscDnsName(); + java.lang.String getStatus(); /** * * *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * Output only. The status of the PSC service automation connection.
      * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for pscDnsName. + * @return The bytes for status. */ - com.google.protobuf.ByteString getPscDnsNameBytes(); + com.google.protobuf.ByteString getStatusBytes(); /** * * *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
+     * Output only. The status of the service connection policy.
      * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getPscInterfaceConfigsList(); - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
+ * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The consumerNetworkStatus. */ - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs(int index); + java.lang.String getConsumerNetworkStatus(); /** * * *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
+     * Output only. The status of the service connection policy.
      * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPscInterfaceConfigsCount(); - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
+ * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The bytes for consumerNetworkStatus. */ - java.util.List - getPscInterfaceConfigsOrBuilderList(); - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
- * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder - getPscInterfaceConfigsOrBuilder(int index); + com.google.protobuf.ByteString getConsumerNetworkStatusBytes(); } /** * * *
-   * PscInstanceConfig contains PSC related configuration at an
-   * instance level.
+   * Configuration for setting up PSC service automation. Consumer projects in
+   * the configs will be allowlisted automatically for the instance.
    * 
* - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig} + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig} */ - public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class PscAutoConnectionConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) - PscInstanceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) + PscAutoConnectionConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use PscInstanceConfig.newBuilder() to construct. - private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use PscAutoConnectionConfig.newBuilder() to construct. + private PscAutoConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PscInstanceConfig() { - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; - pscInterfaceConfigs_ = java.util.Collections.emptyList(); + private PscAutoConnectionConfig() { + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PscInstanceConfig(); + return new PscAutoConnectionConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder.class); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + public static final int CONSUMER_PROJECT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; + private volatile java.lang.Object consumerProject_ = ""; /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string consumer_project = 1; * - * @return The serviceAttachmentLink. + * @return The consumerProject. */ @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; + consumerProject_ = s; return s; } } @@ -8982,135 +9157,168 @@ public java.lang.String getServiceAttachmentLink() { * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string consumer_project = 1; * - * @return The bytes for serviceAttachmentLink. + * @return The bytes for consumerProject. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; + consumerProject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + public static final int CONSUMER_NETWORK_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private volatile java.lang.Object consumerNetwork_ = ""; /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return A list containing the allowedConsumerProjects. + * @return The consumerNetwork. */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - return allowedConsumerProjects_; + @java.lang.Override + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } } /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return The count of allowedConsumerProjects. + * @return The bytes for consumerNetwork. */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); + @java.lang.Override + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int IP_ADDRESS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * Output only. The IP address of the PSC service automation endpoint.
      * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. + * @return The ipAddress. */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } } /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * Output only. The IP address of the PSC service automation endpoint.
      * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. + * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; + public static final int STATUS_FIELD_NUMBER = 4; @SuppressWarnings("serial") - private volatile java.lang.Object pscDnsName_ = ""; + private volatile java.lang.Object status_ = ""; /** * * *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * Output only. The status of the PSC service automation connection.
      * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The pscDnsName. + * @return The status. */ @java.lang.Override - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; + public java.lang.String getStatus() { + java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; + status_ = s; return s; } } @@ -9119,131 +9327,77 @@ public java.lang.String getPscDnsName() { * * *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * Output only. The status of the PSC service automation connection.
      * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for pscDnsName. + * @return The bytes for status. */ @java.lang.Override - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = b; + status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER = 8; + public static final int CONSUMER_NETWORK_STATUS_FIELD_NUMBER = 5; @SuppressWarnings("serial") - private java.util.List - pscInterfaceConfigs_; - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
- * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getPscInterfaceConfigsList() { - return pscInterfaceConfigs_; - } + private volatile java.lang.Object consumerNetworkStatus_ = ""; /** * * *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
+     * Output only. The status of the service connection policy.
      * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> - getPscInterfaceConfigsOrBuilderList() { - return pscInterfaceConfigs_; - } - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
+ * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The consumerNetworkStatus. */ @java.lang.Override - public int getPscInterfaceConfigsCount() { - return pscInterfaceConfigs_.size(); + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetworkStatus_ = s; + return s; + } } /** * * *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
+     * Output only. The status of the service connection policy.
      * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs( - int index) { - return pscInterfaceConfigs_.get(index); - } - - /** - * - * - *
-     * Optional. Configurations for setting up PSC interfaces attached to the
-     * instance which are used for outbound connectivity. Only primary instances
-     * can have PSC interface attached. Currently we only support 0 or 1 PSC
-     * interface.
-     * 
+ * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The bytes for consumerNetworkStatus. */ @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder - getPscInterfaceConfigsOrBuilder(int index) { - return pscInterfaceConfigs_.get(index); + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -9260,18 +9414,20 @@ 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(serviceAttachmentLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, consumerProject_); } - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, allowedConsumerProjects_.getRaw(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumerNetwork_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); } - for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { - output.writeMessage(8, pscInterfaceConfigs_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, consumerNetworkStatus_); } getUnknownFields().writeTo(output); } @@ -9282,24 +9438,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, consumerProject_); } - { - int dataSize = 0; - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); - } - size += dataSize; - size += 1 * getAllowedConsumerProjectsList().size(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consumerNetwork_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); } - for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, pscInterfaceConfigs_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, consumerNetworkStatus_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9311,17 +9463,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig)) { + if (!(obj instanceof com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig)) { return super.equals(obj); } - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig other = - (com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) obj; + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig other = + (com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) obj; - if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; - if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) - return false; - if (!getPscDnsName().equals(other.getPscDnsName())) return false; - if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; + if (!getConsumerProject().equals(other.getConsumerProject())) return false; + if (!getConsumerNetwork().equals(other.getConsumerNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getConsumerNetworkStatus().equals(other.getConsumerNetworkStatus())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9333,88 +9485,87 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; - hash = (53 * hash) + getServiceAttachmentLink().hashCode(); - if (getAllowedConsumerProjectsCount() > 0) { - hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); - } - hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPscDnsName().hashCode(); - if (getPscInterfaceConfigsCount() > 0) { - hash = (37 * hash) + PSC_INTERFACE_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getPscInterfaceConfigsList().hashCode(); - } + hash = (37 * hash) + CONSUMER_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getConsumerProject().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetwork().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetworkStatus().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig 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.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig 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.alloydb.v1alpha.Instance.PscInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + parseDelimitedFrom( + java.io.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.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9432,7 +9583,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig prototype) { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -9452,33 +9603,34 @@ protected Builder newBuilderForType( * * *
-     * PscInstanceConfig contains PSC related configuration at an
-     * instance level.
+     * Configuration for setting up PSC service automation. Consumer projects in
+     * the configs will be allowlisted automatically for the instance.
      * 
* - * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig} + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder.class); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder.class); } - // Construct using com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.newBuilder() + // Construct using + // com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -9489,34 +9641,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; - if (pscInterfaceConfigsBuilder_ == null) { - pscInterfaceConfigs_ = java.util.Collections.emptyList(); - } else { - pscInterfaceConfigs_ = null; - pscInterfaceConfigsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.alloydb.v1alpha.ResourcesProto - .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor; } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.getDefaultInstance(); + return com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig build() { - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result = buildPartial(); + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig build() { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9524,10 +9672,9 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig build() { } @java.lang.Override - public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result = - new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig(this); - buildPartialRepeatedFields(result); + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig result = + new com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -9535,31 +9682,23 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig buildPartial( return result; } - private void buildPartialRepeatedFields( - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result) { - if (pscInterfaceConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - pscInterfaceConfigs_ = java.util.Collections.unmodifiableList(pscInterfaceConfigs_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.pscInterfaceConfigs_ = pscInterfaceConfigs_; - } else { - result.pscInterfaceConfigs_ = pscInterfaceConfigsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result) { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.serviceAttachmentLink_ = serviceAttachmentLink_; + result.consumerProject_ = consumerProject_; } if (((from_bitField0_ & 0x00000002) != 0)) { - allowedConsumerProjects_.makeImmutable(); - result.allowedConsumerProjects_ = allowedConsumerProjects_; + result.consumerNetwork_ = consumerNetwork_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.pscDnsName_ = pscDnsName_; + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.consumerNetworkStatus_ = consumerNetworkStatus_; } } @@ -9600,64 +9739,44 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) { - return mergeFrom((com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) other); + if (other instanceof com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig other) { + public Builder mergeFrom( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig other) { if (other - == com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.getDefaultInstance()) - return this; - if (!other.getServiceAttachmentLink().isEmpty()) { - serviceAttachmentLink_ = other.serviceAttachmentLink_; + == com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance()) return this; + if (!other.getConsumerProject().isEmpty()) { + consumerProject_ = other.consumerProject_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.allowedConsumerProjects_.isEmpty()) { - if (allowedConsumerProjects_.isEmpty()) { - allowedConsumerProjects_ = other.allowedConsumerProjects_; - bitField0_ |= 0x00000002; - } else { - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); - } + if (!other.getConsumerNetwork().isEmpty()) { + consumerNetwork_ = other.consumerNetwork_; + bitField0_ |= 0x00000002; onChanged(); } - if (!other.getPscDnsName().isEmpty()) { - pscDnsName_ = other.pscDnsName_; + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; bitField0_ |= 0x00000004; onChanged(); } - if (pscInterfaceConfigsBuilder_ == null) { - if (!other.pscInterfaceConfigs_.isEmpty()) { - if (pscInterfaceConfigs_.isEmpty()) { - pscInterfaceConfigs_ = other.pscInterfaceConfigs_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.addAll(other.pscInterfaceConfigs_); - } - onChanged(); - } - } else { - if (!other.pscInterfaceConfigs_.isEmpty()) { - if (pscInterfaceConfigsBuilder_.isEmpty()) { - pscInterfaceConfigsBuilder_.dispose(); - pscInterfaceConfigsBuilder_ = null; - pscInterfaceConfigs_ = other.pscInterfaceConfigs_; - bitField0_ = (bitField0_ & ~0x00000008); - pscInterfaceConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPscInterfaceConfigsFieldBuilder() - : null; - } else { - pscInterfaceConfigsBuilder_.addAllMessages(other.pscInterfaceConfigs_); - } - } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getConsumerNetworkStatus().isEmpty()) { + consumerNetworkStatus_ = other.consumerNetworkStatus_; + bitField0_ |= 0x00000010; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -9687,37 +9806,34 @@ public Builder mergeFrom( break; case 10: { - serviceAttachmentLink_ = input.readStringRequireUtf8(); + consumerProject_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(s); + consumerNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; break; } // case 18 - case 58: + case 26: { - pscDnsName_ = input.readStringRequireUtf8(); + ipAddress_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 58 - case 66: + } // case 26 + case 34: { - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig m = - input.readMessage( - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.parser(), - extensionRegistry); - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.add(m); - } else { - pscInterfaceConfigsBuilder_.addMessage(m); - } + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; break; - } // case 66 + } // case 34 + case 42: + { + consumerNetworkStatus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9737,29 +9853,26 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object serviceAttachmentLink_ = ""; + private java.lang.Object consumerProject_ = ""; /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string consumer_project = 1; * - * @return The serviceAttachmentLink. + * @return The consumerProject. */ - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; + consumerProject_ = s; return s; } else { return (java.lang.String) ref; @@ -9770,23 +9883,20 @@ public java.lang.String getServiceAttachmentLink() { * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string consumer_project = 1; * - * @return The bytes for serviceAttachmentLink. + * @return The bytes for consumerProject. */ - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; + consumerProject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9797,23 +9907,20 @@ public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string consumer_project = 1; * - * @param value The serviceAttachmentLink to set. + * @param value The consumerProject to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentLink(java.lang.String value) { + public Builder setConsumerProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAttachmentLink_ = value; + consumerProject_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -9823,19 +9930,16 @@ public Builder setServiceAttachmentLink(java.lang.String value) { * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string consumer_project = 1; * * @return This builder for chaining. */ - public Builder clearServiceAttachmentLink() { - serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + public Builder clearConsumerProject() { + consumerProject_ = getDefaultInstance().getConsumerProject(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -9845,138 +9949,224 @@ public Builder clearServiceAttachmentLink() { * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string consumer_project = 1; * - * @param value The bytes for serviceAttachmentLink to set. + * @param value The bytes for consumerProject to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + public Builder setConsumerProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAttachmentLink_ = value; + consumerProject_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAllowedConsumerProjectsIsMutable() { - if (!allowedConsumerProjects_.isModifiable()) { - allowedConsumerProjects_ = - new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); - } - bitField0_ |= 0x00000002; - } + private java.lang.Object consumerNetwork_ = ""; /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
        * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return A list containing the allowedConsumerProjects. + * @return The consumerNetwork. */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - allowedConsumerProjects_.makeImmutable(); - return allowedConsumerProjects_; - } - - /** + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
        * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string consumer_network = 2; * - * @return The count of allowedConsumerProjects. + * @return The bytes for consumerNetwork. */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetwork() { + consumerNetwork_ = getDefaultInstance().getConsumerNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The bytes for consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. + * @return The ipAddress. */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Output only. The IP address of the PSC service automation endpoint.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. + * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Output only. The IP address of the PSC service automation endpoint.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param index The index to set the value at. - * @param value The allowedConsumerProjects to set. + * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + public Builder setIpAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.set(index, value); - bitField0_ |= 0x00000002; + ipAddress_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9985,47 +10175,113 @@ public Builder setAllowedConsumerProjects(int index, java.lang.String value) { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Output only. The IP address of the PSC service automation endpoint.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @param value The allowedConsumerProjects to add. * @return This builder for chaining. */ - public Builder addAllowedConsumerProjects(java.lang.String value) { + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } + private java.lang.Object status_ = ""; + /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Output only. The status of the PSC service automation connection.
        * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param values The allowedConsumerProjects to add. + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The status to set. * @return This builder for chaining. */ - public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { - ensureAllowedConsumerProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); - bitField0_ |= 0x00000002; + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10034,20 +10290,16 @@ public Builder addAllAllowedConsumerProjects(java.lang.Iterable - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. + * Output only. The status of the PSC service automation connection. *
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearAllowedConsumerProjects() { - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -10056,49 +10308,45 @@ public Builder clearAllowedConsumerProjects() { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Output only. The status of the PSC service automation connection.
        * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes of the allowedConsumerProjects to add. + * @param value The bytes for status to set. * @return This builder for chaining. */ - public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; + status_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - private java.lang.Object pscDnsName_ = ""; + private java.lang.Object consumerNetworkStatus_ = ""; /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Output only. The status of the service connection policy.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The pscDnsName. + * @return The consumerNetworkStatus. */ - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; + consumerNetworkStatus_ = s; return s; } else { return (java.lang.String) ref; @@ -10109,23 +10357,2297 @@ public java.lang.String getPscDnsName() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for consumerNetworkStatus. + */ + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetworkStatus() { + consumerNetworkStatus_ = getDefaultInstance().getConsumerNetworkStatus(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig) + private static final com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig(); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutoConnectionConfig 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.alloydb.v1alpha.Instance.PscAutoConnectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + java.lang.String getServiceAttachmentLink(); + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + java.util.List getAllowedConsumerProjectsList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + int getAllowedConsumerProjectsCount(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + java.lang.String getAllowedConsumerProjects(int index); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + java.lang.String getPscDnsName(); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscInterfaceConfigsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscAutoConnectionsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscAutoConnectionsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index); + } + + /** + * + * + *
+   * PscInstanceConfig contains PSC related configuration at an
+   * instance level.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig} + */ + public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + PscInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscInstanceConfig.newBuilder() to construct. + private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInstanceConfig() { + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + pscAutoConnections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + return allowedConsumerProjects_; + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscDnsName_ = ""; + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + @java.lang.Override + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + pscInterfaceConfigs_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscInterfaceConfigsList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscInterfaceConfigsCount() { + return pscInterfaceConfigs_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + return pscInterfaceConfigs_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + return pscInterfaceConfigs_.get(index); + } + + public static final int PSC_AUTO_CONNECTIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + pscAutoConnections_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscAutoConnectionsList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscAutoConnectionsCount() { + return pscAutoConnections_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index) { + return pscAutoConnections_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + return pscAutoConnections_.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(serviceAttachmentLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + } + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedConsumerProjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + output.writeMessage(8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + output.writeMessage(9, pscAutoConnections_.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(serviceAttachmentLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerProjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.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.alloydb.v1alpha.Instance.PscInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig other = + (com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) obj; + + if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; + if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) + return false; + if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; + if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) 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) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentLink().hashCode(); + if (getAllowedConsumerProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + } + hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscDnsName().hashCode(); + if (getPscInterfaceConfigsCount() > 0) { + hash = (37 * hash) + PSC_INTERFACE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfigsList().hashCode(); + } + if (getPscAutoConnectionsCount() > 0) { + hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig 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.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig 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.alloydb.v1alpha.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.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.alloydb.v1alpha.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig 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.alloydb.v1alpha.Instance.PscInstanceConfig 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; + } + + /** + * + * + *
+     * PscInstanceConfig contains PSC related configuration at an
+     * instance level.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + } else { + pscInterfaceConfigs_ = null; + pscInterfaceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + } else { + pscAutoConnections_ = null; + pscAutoConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig build() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result = + new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result) { + if (pscInterfaceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pscInterfaceConfigs_ = pscInterfaceConfigs_; + } else { + result.pscInterfaceConfigs_ = pscInterfaceConfigsBuilder_.build(); + } + if (pscAutoConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = java.util.Collections.unmodifiableList(pscAutoConnections_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.pscAutoConnections_ = pscAutoConnections_; + } else { + result.pscAutoConnections_ = pscAutoConnectionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachmentLink_ = serviceAttachmentLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedConsumerProjects_.makeImmutable(); + result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pscDnsName_ = pscDnsName_; + } + } + + @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.alloydb.v1alpha.Instance.PscInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.getDefaultInstance()) + return this; + if (!other.getServiceAttachmentLink().isEmpty()) { + serviceAttachmentLink_ = other.serviceAttachmentLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedConsumerProjects_.isEmpty()) { + if (allowedConsumerProjects_.isEmpty()) { + allowedConsumerProjects_ = other.allowedConsumerProjects_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + } + onChanged(); + } + if (!other.getPscDnsName().isEmpty()) { + pscDnsName_ = other.pscDnsName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (pscInterfaceConfigsBuilder_ == null) { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigs_.isEmpty()) { + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.addAll(other.pscInterfaceConfigs_); + } + onChanged(); + } + } else { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigsBuilder_.isEmpty()) { + pscInterfaceConfigsBuilder_.dispose(); + pscInterfaceConfigsBuilder_ = null; + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + pscInterfaceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscInterfaceConfigsFieldBuilder() + : null; + } else { + pscInterfaceConfigsBuilder_.addAllMessages(other.pscInterfaceConfigs_); + } + } + } + if (pscAutoConnectionsBuilder_ == null) { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnections_.isEmpty()) { + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.addAll(other.pscAutoConnections_); + } + onChanged(); + } + } else { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnectionsBuilder_.isEmpty()) { + pscAutoConnectionsBuilder_.dispose(); + pscAutoConnectionsBuilder_ = null; + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + pscAutoConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscAutoConnectionsFieldBuilder() + : null; + } else { + pscAutoConnectionsBuilder_.addAllMessages(other.pscAutoConnections_); + } + } + } + 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: + { + serviceAttachmentLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(s); + break; + } // case 18 + case 58: + { + pscDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + case 66: + { + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig m = + input.readMessage( + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.parser(), + extensionRegistry); + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(m); + } else { + pscInterfaceConfigsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig m = + input.readMessage( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .parser(), + extensionRegistry); + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(m); + } else { + pscAutoConnectionsBuilder_.addMessage(m); + } + break; + } // case 74 + 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 serviceAttachmentLink_ = ""; + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceAttachmentLink. + */ + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceAttachmentLink. + */ + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentLink() { + serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerProjectsIsMutable() { + if (!allowedConsumerProjects_.isModifiable()) { + allowedConsumerProjects_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + allowedConsumerProjects_.makeImmutable(); + return allowedConsumerProjects_; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedConsumerProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { + ensureAllowedConsumerProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerProjects() { + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object pscDnsName_ = ""; + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscDnsName() { + pscDnsName_ = getDefaultInstance().getPscDnsName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + + private void ensurePscInterfaceConfigsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = + new java.util.ArrayList( + pscInterfaceConfigs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> + pscInterfaceConfigsBuilder_; + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscInterfaceConfigsList() { + if (pscInterfaceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } else { + return pscInterfaceConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPscInterfaceConfigsCount() { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.size(); + } else { + return pscInterfaceConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscInterfaceConfigs( + java.lang.Iterable + values) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscInterfaceConfigs_); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscInterfaceConfigs() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscInterfaceConfigs(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.remove(index); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder + getPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + if (pscInterfaceConfigsBuilder_ != null) { + return pscInterfaceConfigsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); } } @@ -10133,106 +12655,120 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder() { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearPscDnsName() { - pscDnsName_ = getDefaultInstance().getPscDnsName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getPscInterfaceConfigsBuilderList() { + return getPscInterfaceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsFieldBuilder() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder>( + pscInterfaceConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + pscInterfaceConfigs_ = null; } - checkByteStringIsUtf8(value); - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return pscInterfaceConfigsBuilder_; } - private java.util.List - pscInterfaceConfigs_ = java.util.Collections.emptyList(); + private java.util.List + pscAutoConnections_ = java.util.Collections.emptyList(); - private void ensurePscInterfaceConfigsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - pscInterfaceConfigs_ = - new java.util.ArrayList( - pscInterfaceConfigs_); - bitField0_ |= 0x00000008; + private void ensurePscAutoConnectionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig>( + pscAutoConnections_); + bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> - pscInterfaceConfigsBuilder_; + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + pscAutoConnectionsBuilder_; /** * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscInterfaceConfigsList() { - if (pscInterfaceConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + public java.util.List + getPscAutoConnectionsList() { + if (pscAutoConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscAutoConnections_); } else { - return pscInterfaceConfigsBuilder_.getMessageList(); + return pscAutoConnectionsBuilder_.getMessageList(); } } @@ -10240,21 +12776,18 @@ private void ensurePscInterfaceConfigsIsMutable() { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getPscInterfaceConfigsCount() { - if (pscInterfaceConfigsBuilder_ == null) { - return pscInterfaceConfigs_.size(); + public int getPscAutoConnectionsCount() { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.size(); } else { - return pscInterfaceConfigsBuilder_.getCount(); + return pscAutoConnectionsBuilder_.getCount(); } } @@ -10262,22 +12795,19 @@ public int getPscInterfaceConfigsCount() { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterfaceConfigs( - int index) { - if (pscInterfaceConfigsBuilder_ == null) { - return pscInterfaceConfigs_.get(index); + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + getPscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); } else { - return pscInterfaceConfigsBuilder_.getMessage(index); + return pscAutoConnectionsBuilder_.getMessage(index); } } @@ -10285,27 +12815,24 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig getPscInterf * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscInterfaceConfigs( - int index, com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { - if (pscInterfaceConfigsBuilder_ == null) { + public Builder setPscAutoConnections( + int index, com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.set(index, value); + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, value); onChanged(); } else { - pscInterfaceConfigsBuilder_.setMessage(index, value); + pscAutoConnectionsBuilder_.setMessage(index, value); } return this; } @@ -10314,25 +12841,23 @@ public Builder setPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscInterfaceConfigs( + public Builder setPscAutoConnections( int index, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.set(index, builderForValue.build()); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, builderForValue.build()); onChanged(); } else { - pscInterfaceConfigsBuilder_.setMessage(index, builderForValue.build()); + pscAutoConnectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -10341,27 +12866,24 @@ public Builder setPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscInterfaceConfigs( - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { - if (pscInterfaceConfigsBuilder_ == null) { + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.add(value); + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(value); onChanged(); } else { - pscInterfaceConfigsBuilder_.addMessage(value); + pscAutoConnectionsBuilder_.addMessage(value); } return this; } @@ -10370,27 +12892,24 @@ public Builder addPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscInterfaceConfigs( - int index, com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig value) { - if (pscInterfaceConfigsBuilder_ == null) { + public Builder addPscAutoConnections( + int index, com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.add(index, value); + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, value); onChanged(); } else { - pscInterfaceConfigsBuilder_.addMessage(index, value); + pscAutoConnectionsBuilder_.addMessage(index, value); } return this; } @@ -10399,24 +12918,22 @@ public Builder addPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscInterfaceConfigs( - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.add(builderForValue.build()); + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(builderForValue.build()); onChanged(); } else { - pscInterfaceConfigsBuilder_.addMessage(builderForValue.build()); + pscAutoConnectionsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -10425,25 +12942,23 @@ public Builder addPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscInterfaceConfigs( + public Builder addPscAutoConnections( int index, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder builderForValue) { - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.add(index, builderForValue.build()); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); onChanged(); } else { - pscInterfaceConfigsBuilder_.addMessage(index, builderForValue.build()); + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -10452,25 +12967,23 @@ public Builder addPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllPscInterfaceConfigs( - java.lang.Iterable + public Builder addAllPscAutoConnections( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig> values) { - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscInterfaceConfigs_); + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); onChanged(); } else { - pscInterfaceConfigsBuilder_.addAllMessages(values); + pscAutoConnectionsBuilder_.addAllMessages(values); } return this; } @@ -10479,23 +12992,20 @@ public Builder addAllPscInterfaceConfigs( * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPscInterfaceConfigs() { - if (pscInterfaceConfigsBuilder_ == null) { - pscInterfaceConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { - pscInterfaceConfigsBuilder_.clear(); + pscAutoConnectionsBuilder_.clear(); } return this; } @@ -10504,23 +13014,20 @@ public Builder clearPscInterfaceConfigs() { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removePscInterfaceConfigs(int index) { - if (pscInterfaceConfigsBuilder_ == null) { - ensurePscInterfaceConfigsIsMutable(); - pscInterfaceConfigs_.remove(index); + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); onChanged(); } else { - pscInterfaceConfigsBuilder_.remove(index); + pscAutoConnectionsBuilder_.remove(index); } return this; } @@ -10529,41 +13036,35 @@ public Builder removePscInterfaceConfigs(int index) { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder - getPscInterfaceConfigsBuilder(int index) { - return getPscInterfaceConfigsFieldBuilder().getBuilder(index); + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder().getBuilder(index); } /** * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder - getPscInterfaceConfigsOrBuilder(int index) { - if (pscInterfaceConfigsBuilder_ == null) { - return pscInterfaceConfigs_.get(index); + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); } else { - return pscInterfaceConfigsBuilder_.getMessageOrBuilder(index); + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); } } @@ -10571,23 +13072,20 @@ public Builder removePscInterfaceConfigs(int index) { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List< - ? extends com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> - getPscInterfaceConfigsOrBuilderList() { - if (pscInterfaceConfigsBuilder_ != null) { - return pscInterfaceConfigsBuilder_.getMessageOrBuilderList(); + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + return java.util.Collections.unmodifiableList(pscAutoConnections_); } } @@ -10595,82 +13093,76 @@ public Builder removePscInterfaceConfigs(int index) { * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder - addPscInterfaceConfigsBuilder() { - return getPscInterfaceConfigsFieldBuilder() + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return getPscAutoConnectionsFieldBuilder() .addBuilder( - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.getDefaultInstance()); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance()); } /** * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder - addPscInterfaceConfigsBuilder(int index) { - return getPscInterfaceConfigsFieldBuilder() + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder() .addBuilder( index, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.getDefaultInstance()); + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance()); } /** * * *
-       * Optional. Configurations for setting up PSC interfaces attached to the
-       * instance which are used for outbound connectivity. Only primary instances
-       * can have PSC interface attached. Currently we only support 0 or 1 PSC
-       * interface.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscInterfaceConfigsBuilderList() { - return getPscInterfaceConfigsFieldBuilder().getBuilderList(); + public java.util.List< + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder> + getPscAutoConnectionsBuilderList() { + return getPscAutoConnectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder> - getPscInterfaceConfigsFieldBuilder() { - if (pscInterfaceConfigsBuilder_ == null) { - pscInterfaceConfigsBuilder_ = + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.PscInterfaceConfigOrBuilder>( - pscInterfaceConfigs_, - ((bitField0_ & 0x00000008) != 0), + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - pscInterfaceConfigs_ = null; + pscAutoConnections_ = null; } - return pscInterfaceConfigsBuilder_; + return pscAutoConnectionsBuilder_; } @java.lang.Override @@ -13543,11 +16035,13 @@ public int getDatabaseFlagsCount() { * * *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -13580,11 +16074,13 @@ public java.util.Map getDatabaseFlags() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -13607,11 +16103,13 @@ public java.util.Map getDatabaseFlagsMap() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -13641,11 +16139,13 @@ public java.util.Map getDatabaseFlagsMap() {
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -14736,6 +17236,65 @@ public com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int inde
     return outboundPublicIpAddresses_.getByteString(index);
   }
 
+  public static final int GCA_CONFIG_FIELD_NUMBER = 38;
+  private com.google.cloud.alloydb.v1alpha.GCAInstanceConfig gcaConfig_;
+
+  /**
+   *
+   *
+   * 
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + @java.lang.Override + public boolean hasGcaConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig getGcaConfig() { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder() { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -14845,6 +17404,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 34, outboundPublicIpAddresses_.getRaw(i)); } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(38, getGcaConfig()); + } getUnknownFields().writeTo(output); } @@ -14980,6 +17542,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getOutboundPublicIpAddressesList().size(); } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -15067,6 +17632,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getOutboundPublicIpAddressesList().equals(other.getOutboundPublicIpAddressesList())) return false; + if (hasGcaConfig() != other.hasGcaConfig()) return false; + if (hasGcaConfig()) { + if (!getGcaConfig().equals(other.getGcaConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15176,6 +17745,10 @@ public int hashCode() { hash = (37 * hash) + OUTBOUND_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getOutboundPublicIpAddressesList().hashCode(); } + if (hasGcaConfig()) { + hash = (37 * hash) + GCA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcaConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -15362,6 +17935,7 @@ private void maybeForceBuilderInitialization() { getPscInstanceConfigFieldBuilder(); getNetworkConfigFieldBuilder(); getGeminiConfigFieldBuilder(); + getGcaConfigFieldBuilder(); } } @@ -15458,6 +18032,11 @@ public Builder clear() { geminiConfigBuilder_ = null; } outboundPublicIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + gcaConfig_ = null; + if (gcaConfigBuilder_ != null) { + gcaConfigBuilder_.dispose(); + gcaConfigBuilder_ = null; + } return this; } @@ -15633,6 +18212,10 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance result) { outboundPublicIpAddresses_.makeImmutable(); result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } result.bitField0_ |= to_bitField0_; } @@ -15816,6 +18399,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { } onChanged(); } + if (other.hasGcaConfig()) { + mergeGcaConfig(other.getGcaConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16058,6 +18644,12 @@ public Builder mergeFrom( outboundPublicIpAddresses_.add(s); break; } // case 274 + case 306: + { + input.readMessage(getGcaConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 306 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17975,11 +20567,13 @@ public int getDatabaseFlagsCount() { * * *
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18012,11 +20606,13 @@ public java.util.Map getDatabaseFlags() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18039,11 +20635,13 @@ public java.util.Map getDatabaseFlagsMap() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18073,11 +20671,13 @@ public java.util.Map getDatabaseFlagsMap() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18113,11 +20713,13 @@ public Builder clearDatabaseFlags() {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18150,11 +20752,13 @@ public java.util.Map getMutableDatabaseFlags
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -18184,11 +20788,13 @@ public Builder putDatabaseFlags(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Database flags. Set at instance level.
-     *  * They are copied from primary instance on read instance creation.
-     *  * Read instances can set new or override existing flags that are relevant
-     *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-     *    set on read instance may or may not be present on primary.
+     * Database flags. Set at the instance level.
+     * They are copied from the primary instance on secondary instance creation.
+     * Flags that have restrictions default to the value at primary
+     * instance on read instances during creation. Read instances can set new
+     * flags or override existing flags that are relevant for reads, for example,
+     * for enabling columnar cache on a read instance. Flags set on read instance
+     * might or might not be present on the primary instance.
      *
      *
      * This is a list of "key": "value" pairs.
@@ -21554,6 +24160,220 @@ public Builder addOutboundPublicIpAddressesBytes(com.google.protobuf.ByteString
       return this;
     }
 
+    private com.google.cloud.alloydb.v1alpha.GCAInstanceConfig gcaConfig_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.alloydb.v1alpha.GCAInstanceConfig,
+            com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder,
+            com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder>
+        gcaConfigBuilder_;
+
+    /**
+     *
+     *
+     * 
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + public boolean hasGcaConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig getGcaConfig() { + if (gcaConfigBuilder_ == null) { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } else { + return gcaConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig value) { + if (gcaConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcaConfig_ = value; + } else { + gcaConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcaConfig( + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder builderForValue) { + if (gcaConfigBuilder_ == null) { + gcaConfig_ = builderForValue.build(); + } else { + gcaConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig value) { + if (gcaConfigBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && gcaConfig_ != null + && gcaConfig_ + != com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance()) { + getGcaConfigBuilder().mergeFrom(value); + } else { + gcaConfig_ = value; + } + } else { + gcaConfigBuilder_.mergeFrom(value); + } + if (gcaConfig_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGcaConfig() { + bitField0_ = (bitField0_ & ~0x80000000); + gcaConfig_ = null; + if (gcaConfigBuilder_ != null) { + gcaConfigBuilder_.dispose(); + gcaConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder getGcaConfigBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getGcaConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder() { + if (gcaConfigBuilder_ != null) { + return gcaConfigBuilder_.getMessageOrBuilder(); + } else { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder> + getGcaConfigFieldBuilder() { + if (gcaConfigBuilder_ == null) { + gcaConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder, + com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder>( + getGcaConfig(), getParentForChildren(), isClean()); + gcaConfig_ = null; + } + return gcaConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java index 85d744264585..f91206c68522 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/InstanceOrBuilder.java @@ -479,11 +479,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -503,11 +505,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -531,11 +535,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -555,11 +561,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -583,11 +591,13 @@ java.lang.String getDatabaseFlagsOrDefault(
    *
    *
    * 
-   * Database flags. Set at instance level.
-   *  * They are copied from primary instance on read instance creation.
-   *  * Read instances can set new or override existing flags that are relevant
-   *    for reads, e.g. for enabling columnar cache on a read instance. Flags
-   *    set on read instance may or may not be present on primary.
+   * Database flags. Set at the instance level.
+   * They are copied from the primary instance on secondary instance creation.
+   * Flags that have restrictions default to the value at primary
+   * instance on read instances during creation. Read instances can set new
+   * flags or override existing flags that are relevant for reads, for example,
+   * for enabling columnar cache on a read instance. Flags set on read instance
+   * might or might not be present on the primary instance.
    *
    *
    * This is a list of "key": "value" pairs.
@@ -1340,4 +1350,47 @@ java.lang.String getAnnotationsOrDefault(
    * @return The bytes of the outboundPublicIpAddresses at the given index.
    */
   com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index);
+
+  /**
+   *
+   *
+   * 
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + boolean hasGcaConfig(); + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + com.google.cloud.alloydb.v1alpha.GCAInstanceConfig getGcaConfig(); + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1alpha.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequest.java index 9e8af9ff9266..022caeb2d1f1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequest.java @@ -43,6 +43,7 @@ private ListSupportedDatabaseFlagsRequest( private ListSupportedDatabaseFlagsRequest() { parent_ = ""; pageToken_ = ""; + scope_ = 0; } @java.lang.Override @@ -208,6 +209,51 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_ = 0; + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -231,6 +277,11 @@ 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 (scope_ + != com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } getUnknownFields().writeTo(output); } @@ -249,6 +300,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (scope_ + != com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -268,6 +324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (scope_ != other.scope_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,6 +342,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -431,6 +490,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + scope_ = 0; return this; } @@ -479,6 +539,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; + } } @java.lang.Override @@ -543,6 +606,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -587,6 +653,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 48: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -927,6 +999,118 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int scope_ = 0; + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000008); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequestOrBuilder.java index 7052425e438e..82b1d5d17e84 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ListSupportedDatabaseFlagsRequestOrBuilder.java @@ -105,4 +105,36 @@ public interface ListSupportedDatabaseFlagsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadata.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadata.java index b90f32285420..9faf447fc739 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadata.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadata.java @@ -577,9 +577,10 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2778,9 +2779,10 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2798,9 +2800,10 @@ public boolean getRequestedCancellation() { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2822,9 +2825,10 @@ public Builder setRequestedCancellation(boolean value) { *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a
-     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-     * `Code.CANCELLED`.
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadataOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadataOrBuilder.java index bc97cc50610f..ed9a3d829b4c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadataOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/OperationMetadataOrBuilder.java @@ -318,9 +318,10 @@ public interface OperationMetadataOrBuilder *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a
-   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
-   * `Code.CANCELLED`.
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java index fe4511858e76..bca35b91570c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ResourcesProto.java @@ -168,6 +168,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_Instance_PscInterfaceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -455,7 +459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSECONDARY\020\002:u\352Ar\n" + "\036alloydb.googleapis.com/Cluster\022:projects" + "/{project}/locations/{location}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\230!\n" + + "\006source\"\233$\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -506,14 +510,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gemini_config\030! \001(\01322.goog" + "le.cloud.alloydb.v1alpha.GeminiInstanceConfigB\003\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" - + "\tB\013\340A\003\342\214\317\327\010\002\010\002\032\"\n\r" + + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022H\n\n" + + "gca_config\030& \001(" + + "\0132/.google.cloud.alloydb.v1alpha.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" - + "\tcpu_count\030\001 \001(\005\032>\n" - + "\004Node\022\017\n" - + "\007zone_id\030\001 \001(\t\022\n\n" - + "\002id\030\002 \001(\t\022\n\n" - + "\002ip\030\003 \001(\t\022\r\n" - + "\005state\030\004 \001(\t\032\372\001\n" + + "\tcpu_count\030\001 \001(\005\022\024\n" + + "\014machine_type\030\004 \001(\t\032R\n" + + "\004Node\022\024\n" + + "\007zone_id\030\001 \001(\tB\003\340A\003\022\017\n" + + "\002id\030\002 \001(\tB\003\340A\003\022\017\n" + + "\002ip\030\003 \001(\tB\003\340A\003\022\022\n" + + "\005state\030\004 \001(\tB\003\340A\003\032\372\001\n" + "\033QueryInsightsInstanceConfig\022$\n" + "\027record_application_tags\030\002 \001(\010H\000\210\001\001\022\"\n" + "\025record_client_address\030\003 \001(\010H\001\210\001\001\022\033\n" @@ -546,27 +553,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032\222\001\n" + "\014UpdatePolicy\022F\n" - + "\004mode\030\001 \001" - + "(\01628.google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n" + + "\004mode\030\001 \001(\01628" + + ".google.cloud.alloydb.v1alpha.Instance.UpdatePolicy.Mode\":\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013FORCE_APPLY\020\002\032{\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022@\n\n" - + "ssl_config\030\002 \001(\0132" - + "\'.google.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n" + + "ssl_config\030\002 \001(\0132\'.go" + + "ogle.cloud.alloydb.v1alpha.SslConfigB\003\340A\001\0329\n" + "\022PscInterfaceConfig\022#\n" - + "\033network_attachment_resource\030\001 \001(\t\032\333\001\n" + + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + + "\027PscAutoConnectionConfig\022\030\n" + + "\020consumer_project\030\001 \001(\t\022\030\n" + + "\020consumer_network\030\002 \001(\t\022\037\n\n" + + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + + "\006status\030\004 \001(\tB\003\340A\003\022$\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\276\002\n" + "\021PscInstanceConfig\022$\n" + "\027service_attachment_link\030\001 \001(\tB\003\340A\003\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022]\n" - + "\025psc_interface_configs\030\010 \003(\01329.google.cloud.al" - + "loydb.v1alpha.Instance.PscInterfaceConfigB\003\340A\001\032\214\002\n" + + "\025psc_interface_configs\030\010 \003(\01329.google." + + "cloud.alloydb.v1alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n" + + "\024psc_auto_connections\030\t" + + " \003(\0132>.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigB\003\340A\001\032\214\002\n" + "\025InstanceNetworkConfig\022y\n" - + "\034authorized_external_networks\030\001 \003(\0132N.google." - + "cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132N.google.cloud.alloydb" + + ".v1alpha.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0321\n" + "\021AuthorizedNetwork\022\034\n\n" @@ -578,7 +593,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\221\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" @@ -592,16 +608,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tPROMOTING\020\t\"X\n" + "\014InstanceType\022\035\n" + "\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n" - + "\007PRIMARY\020\001\022\r" - + "\n" + + "\007PRIMARY\020\001\022\r\n" + "\tREAD_POOL\020\002\022\r\n" + "\tSECONDARY\020\003\"N\n" + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" + "\010REGIONAL\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{" - + "project}/locations/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/loca" + + "tions/{location}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\352\002\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -611,9 +626,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340A\003\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" + "\014psc_dns_name\030\006 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/" - + "{location}/clusters/{cluster}/instances/" - + "{instance}/connectionInfo*\017connectionInfos2\016connectionInfo\"\215\r\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/cl" + + "usters/{cluster}/instances/{instance}/co" + + "nnectionInfo*\017connectionInfos2\016connectionInfo\"\215\r\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -622,8 +637,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022@\n" + "\006labels\030\006 \003(\01320.google.cloud.alloydb.v1alpha.Backup.LabelsEntry\022>\n" - + "\005state\030\007" - + " \001(\0162*.google.cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n" + + "\005state\030\007 \001(\0162*" + + ".google.cloud.alloydb.v1alpha.Backup.StateB\003\340A\003\0227\n" + "\004type\030\010 \001(\0162).google.cloud.alloydb.v1alpha.Backup.Type\022\023\n" + "\013description\030\t \001(\t\022\030\n" + "\013cluster_uid\030\022 \001(\tB\003\340A\003\022<\n" @@ -631,21 +646,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022\030\n" + "\013reconciling\030\013 \001(\010B\003\340A\003\022N\n" - + "\021encryption_config\030\014 \001(\0132" - + "..google.cloud.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n" + + "\021encryption_config\030\014 \001(\0132..google.clou" + + "d.alloydb.v1alpha.EncryptionConfigB\003\340A\001\022J\n" + "\017encryption_info\030\r" + " \001(\0132,.google.cloud.alloydb.v1alpha.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022J\n" - + "\013annotations\030\020 " - + "\003(\01325.google.cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n\n" + + "\013annotations\030\020 \003(\01325.google." + + "cloud.alloydb.v1alpha.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" - + "\017expiry_quantity\030\024 \001" - + "(\01328.google.cloud.alloydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01328.google.c" + + "loud.alloydb.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzi\030\027 \001(\010B\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022L\n" - + "\020database_version\030\026 \001(\0162-.google.clo" - + "ud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n" + + "\020database_version\030\026" + + " \001(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersionB\003\340A\003\022G\n" + "\004tags\030\031 \003(\0132..google.cloud.alloydb.v1alpha.Backup.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032W\n" + "\023QuantityBasedExpiry\022\034\n" @@ -671,21 +686,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228projects/{project}" - + "/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\215\007\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations/{l" + + "ocation}/backups/{backup}*\007backups2\006backupR\001\001\"\225\t\n" + "\025SupportedDatabaseFlag\022e\n" - + "\023string_restrictions\030\007 \001(\0132F.goog" - + "le.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n" - + "\024integer_restrictions\030\010 \001(\0132G.google.cloud.alloydb" - + ".v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\014\n" + + "\023string_restrictions\030\007 \001(\0132F.google.cloud.allo" + + "ydb.v1alpha.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n" + + "\024integer_restrictions\030\010 \001(\0132G.google.cloud.alloydb.v1alpha.Supp" + + "ortedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\030recommended_string_value\030\n" + + " \001(\tH\001\022@\n" + + "\031recommended_integer_value\030\013" + + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022Q\n\n" - + "value_type\030\003 \001(\0162=.google.cloud" - + ".alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001(\0162=.goo" + + "gle.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022L\n" - + "\025supported_db_versions\030\005 \003(\0162-.googl" - + "e.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n" - + "\023requires_db_restart\030\006 \001(\010\032,\n" + + "\025supported_db_versions\030\005 \003(" + + "\0162-.google.cloud.alloydb.v1alpha.DatabaseVersion\022\033\n" + + "\023requires_db_restart\030\006 \001(\010\022H\n" + + "\005scope\030\t" + + " \001(\01629.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" @@ -696,30 +717,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006STRING\020\001\022\013\n" + "\007INTEGER\020\002\022\t\n" + "\005FLOAT\020\003\022\010\n" - + "\004NONE\020\004:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}/locati" - + "ons/{location}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" - + "\014restrictions\"\377\002\n" + + "\004NONE\020\004\"A\n" + + "\005Scope\022\025\n" + + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + + "\010DATABASE\020\001\022\023\n" + + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{project}/locations/{locat" + + "ion}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + "\014restrictionsB\023\n" + + "\021recommended_value\"\377\002\n" + "\004User\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\033\n" + "\016database_roles\030\004 \003(\tB\003\340A\001\022C\n" - + "\tuser_type\030\005 \001(\0162+.google.c" - + "loud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005 \001(\016" + + "2+.google.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" + "\010UserType\022\031\n" + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{p" - + "roject}/locations/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{location}/" + + "clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007charset\030\002 \001(\tB\003\340A\001\022\026\n" + "\tcollation\030\003 \001(\tB\003\340A\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oproj" - + "ects/{project}/locations/{location}/clusters/{cluster}/databases/{database}*" - + "\tdatabases2\010databaseR\001\001*^\n" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{loc" + + "ation}/clusters/{cluster}/databases/{database}*\tdatabases2\010databaseR\001\001*^\n" + "\014InstanceView\022\035\n" + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n" + "\023INSTANCE_VIEW_BASIC\020\001\022\026\n" @@ -738,16 +763,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\313\003\n" - + " com.google.cloud.alloydb.v1alphaB\016ResourcesProtoP\001" - + "Z:cloud.google.com/go/alloydb/apiv1alpha" - + "/alloydbpb;alloydbpb\252\002\034Google.Cloud.Allo" - + "yDb.V1Alpha\312\002\034Google\\Cloud\\AlloyDb\\V1alp" - + "ha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{locati" - + "on}/keyRings/{key_ring}/cryptoKeys/{cryp" - + "to_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project}/global/networks/{n" - + "etwork}b\006proto3" + + " com.google.cloud.alloydb.v1alphaB\016ResourcesProtoP\001Z:cloud.google.com/go/alloydb" + + "/apiv1alpha/alloydbpb;alloydbpb\252\002\034Google" + + ".Cloud.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\Al" + + "loyDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/crypt" + + "oKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036compute.googleapis.com/Network\022,projects/{project}/global/" + + "networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1064,6 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkConfig", "GeminiConfig", "OutboundPublicIpAddresses", + "GcaConfig", }); internal_static_google_cloud_alloydb_v1alpha_Instance_MachineConfig_descriptor = internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(0); @@ -1071,7 +1096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_MachineConfig_descriptor, new java.lang.String[] { - "CpuCount", + "CpuCount", "MachineType", }); internal_static_google_cloud_alloydb_v1alpha_Instance_Node_descriptor = internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(1); @@ -1140,8 +1165,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "NetworkAttachmentResource", }); - internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor = internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_Instance_PscAutoConnectionConfig_descriptor, + new java.lang.String[] { + "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", + }); + internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(9); internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor, @@ -1150,9 +1183,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowedConsumerProjects", "PscDnsName", "PscInterfaceConfigs", + "PscAutoConnections", }); internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(10); internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor, @@ -1170,7 +1204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(10); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(11); internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor, @@ -1178,7 +1212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(11); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(12); internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor, @@ -1186,7 +1220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(12); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedTypes().get(13); internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor, @@ -1277,13 +1311,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StringRestrictions", "IntegerRestrictions", + "RecommendedStringValue", + "RecommendedIntegerValue", "Name", "FlagName", "ValueType", "AcceptsMultipleValues", "SupportedDbVersions", "RequiresDbRestart", + "Scope", "Restrictions", + "RecommendedValue", }); internal_static_google_cloud_alloydb_v1alpha_SupportedDatabaseFlag_StringRestrictions_descriptor = internal_static_google_cloud_alloydb_v1alpha_SupportedDatabaseFlag_descriptor diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequest.java new file mode 100644 index 000000000000..5e943dd1916f --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequest.java @@ -0,0 +1,1568 @@ +/* + * 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/alloydb/v1alpha/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +/** + * + * + *
+ * Message for registering Restoring from CloudSQL resource.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest} + */ +public final class RestoreFromCloudSQLRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) + RestoreFromCloudSQLRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RestoreFromCloudSQLRequest.newBuilder() to construct. + private RestoreFromCloudSQLRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreFromCloudSQLRequest() { + parent_ = ""; + clusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreFromCloudSQLRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.Builder.class); + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUDSQL_BACKUP_RUN_SOURCE(101), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 101: + return CLOUDSQL_BACKUP_RUN_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER = 101; + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.alloydb.v1alpha.Cluster cluster_; + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Cluster getCluster() { + return cluster_ == null + ? com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance() + : cluster_; + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.ClusterOrBuilder getClusterOrBuilder() { + return cluster_ == null + ? com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance() + : cluster_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCluster()); + } + if (sourceCase_ == 101) { + output.writeMessage(101, (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + } + if (sourceCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_); + } + 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.alloydb.v1alpha.RestoreFromCloudSQLRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest other = + (com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 101: + if (!getCloudsqlBackupRunSource().equals(other.getCloudsqlBackupRunSource())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + switch (sourceCase_) { + case 101: + hash = (37 * hash) + CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudsqlBackupRunSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest 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.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest 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.alloydb.v1alpha.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.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.alloydb.v1alpha.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest 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.alloydb.v1alpha.RestoreFromCloudSQLRequest 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 for registering Restoring from CloudSQL resource.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudsqlBackupRunSourceBuilder_ != null) { + cloudsqlBackupRunSourceBuilder_.clear(); + } + parent_ = ""; + clusterId_ = ""; + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1alpha.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1alpha_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest build() { + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest buildPartial() { + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest result = + new com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 101 && cloudsqlBackupRunSourceBuilder_ != null) { + result.source_ = cloudsqlBackupRunSourceBuilder_.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.alloydb.v1alpha.RestoreFromCloudSQLRequest) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest other) { + if (other == com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + switch (other.getSourceCase()) { + case CLOUDSQL_BACKUP_RUN_SOURCE: + { + mergeCloudsqlBackupRunSource(other.getCloudsqlBackupRunSource()); + break; + } + case SOURCE_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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 810: + { + input.readMessage( + getCloudsqlBackupRunSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 101; + break; + } // case 810 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder> + cloudsqlBackupRunSourceBuilder_; + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } else { + if (sourceCase_ == 101) { + return cloudsqlBackupRunSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.Builder builderForValue) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder mergeCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101 + && source_ + != com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.newBuilder( + (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 101) { + cloudsqlBackupRunSourceBuilder_.mergeFrom(value); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder clearCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + } + cloudsqlBackupRunSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.Builder + getCloudsqlBackupRunSourceBuilder() { + return getCloudsqlBackupRunSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if ((sourceCase_ == 101) && (cloudsqlBackupRunSourceBuilder_ != null)) { + return cloudsqlBackupRunSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder> + getCloudsqlBackupRunSourceFieldBuilder() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (!(sourceCase_ == 101)) { + source_ = com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.getDefaultInstance(); + } + cloudsqlBackupRunSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder>( + (com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 101; + onChanged(); + return cloudsqlBackupRunSourceBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1alpha.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Cluster, + com.google.cloud.alloydb.v1alpha.Cluster.Builder, + com.google.cloud.alloydb.v1alpha.ClusterOrBuilder> + clusterBuilder_; + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.cloud.alloydb.v1alpha.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1alpha.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + } else { + clusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1alpha.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.cloud.alloydb.v1alpha.Cluster value) { + if (clusterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && cluster_ != null + && cluster_ != com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance()) { + getClusterBuilder().mergeFrom(value); + } else { + cluster_ = value; + } + } else { + clusterBuilder_.mergeFrom(value); + } + if (cluster_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + bitField0_ = (bitField0_ & ~0x00000008); + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1alpha.Cluster.Builder getClusterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1alpha.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.cloud.alloydb.v1alpha.Cluster.getDefaultInstance() + : cluster_; + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Cluster, + com.google.cloud.alloydb.v1alpha.Cluster.Builder, + com.google.cloud.alloydb.v1alpha.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1alpha.Cluster, + com.google.cloud.alloydb.v1alpha.Cluster.Builder, + com.google.cloud.alloydb.v1alpha.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + @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.alloydb.v1alpha.RestoreFromCloudSQLRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) + private static final com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest(); + } + + public static com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreFromCloudSQLRequest 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.alloydb.v1alpha.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequestOrBuilder.java new file mode 100644 index 000000000000..d8395edc0e8e --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/RestoreFromCloudSQLRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * 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/alloydb/v1alpha/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1alpha; + +public interface RestoreFromCloudSQLRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + boolean hasCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource getCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + com.google.cloud.alloydb.v1alpha.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.cloud.alloydb.v1alpha.Cluster getCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1alpha.ClusterOrBuilder getClusterOrBuilder(); + + com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest.SourceCase getSourceCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ServiceProto.java index 106970bd1a28..4849edfa51da 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ServiceProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/ServiceProto.java @@ -52,6 +52,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1alpha_UpdateClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -323,7 +359,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%.google.cloud.alloydb.v1alpha.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\032\n\r" - + "allow_missing\030\005 \001(\010B\003\340A\001\"\342\001\n" + + "allow_missing\030\005 \001(\010B\003\340A\001\"\"\n" + + "\016GcsDestination\022\020\n" + + "\003uri\030\001 \001(\tB\003\340A\002\"\204\006\n" + + "\024ExportClusterRequest\022L\n" + + "\017gcs_destination\030\002" + + " \001(\0132,.google.cloud.alloydb.v1alpha.GcsDestinationB\003\340A\002H\000\022a\n" + + "\022csv_export_options\030\004 \001(\0132C.google.cloud.alloydb.v1alp" + + "ha.ExportClusterRequest.CsvExportOptionsH\001\022a\n" + + "\022sql_export_options\030\005 \001(\0132C.google." + + "cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptionsH\001\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022\025\n" + + "\010database\030\003 \001(\tB\003\340A\002\032\210\001\n" + + "\020CsvExportOptions\022\031\n" + + "\014select_query\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017field_delimiter\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017quote_character\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020escape_character\030\004 \001(\tB\003\340A\001\032\336\001\n" + + "\020SqlExportOptions\022\023\n" + + "\006tables\030\001 \003(\tB\003\340A\001\022\035\n" + + "\013schema_only\030\002 \001(\010B\003\340A\001H\000\210\001\001\022&\n" + + "\024clean_target_objects\030\003 \001(\010B\003\340A\001H\001\210\001\001\022)\n" + + "\027if_exist_target_objects\030\004 \001(\010B\003\340A\001H\002\210\001\001B\016\n" + + "\014_schema_onlyB\027\n" + + "\025_clean_target_objectsB\032\n" + + "\030_if_exist_target_objectsB\r\n" + + "\013destinationB\020\n" + + "\016export_options\"t\n" + + "\025ExportClusterResponse\022L\n" + + "\017gcs_destination\030\002" + + " \001(\0132,.google.cloud.alloydb.v1alpha.GcsDestinationB\003\340A\002H\000B\r" + + "\n" + + "\013destination\"\222\004\n" + + "\024ImportClusterRequest\022a\n" + + "\022sql_import_options\030\004 \001(\0132C.google.clou" + + "d.alloydb.v1alpha.ImportClusterRequest.SqlImportOptionsH\000\022a\n" + + "\022csv_import_options\030\007" + + " \001(\0132C.google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptionsH\000\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022\024\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\002\022\025\n" + + "\010database\030\003 \001(\tB\003\340A\001\022\021\n" + + "\004user\030\005 \001(\tB\003\340A\001\032\022\n" + + "\020SqlImportOptions\032\227\001\n" + + "\020CsvImportOptions\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\002\022\024\n" + + "\007columns\030\002 \003(\tB\003\340A\001\022\034\n" + + "\017field_delimiter\030\003 \001(\tB\003\340A\001\022\034\n" + + "\017quote_character\030\004 \001(\tB\003\340A\001\022\035\n" + + "\020escape_character\030\005 \001(\tB\003\340A\001B\020\n" + + "\016import_options\"6\n" + + "\025ImportClusterResponse\022\035\n" + + "\020bytes_downloaded\030\001 \001(\003B\003\340A\002\"\342\001\n" + "\025UpgradeClusterRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022C\n" @@ -333,11 +421,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\004 \001(\010B\003\340A\001\022\021\n" + "\004etag\030\005 \001(\tB\003\340A\001\"\221\013\n" + "\026UpgradeClusterResponse\022K\n" - + "\006status\030\001 \001(\0162;.g" - + "oogle.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022\017\n" + + "\006status\030\001 \001(\0162;.goo" + + "gle.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022\017\n" + "\007message\030\002 \001(\t\022k\n" - + "\027cluster_upgrade_details\030\003 \003(\0132J.google.clo" - + "ud.alloydb.v1alpha.UpgradeClusterResponse.ClusterUpgradeDetails\032\265\001\n" + + "\027cluster_upgrade_details\030\003 \003(\0132J.google.cloud" + + ".alloydb.v1alpha.UpgradeClusterResponse.ClusterUpgradeDetails\032\265\001\n" + "\tStageInfo\022I\n" + "\005stage\030\001" + " \001(\0162:.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Stage\022K\n" @@ -346,22 +434,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010logs_url\030\003 \001(\t\032\307\001\n" + "\026InstanceUpgradeDetails\022\014\n" + "\004name\030\001 \001(\t\022S\n" - + "\016upgrade_status\030\002 \001(\0162;.googl" - + "e.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022J\n\r" - + "instance_type\030\003 \001(\01623.g" - + "oogle.cloud.alloydb.v1alpha.Instance.InstanceType\032\317\003\n" + + "\016upgrade_status\030\002 \001(\0162;.google." + + "cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022J\n\r" + + "instance_type\030\003 \001(\01623.goo" + + "gle.cloud.alloydb.v1alpha.Instance.InstanceType\032\317\003\n" + "\025ClusterUpgradeDetails\022\014\n" + "\004name\030\001 \001(\t\022S\n" - + "\016upgrade_status\030\002 \001(\0162;.goog" - + "le.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022G\n" - + "\014cluster_type\030\003 \001(\01621.g" - + "oogle.cloud.alloydb.v1alpha.Cluster.ClusterType\022G\n" - + "\020database_version\030\004 \001(\0162-.goog" - + "le.cloud.alloydb.v1alpha.DatabaseVersion\022R\n\n" - + "stage_info\030\005 \003(\0132>.google.cloud.allo" - + "ydb.v1alpha.UpgradeClusterResponse.StageInfo\022m\n" - + "\030instance_upgrade_details\030\006 \003(\0132K" - + ".google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails\"\227\001\n" + + "\016upgrade_status\030\002 \001(\0162;.google" + + ".cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022G\n" + + "\014cluster_type\030\003 \001(\01621.goo" + + "gle.cloud.alloydb.v1alpha.Cluster.ClusterType\022G\n" + + "\020database_version\030\004 \001(\0162-.google" + + ".cloud.alloydb.v1alpha.DatabaseVersion\022R\n\n" + + "stage_info\030\005 \003(\0132>.google.cloud.alloyd" + + "b.v1alpha.UpgradeClusterResponse.StageInfo\022m\n" + + "\030instance_upgrade_details\030\006 \003(\0132K.g" + + "oogle.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails\"\227\001\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\017\n" + "\013NOT_STARTED\020\004\022\017\n" @@ -406,8 +494,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB&\340A\002\372A" + " \022\036alloydb.googleapis.com/Cluster\022\027\n\n" + "cluster_id\030\002 \001(\tB\003\340A\002\022;\n" - + "\007cluster\030\003 " - + "\001(\0132%.google.cloud.alloydb.v1alpha.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\003 \001(" + + "\0132%.google.cloud.alloydb.v1alpha.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\005 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\006 \001(\010B\003\340A\001B\010\n" + "\006source\"\247\001\n" @@ -430,8 +518,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022=\n" - + "\010instance\030\003 \001(\0132&.goo" - + "gle.cloud.alloydb.v1alpha.InstanceB\003\340A\002\022\027\n\n" + + "\010instance\030\003" + + " \001(\0132&.google.cloud.alloydb.v1alpha.InstanceB\003\340A\002\022\027\n" + + "\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\"\347\001\n" + "\036CreateSecondaryInstanceRequest\0227\n" @@ -443,24 +532,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\"t\n" + "\026CreateInstanceRequests\022Z\n" - + "\030create_instance_requests\030\001 \003(\01323.google.clou" - + "d.alloydb.v1alpha.CreateInstanceRequestB\003\340A\002\"\274\001\n" + + "\030create_instance_requests\030\001 \003(\01323.google.cloud." + + "alloydb.v1alpha.CreateInstanceRequestB\003\340A\002\"\274\001\n" + "\033BatchCreateInstancesRequest\0227\n" + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022K\n" - + "\010requests\030\002 \001(\01324.google" - + ".cloud.alloydb.v1alpha.CreateInstanceRequestsB\003\340A\002\022\027\n\n" + + "\010requests\030\002 \001(\01324.google.c" + + "loud.alloydb.v1alpha.CreateInstanceRequestsB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"Y\n" + "\034BatchCreateInstancesResponse\0229\n" + "\tinstances\030\001 \003(\0132&.google.cloud.alloydb.v1alpha.Instance\"\227\002\n" + "\034BatchCreateInstancesMetadata\022\030\n" + "\020instance_targets\030\001 \003(\t\022k\n" - + "\021instance_statuses\030\002 \003(\0132P.google.cloud.alloydb.v1al" - + "pha.BatchCreateInstancesMetadata.InstanceStatusesEntry\032p\n" + + "\021instance_statuses\030\002 \003(\0132P.google.cloud.alloydb.v1alph" + + "a.BatchCreateInstancesMetadata.InstanceStatusesEntry\032p\n" + "\025InstanceStatusesEntry\022\013\n" + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001(\01327.google.clo" - + "ud.alloydb.v1alpha.BatchCreateInstanceStatus:\0028\001\"\332\002\n" + + "\005value\030\002 \001(\01327.google.cloud" + + ".alloydb.v1alpha.BatchCreateInstanceStatus:\0028\001\"\332\002\n" + "\031BatchCreateInstanceStatus\022L\n" + "\005state\030\001" + " \001(\0162=.google.cloud.alloydb.v1alpha.BatchCreateInstanceStatus.State\022\021\n" @@ -494,8 +583,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\"\213\002\n" + "\022InjectFaultRequest\022S\n\n" - + "fault_type\030\001 \001(\0162:.goog" - + "le.cloud.alloydb.v1alpha.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + + "fault_type\030\001 \001(\0162:.google" + + ".cloud.alloydb.v1alpha.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + "\004name\030\002 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" @@ -519,15 +608,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017user_credential\"\226\001\n" + "\022ExecuteSqlResponse\022<\n" + "\013sql_results\030\001 \003(\0132\'.google.cloud.alloydb.v1alpha.SqlResult\022B\n" - + "\010metadata\030\003 \001(\01320.g" - + "oogle.cloud.alloydb.v1alpha.ExecuteSqlMetadata\"\215\002\n" + + "\010metadata\030\003 \001(\01320.goo" + + "gle.cloud.alloydb.v1alpha.ExecuteSqlMetadata\"\215\002\n" + "\022ExecuteSqlMetadata\022\017\n" + "\007message\030\001 \001(\t\022\026\n" + "\016partial_result\030\002 \001(\010\022C\n" + " sql_statement_execution_duration\030\003" + " \001(\0132\031.google.protobuf.Duration\022G\n" - + "\006status\030\004 \001(\01627.go" - + "ogle.cloud.alloydb.v1alpha.ExecuteSqlMetadata.Status\"@\n" + + "\006status\030\004 \001(\01627.goog" + + "le.cloud.alloydb.v1alpha.ExecuteSqlMetadata.Status\"@\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\006\n" + "\002OK\020\001\022\013\n" @@ -567,15 +656,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035alloydb.googleapis.com/Backup\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\022\021\n" - + "\004etag\030\004 \001(\tB\003\340A\001\"\220\001\n" + + "\004etag\030\004 \001(\tB\003\340A\001\"\337\001\n" + "!ListSupportedDatabaseFlagsRequest\022D\n" + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,alloydb.googleapis.com/SupportedDatabaseFlag\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\224\001\n" + + "page_token\030\003 \001(\t\022M\n" + + "\005scope\030\006" + + " \001(\01629.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ScopeB\003\340A\001\"\224\001\n" + "\"ListSupportedDatabaseFlagsResponse\022U\n" - + "\030supported_database_flags\030\001 \003(\01323.google.cl" - + "oud.alloydb.v1alpha.SupportedDatabaseFlag\022\027\n" + + "\030supported_database_flags\030\001 \003(\01323.google.cloud" + + ".alloydb.v1alpha.SupportedDatabaseFlag\022\027\n" + "\017next_page_token\030\002 \001(\t\"\377\001\n" + " GenerateClientCertificateRequest\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A \n" @@ -595,10 +686,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037alloydb.googleapis.com/Instance\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\"\266\004\n" + "\021OperationMetadata\022j\n" - + "\037batch_create_instances_metadata\030\010 \001(\0132:.google.cloud." - + "alloydb.v1alpha.BatchCreateInstancesMetadataB\003\340A\003H\000\022Y\n" - + "\026promote_cluster_status\030\t " - + "\001(\01322.google.cloud.alloydb.v1alpha.PromoteClusterStatusB\003\340A\003H\000\022Y\n" + + "\037batch_create_instances_metadata\030\010 \001(\0132:.google.cloud.all" + + "oydb.v1alpha.BatchCreateInstancesMetadataB\003\340A\003H\000\022Y\n" + + "\026promote_cluster_status\030\t \001(\013" + + "22.google.cloud.alloydb.v1alpha.PromoteClusterStatusB\003\340A\003H\000\022Y\n" + "\026upgrade_cluster_status\030\n" + " \001(\01322.google.cloud.alloydb.v1alpha.UpgradeClusterStatusB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" @@ -618,26 +709,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE\020\002\022\035\n" + "\031PROMOTE_CLUSTER_COMPLETED\020\003\"\201\007\n" + "\024UpgradeClusterStatus\022J\n" - + "\005state\030\001 \001(\0162;.google.cloud.alloyd" - + "b.v1alpha.UpgradeClusterResponse.Status\022\023\n" + + "\005state\030\001" + + " \001(\0162;.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status\022\023\n" + "\013cancellable\030\002 \001(\010\022E\n" - + "\016source_version\030\003" - + " \001(\0162-.google.cloud.alloydb.v1alpha.DatabaseVersion\022E\n" - + "\016target_version\030\004 \001(\0162-.go" - + "ogle.cloud.alloydb.v1alpha.DatabaseVersion\022N\n" - + "\006stages\030\005 \003(\0132>.google.cloud.alloyd" - + "b.v1alpha.UpgradeClusterStatus.StageStatus\032\274\002\n" + + "\016source_version\030\003 \001(" + + "\0162-.google.cloud.alloydb.v1alpha.DatabaseVersion\022E\n" + + "\016target_version\030\004 \001(\0162-.googl" + + "e.cloud.alloydb.v1alpha.DatabaseVersion\022N\n" + + "\006stages\030\005 \003(\0132>.google.cloud.alloydb.v" + + "1alpha.UpgradeClusterStatus.StageStatus\032\274\002\n" + "\013StageStatus\022}\n" - + "\033read_pool_instances_upgrade\030\013 \001(\0132V.google.cloud.alloydb.v" - + "1alpha.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatusH\000\022I\n" - + "\005stage\030\001 \001(\016" - + "2:.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Stage\022J\n" - + "\005state\030\002 \001(\0162;.go" - + "ogle.cloud.alloydb.v1alpha.UpgradeClusterResponse.StatusB\027\n" + + "\033read_pool_instances_upgrade\030\013 \001(\0132V.google.cloud.alloydb.v1al" + + "pha.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatusH\000\022I\n" + + "\005stage\030\001 \001(\0162:." + + "google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Stage\022J\n" + + "\005state\030\002 \001(\0162;.googl" + + "e.cloud.alloydb.v1alpha.UpgradeClusterResponse.StatusB\027\n" + "\025stage_specific_status\032\352\001\n" + "#ReadPoolInstancesUpgradeStageStatus\022s\n\r" - + "upgrade_stats\030\001 \001(\0132\\.google.cloud." - + "alloydb.v1alpha.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats\032N\n" + + "upgrade_stats\030\001 \001(\0132\\.google.cloud.all" + + "oydb.v1alpha.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats\032N\n" + "\005Stats\022\023\n" + "\013not_started\030\001 \001(\005\022\017\n" + "\007ongoing\030\002 \001(\005\022\017\n" @@ -680,193 +771,212 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024ListDatabasesRequest\0227\n" + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Database\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\"k\n" + "\025ListDatabasesResponse\0229\n" + "\tdatabases\030\001 \003(\0132&.google.cloud.alloydb.v1alpha.Database\022\027\n" - + "\017next_page_token\030\002 \001(\t2\377;\n" + + "\017next_page_token\030\002 \001(\t2\222@\n" + "\014AlloyDBAdmin\022\271\001\n" - + "\014ListClusters\0221.google.cloud.alloydb.v1alpha.ListClustersRequest" - + "\0322.google.cloud.alloydb.v1alpha.ListClus" - + "tersResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1alpha/" - + "{parent=projects/*/locations/*}/clusters\022\246\001\n\n" - + "GetCluster\022/.google.cloud.alloydb.v1alpha.GetClusterRequest\032%.google.cloud." - + "alloydb.v1alpha.Cluster\"@\332A\004name\202\323\344\223\0023\0221" - + "/v1alpha/{name=projects/*/locations/*/clusters/*}\022\341\001\n\r" - + "CreateCluster\0222.google.clo" - + "ud.alloydb.v1alpha.CreateClusterRequest\032\035.google.longrunning.Operation\"}\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\031parent,cluster" - + ",cluster_id\202\323\344\223\002<\"1/v1alpha/{parent=proj" - + "ects/*/locations/*}/clusters:\007cluster\022\343\001\n\r" - + "UpdateCluster\0222.google.cloud.alloydb.v" - + "1alpha.UpdateClusterRequest\032\035.google.longrunning.Operation\"\177\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\023cluster,update_mask\202\323\344\223\002D2" - + "9/v1alpha/{cluster.name=projects/*/locations/*/clusters/*}:\007cluster\022\350\001\n" - + "\016UpgradeCluster\0223.google.cloud.alloydb.v1alpha.Up" - + "gradeClusterRequest\032\035.google.longrunning.Operation\"\201\001\312A+\n" - + "\026UpgradeClusterResponse" - + "\022\021OperationMetadata\332A\014name,version\202\323\344\223\002>" - + "29/v1alpha/{name=projects/*/locations/*/clusters/*}:upgrade:\001*\022\321\001\n\r" - + "DeleteCluster\0222.google.cloud.alloydb.v1alpha.DeleteCl" - + "usterRequest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empty\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\0023*1/v1alpha/{name=projects/*/locations/*/clusters/*}\022\320\001\n" - + "\016PromoteCluster\0223.google.cloud.alloydb.v1a" - + "lpha.PromoteClusterRequest\032\035.google.longrunning.Operation\"j\312A\034\n" - + "\007Cluster\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002>\"9/v1alpha/{name=" - + "projects/*/locations/*/clusters/*}:promote:\001*\022\331\001\n" - + "\021SwitchoverCluster\0226.google.clo" - + "ud.alloydb.v1alpha.SwitchoverClusterRequest\032\035.google.longrunning.Operation\"m\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\004name\202\323\344\223\002A" - + "\"\"9/v1alpha/{parent=projects/*/locations/*}/clusters:restore:\001*\022\204\002\n" - + "\026CreateSecondaryCluster\022;.google.cloud.alloydb." - + "v1alpha.CreateSecondaryClusterRequest\032\035.google.longrunning.Operation\"\215\001\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\031parent,cluster," - + "cluster_id\202\323\344\223\002L\"A/v1alpha/{parent=proje" - + "cts/*/locations/*}/clusters:createsecondary:\007cluster\022\310\001\n\r" - + "ListInstances\0222.google.cloud.alloydb.v1alpha.ListInstancesReque" - + "st\0323.google.cloud.alloydb.v1alpha.ListIn" - + "stancesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alp" - + "ha/{parent=projects/*/locations/*/clusters/*}/instances\022\265\001\n" - + "\013GetInstance\0220.google.cloud.alloydb.v1alpha.GetInstanceReques" - + "t\032&.google.cloud.alloydb.v1alpha.Instanc" - + "e\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=project" - + "s/*/locations/*/clusters/*/instances/*}\022\364\001\n" - + "\016CreateInstance\0223.google.cloud.alloyd" - + "b.v1alpha.CreateInstanceRequest\032\035.google.longrunning.Operation\"\215\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033parent,instance,inst" - + "ance_id\202\323\344\223\002I\"=/v1alpha/{parent=projects" - + "/*/locations/*/clusters/*}/instances:\010instance\022\226\002\n" - + "\027CreateSecondaryInstance\022<.google.cloud.alloydb.v1alpha.CreateSecondar" - + "yInstanceRequest\032\035.google.longrunning.Operation\"\235\001\312A\035\n" - + "\010Instance\022\021OperationMetada" - + "ta\332A\033parent,instance,instance_id\202\323\344\223\002Y\"M" - + "/v1alpha/{parent=projects/*/locations/*/" - + "clusters/*}/instances:createsecondary:\010instance\022\202\002\n" - + "\024BatchCreateInstances\0229.google.cloud.alloydb.v1alpha.BatchCreateInsta" - + "ncesRequest\032\035.google.longrunning.Operation\"\217\001\312A1\n" - + "\034BatchCreateInstancesResponse\022\021" - + "OperationMetadata\202\323\344\223\002U\"I/v1alpha/{paren" - + "t=projects/*/locations/*/clusters/*}/instances:batchCreate:\010requests\022\366\001\n" - + "\016UpdateInstance\0223.google.cloud.alloydb.v1alpha.U" - + "pdateInstanceRequest\032\035.google.longrunning.Operation\"\217\001\312A\035\n" - + "\010Instance\022\021OperationMe" - + "tadata\332A\024instance,update_mask\202\323\344\223\002R2F/v1" - + "alpha/{instance.name=projects/*/location" - + "s/*/clusters/*/instances/*}:\010instance\022\337\001\n" - + "\016DeleteInstance\0223.google.cloud.alloydb." - + "v1alpha.DeleteInstanceRequest\032\035.google.longrunning.Operation\"y\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002?" - + "*=/v1alpha/{name=projects/*/locations/*/", - "clusters/*/instances/*}\022\342\001\n\020FailoverInst" - + "ance\0225.google.cloud.alloydb.v1alpha.Fail" - + "overInstanceRequest\032\035.google.longrunning" - + ".Operation\"x\312A\035\n\010Instance\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002K\"F/v1alpha/{name=projec" - + "ts/*/locations/*/clusters/*/instances/*}" - + ":failover:\001*\022\347\001\n\013InjectFault\0220.google.cl" - + "oud.alloydb.v1alpha.InjectFaultRequest\032\035" - + ".google.longrunning.Operation\"\206\001\312A\035\n\010Ins" - + "tance\022\021OperationMetadata\332A\017fault_type,na" - + "me\202\323\344\223\002N\"I/v1alpha/{name=projects/*/loca" - + "tions/*/clusters/*/instances/*}:injectFa" - + "ult:\001*\022\337\001\n\017RestartInstance\0224.google.clou" - + "d.alloydb.v1alpha.RestartInstanceRequest" - + "\032\035.google.longrunning.Operation\"w\312A\035\n\010In" - + "stance\022\021OperationMetadata\332A\004name\202\323\344\223\002J\"E" - + "/v1alpha/{name=projects/*/locations/*/cl" - + "usters/*/instances/*}:restart:\001*\022\371\001\n\nExe" - + "cuteSql\022/.google.cloud.alloydb.v1alpha.E" - + "xecuteSqlRequest\0320.google.cloud.alloydb." - + "v1alpha.ExecuteSqlResponse\"\207\001\332A-instance" - + ",database,user,sql_statement,password\202\323\344" - + "\223\002Q\"L/v1alpha/{instance=projects/*/locat" - + "ions/*/clusters/*/instances/*}:executeSq" - + "l:\001*\022\265\001\n\013ListBackups\0220.google.cloud.allo" - + "ydb.v1alpha.ListBackupsRequest\0321.google." - + "cloud.alloydb.v1alpha.ListBackupsRespons" - + "e\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=pro" - + "jects/*/locations/*}/backups\022\242\001\n\tGetBack" - + "up\022..google.cloud.alloydb.v1alpha.GetBac" - + "kupRequest\032$.google.cloud.alloydb.v1alph" - + "a.Backup\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=" - + "projects/*/locations/*/backups/*}\022\332\001\n\014Cr" - + "eateBackup\0221.google.cloud.alloydb.v1alph" - + "a.CreateBackupRequest\032\035.google.longrunni" - + "ng.Operation\"x\312A\033\n\006Backup\022\021OperationMeta" - + "data\332A\027parent,backup,backup_id\202\323\344\223\002:\"0/v" - + "1alpha/{parent=projects/*/locations/*}/b" - + "ackups:\006backup\022\334\001\n\014UpdateBackup\0221.google" - + ".cloud.alloydb.v1alpha.UpdateBackupReque" - + "st\032\035.google.longrunning.Operation\"z\312A\033\n\006" - + "Backup\022\021OperationMetadata\332A\022backup,updat" - + "e_mask\202\323\344\223\002A27/v1alpha/{backup.name=proj" - + "ects/*/locations/*/backups/*}:\006backup\022\316\001" - + "\n\014DeleteBackup\0221.google.cloud.alloydb.v1" - + "alpha.DeleteBackupRequest\032\035.google.longr" - + "unning.Operation\"l\312A*\n\025google.protobuf.E" - + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\0022*0/v" - + "1alpha/{name=projects/*/locations/*/back" - + "ups/*}\022\361\001\n\032ListSupportedDatabaseFlags\022?." - + "google.cloud.alloydb.v1alpha.ListSupport" - + "edDatabaseFlagsRequest\032@.google.cloud.al" - + "loydb.v1alpha.ListSupportedDatabaseFlags" - + "Response\"P\332A\006parent\202\323\344\223\002A\022?/v1alpha/{par" - + "ent=projects/*/locations/*}/supportedDat" - + "abaseFlags\022\377\001\n\031GenerateClientCertificate" - + "\022>.google.cloud.alloydb.v1alpha.Generate" - + "ClientCertificateRequest\032?.google.cloud." - + "alloydb.v1alpha.GenerateClientCertificat" - + "eResponse\"a\332A\006parent\202\323\344\223\002R\"M/v1alpha/{pa" - + "rent=projects/*/locations/*/clusters/*}:" - + "generateClientCertificate:\001*\022\332\001\n\021GetConn" - + "ectionInfo\0226.google.cloud.alloydb.v1alph" - + "a.GetConnectionInfoRequest\032,.google.clou" - + "d.alloydb.v1alpha.ConnectionInfo\"_\332A\006par" - + "ent\202\323\344\223\002P\022N/v1alpha/{parent=projects/*/l" - + "ocations/*/clusters/*/instances/*}/conne" - + "ctionInfo\022\270\001\n\tListUsers\022..google.cloud.a" - + "lloydb.v1alpha.ListUsersRequest\032/.google" - + ".cloud.alloydb.v1alpha.ListUsersResponse" - + "\"J\332A\006parent\202\323\344\223\002;\0229/v1alpha/{parent=proj" - + "ects/*/locations/*/clusters/*}/users\022\245\001\n" - + "\007GetUser\022,.google.cloud.alloydb.v1alpha." - + "GetUserRequest\032\".google.cloud.alloydb.v1" - + "alpha.User\"H\332A\004name\202\323\344\223\002;\0229/v1alpha/{nam" - + "e=projects/*/locations/*/clusters/*/user" - + "s/*}\022\300\001\n\nCreateUser\022/.google.cloud.alloy" - + "db.v1alpha.CreateUserRequest\032\".google.cl" - + "oud.alloydb.v1alpha.User\"]\332A\023parent,user" - + ",user_id\202\323\344\223\002A\"9/v1alpha/{parent=project" - + "s/*/locations/*/clusters/*}/users:\004user\022" - + "\302\001\n\nUpdateUser\022/.google.cloud.alloydb.v1" - + "alpha.UpdateUserRequest\032\".google.cloud.a" - + "lloydb.v1alpha.User\"_\332A\020user,update_mask" - + "\202\323\344\223\002F2>/v1alpha/{user.name=projects/*/l" - + "ocations/*/clusters/*/users/*}:\004user\022\237\001\n" - + "\nDeleteUser\022/.google.cloud.alloydb.v1alp" - + "ha.DeleteUserRequest\032\026.google.protobuf.E" - + "mpty\"H\332A\004name\202\323\344\223\002;*9/v1alpha/{name=proj" - + "ects/*/locations/*/clusters/*/users/*}\022\310" - + "\001\n\rListDatabases\0222.google.cloud.alloydb." - + "v1alpha.ListDatabasesRequest\0323.google.cl" - + "oud.alloydb.v1alpha.ListDatabasesRespons" - + "e\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/{parent=pro" - + "jects/*/locations/*/clusters/*}/database" - + "s\032J\312A\026alloydb.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\316\001" - + "\n com.google.cloud.alloydb.v1alphaB\014Serv" - + "iceProtoP\001Z:cloud.google.com/go/alloydb/" - + "apiv1alpha/alloydbpb;alloydbpb\252\002\034Google." - + "Cloud.AlloyDb.V1Alpha\312\002\034Google\\Cloud\\All" - + "oyDb\\V1alpha\352\002\037Google::Cloud::AlloyDB::V" - + "1alphab\006proto3" + + "\014ListClusters\0221.google.cloud.alloydb.v1alpha.ListClustersRequest\0322." + + "google.cloud.alloydb.v1alpha.ListCluster" + + "sResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1alpha/{pa" + + "rent=projects/*/locations/*}/clusters\022\246\001\n\n" + + "GetCluster\022/.google.cloud.alloydb.v1alpha.GetClusterRequest\032%.google.cloud.all" + + "oydb.v1alpha.Cluster\"@\332A\004name\202\323\344\223\0023\0221/v1" + + "alpha/{name=projects/*/locations/*/clusters/*}\022\341\001\n\r" + + "CreateCluster\0222.google.cloud." + + "alloydb.v1alpha.CreateClusterRequest\032\035.google.longrunning.Operation\"}\312A\034\n" + + "\007Cluster\022\021OperationMetadata\332A\031parent,cluster,cl" + + "uster_id\202\323\344\223\002<\"1/v1alpha/{parent=projects/*/locations/*}/clusters:\007cluster\022\343\001\n\r" + + "UpdateCluster\0222.google.cloud.alloydb.v1al" + + "pha.UpdateClusterRequest\032\035.google.longrunning.Operation\"\177\312A\034\n" + + "\007Cluster\022\021Operation" + + "Metadata\332A\023cluster,update_mask\202\323\344\223\002D29/v" + + "1alpha/{cluster.name=projects/*/locations/*/clusters/*}:\007cluster\022\233\002\n\r" + + "ExportCluster\0222.google.cloud.alloydb.v1alpha.Export" + + "ClusterRequest\032\035.google.longrunning.Operation\"\266\001\312A*\n" + + "\025ExportClusterResponse\022\021OperationMetadata\332ACname,gcs_destination,dat" + + "abase,csv_export_options,sql_export_opti" + + "ons\202\323\344\223\002=\"8/v1alpha/{name=projects/*/locations/*/clusters/*}:export:\001*\022\362\001\n\r" + + "ImportCluster\0222.google.cloud.alloydb.v1alpha." + + "ImportClusterRequest\032\035.google.longrunning.Operation\"\215\001\312A*\n" + + "\025ImportClusterResponse\022\021OperationMetadata\332A\032name,gcs_uri,datab" + + "ase,user\202\323\344\223\002=\"8/v1alpha/{name=projects/*/locations/*/clusters/*}:import:\001*\022\350\001\n" + + "\016UpgradeCluster\0223.google.cloud.alloydb.v1" + + "alpha.UpgradeClusterRequest\032\035.google.longrunning.Operation\"\201\001\312A+\n" + + "\026UpgradeClusterResponse\022\021OperationMetadata\332A\014name,versi" + + "on\202\323\344\223\002>29/v1alpha/{name=projects/*/locations/*/clusters/*}:upgrade:\001*\022\321\001\n\r" + + "DeleteCluster\0222.google.cloud.alloydb.v1alpha." + + "DeleteClusterRequest\032\035.google.longrunning.Operation\"m\312A*\n" + + "\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\0023*1/v1alph" + + "a/{name=projects/*/locations/*/clusters/*}\022\320\001\n" + + "\016PromoteCluster\0223.google.cloud.all" + + "oydb.v1alpha.PromoteClusterRequest\032\035.google.longrunning.Operation\"j\312A\034\n" + + "\007Cluster\022\021OperationMetadata\332A\004name\202\323\344\223\002>\"9/v1alph" + + "a/{name=projects/*/locations/*/clusters/*}:promote:\001*\022\331\001\n" + + "\021SwitchoverCluster\0226.google.cloud.alloydb.v1alpha.SwitchoverClu" + + "sterRequest\032\035.google.longrunning.Operation\"m\312A\034\n" + + "\007Cluster\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002A\"\"9/v1alpha/{parent=projec" + + "ts/*/locations/*}/clusters:restore:\001*\022\204\002" + + "\n\026CreateSecondaryCluster\022;.google.cloud." + + "alloydb.v1alpha.CreateSecondaryClusterRe" + + "quest\032\035.google.longrunning.Operation\"\215\001\312" + + "A\034\n\007Cluster\022\021OperationMetadata\332A\031parent," + + "cluster,cluster_id\202\323\344\223\002L\"A/v1alpha/{pare" + + "nt=projects/*/locations/*}/clusters:crea" + + "tesecondary:\007cluster\022\310\001\n\rListInstances\0222" + + ".google.cloud.alloydb.v1alpha.ListInstan" + + "cesRequest\0323.google.cloud.alloydb.v1alph" + + "a.ListInstancesResponse\"N\332A\006parent\202\323\344\223\002?" + + "\022=/v1alpha/{parent=projects/*/locations/" + + "*/clusters/*}/instances\022\265\001\n\013GetInstance\022" + + "0.google.cloud.alloydb.v1alpha.GetInstan" + + "ceRequest\032&.google.cloud.alloydb.v1alpha" + + ".Instance\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name" + + "=projects/*/locations/*/clusters/*/insta" + + "nces/*}\022\364\001\n\016CreateInstance\0223.google.clou" + + "d.alloydb.v1alpha.CreateInstanceRequest\032" + + "\035.google.longrunning.Operation\"\215\001\312A\035\n\010In" + + "stance\022\021OperationMetadata\332A\033parent,insta" + + "nce,instance_id\202\323\344\223\002I\"=/v1alpha/{parent=" + + "projects/*/locations/*/clusters/*}/insta" + + "nces:\010instance\022\226\002\n\027CreateSecondaryInstan" + + "ce\022<.google.cloud.alloydb.v1alpha.Create" + + "SecondaryInstanceRequest\032\035.google.longru" + + "nning.Operation\"\235\001\312A\035\n\010Instance\022\021Operati" + + "onMetadata\332A\033parent,instance,instance_id" + + "\202\323\344\223\002Y\"M/v1alpha/{parent=projects/*/loca" + + "tions/*/clusters/*}/instances:createseco" + + "ndary:\010instance\022\202\002\n\024BatchCreateInstances" + + "\0229.google.cloud.alloydb.v1alpha.BatchCre" + + "ateInstancesRequest\032\035.google.longrunning" + + ".Operation\"\217\001\312A1\n\034BatchCreateInstancesRe" + + "sponse\022\021OperationMetadata\202\323\344\223\002U\"I/v1alph" + + "a/{parent=projects/*/locations/*/cluster" + + "s/*}/instances:batchCreate:\010requests\022\366\001\n" + + "\016UpdateInstance\0223.google.cloud.alloydb.v" + + "1alpha.UpdateInstanceRequest\032\035.google.lo" + + "ngrunning.Operation\"\217\001\312A\035\n\010Instance\022\021Ope" + + "rationMetadata\332A\024instance,update_mask\202\323\344" + + "\223\002R2F/v1alpha/{instance.name=projects/*/" + + "locations/*/clusters/*/instances/*}:\010ins" + + "tance\022\337\001\n\016DeleteInstance\0223.google.cloud." + + "alloydb.v1alpha.DeleteInstanceRequest\032\035." + + "google.longrunning.Operation\"y\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" + + "me\202\323\344\223\002?*=/v1alpha/{name=projects/*/loca" + + "tions/*/clusters/*/instances/*}\022\342\001\n\020Fail" + + "overInstance\0225.google.cloud.alloydb.v1al" + + "pha.FailoverInstanceRequest\032\035.google.lon" + + "grunning.Operation\"x\312A\035\n\010Instance\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002K\"F/v1alpha/{nam" + + "e=projects/*/locations/*/clusters/*/inst" + + "ances/*}:failover:\001*\022\347\001\n\013InjectFault\0220.g" + + "oogle.cloud.alloydb.v1alpha.InjectFaultR" + + "equest\032\035.google.longrunning.Operation\"\206\001" + + "\312A\035\n\010Instance\022\021OperationMetadata\332A\017fault" + + "_type,name\202\323\344\223\002N\"I/v1alpha/{name=project" + + "s/*/locations/*/clusters/*/instances/*}:" + + "injectFault:\001*\022\337\001\n\017RestartInstance\0224.goo" + + "gle.cloud.alloydb.v1alpha.RestartInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "w\312A\035\n\010Instance\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002J\"E/v1alpha/{name=projects/*/locati" + + "ons/*/clusters/*/instances/*}:restart:\001*" + + "\022\371\001\n\nExecuteSql\022/.google.cloud.alloydb.v" + + "1alpha.ExecuteSqlRequest\0320.google.cloud." + + "alloydb.v1alpha.ExecuteSqlResponse\"\207\001\332A-" + + "instance,database,user,sql_statement,pas" + + "sword\202\323\344\223\002Q\"L/v1alpha/{instance=projects" + + "/*/locations/*/clusters/*/instances/*}:e" + + "xecuteSql:\001*\022\265\001\n\013ListBackups\0220.google.cl" + + "oud.alloydb.v1alpha.ListBackupsRequest\0321" + + ".google.cloud.alloydb.v1alpha.ListBackup" + + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{pa" + + "rent=projects/*/locations/*}/backups\022\242\001\n" + + "\tGetBackup\022..google.cloud.alloydb.v1alph" + + "a.GetBackupRequest\032$.google.cloud.alloyd" + + "b.v1alpha.Backup\"?\332A\004name\202\323\344\223\0022\0220/v1alph" + + "a/{name=projects/*/locations/*/backups/*" + + "}\022\332\001\n\014CreateBackup\0221.google.cloud.alloyd" + + "b.v1alpha.CreateBackupRequest\032\035.google.l" + + "ongrunning.Operation\"x\312A\033\n\006Backup\022\021Opera" + + "tionMetadata\332A\027parent,backup,backup_id\202\323" + + "\344\223\002:\"0/v1alpha/{parent=projects/*/locati" + + "ons/*}/backups:\006backup\022\334\001\n\014UpdateBackup\022" + + "1.google.cloud.alloydb.v1alpha.UpdateBac" + + "kupRequest\032\035.google.longrunning.Operatio" + + "n\"z\312A\033\n\006Backup\022\021OperationMetadata\332A\022back" + + "up,update_mask\202\323\344\223\002A27/v1alpha/{backup.n" + + "ame=projects/*/locations/*/backups/*}:\006b" + + "ackup\022\316\001\n\014DeleteBackup\0221.google.cloud.al" + + "loydb.v1alpha.DeleteBackupRequest\032\035.goog" + + "le.longrunning.Operation\"l\312A*\n\025google.pr" + + "otobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0022*0/v1alpha/{name=projects/*/location" + + "s/*/backups/*}\022\361\001\n\032ListSupportedDatabase" + + "Flags\022?.google.cloud.alloydb.v1alpha.Lis" + + "tSupportedDatabaseFlagsRequest\032@.google." + + "cloud.alloydb.v1alpha.ListSupportedDatab" + + "aseFlagsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1al" + + "pha/{parent=projects/*/locations/*}/supp" + + "ortedDatabaseFlags\022\377\001\n\031GenerateClientCer" + + "tificate\022>.google.cloud.alloydb.v1alpha." + + "GenerateClientCertificateRequest\032?.googl" + + "e.cloud.alloydb.v1alpha.GenerateClientCe" + + "rtificateResponse\"a\332A\006parent\202\323\344\223\002R\"M/v1a" + + "lpha/{parent=projects/*/locations/*/clus" + + "ters/*}:generateClientCertificate:\001*\022\332\001\n" + + "\021GetConnectionInfo\0226.google.cloud.alloyd" + + "b.v1alpha.GetConnectionInfoRequest\032,.goo" + + "gle.cloud.alloydb.v1alpha.ConnectionInfo" + + "\"_\332A\006parent\202\323\344\223\002P\022N/v1alpha/{parent=proj" + + "ects/*/locations/*/clusters/*/instances/" + + "*}/connectionInfo\022\270\001\n\tListUsers\022..google" + + ".cloud.alloydb.v1alpha.ListUsersRequest\032" + + "/.google.cloud.alloydb.v1alpha.ListUsers" + + "Response\"J\332A\006parent\202\323\344\223\002;\0229/v1alpha/{par" + + "ent=projects/*/locations/*/clusters/*}/u" + + "sers\022\245\001\n\007GetUser\022,.google.cloud.alloydb." + + "v1alpha.GetUserRequest\032\".google.cloud.al" + + "loydb.v1alpha.User\"H\332A\004name\202\323\344\223\002;\0229/v1al" + + "pha/{name=projects/*/locations/*/cluster" + + "s/*/users/*}\022\300\001\n\nCreateUser\022/.google.clo" + + "ud.alloydb.v1alpha.CreateUserRequest\032\".g" + + "oogle.cloud.alloydb.v1alpha.User\"]\332A\023par" + + "ent,user,user_id\202\323\344\223\002A\"9/v1alpha/{parent" + + "=projects/*/locations/*/clusters/*}/user" + + "s:\004user\022\302\001\n\nUpdateUser\022/.google.cloud.al" + + "loydb.v1alpha.UpdateUserRequest\032\".google" + + ".cloud.alloydb.v1alpha.User\"_\332A\020user,upd" + + "ate_mask\202\323\344\223\002F2>/v1alpha/{user.name=proj" + + "ects/*/locations/*/clusters/*/users/*}:\004" + + "user\022\237\001\n\nDeleteUser\022/.google.cloud.alloy" + + "db.v1alpha.DeleteUserRequest\032\026.google.pr" + + "otobuf.Empty\"H\332A\004name\202\323\344\223\002;*9/v1alpha/{n" + + "ame=projects/*/locations/*/clusters/*/us" + + "ers/*}\022\310\001\n\rListDatabases\0222.google.cloud." + + "alloydb.v1alpha.ListDatabasesRequest\0323.g" + + "oogle.cloud.alloydb.v1alpha.ListDatabase" + + "sResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/{pa" + + "rent=projects/*/locations/*/clusters/*}/" + + "databases\032J\312A\026alloydb.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\316\001\n com.google.cloud.alloydb.v1alp" + + "haB\014ServiceProtoP\001Z:cloud.google.com/go/" + + "alloydb/apiv1alpha/alloydbpb;alloydbpb\252\002" + + "\034Google.Cloud.AlloyDb.V1Alpha\312\002\034Google\\C" + + "loud\\AlloyDb\\V1alpha\352\002\037Google::Cloud::Al" + + "loyDB::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -934,8 +1044,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UpdateMask", "Cluster", "RequestId", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterRequest_descriptor = + internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_alloydb_v1alpha_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_GcsDestination_descriptor, + new java.lang.String[] { + "Uri", + }); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor, + new java.lang.String[] { + "GcsDestination", + "CsvExportOptions", + "SqlExportOptions", + "Name", + "Database", + "Destination", + "ExportOptions", + }); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor = + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_CsvExportOptions_descriptor, + new java.lang.String[] { + "SelectQuery", "FieldDelimiter", "QuoteCharacter", "EscapeCharacter", + }); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor = + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ExportClusterRequest_SqlExportOptions_descriptor, + new java.lang.String[] { + "Tables", "SchemaOnly", "CleanTargetObjects", "IfExistTargetObjects", + }); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ExportClusterResponse_descriptor, + new java.lang.String[] { + "GcsDestination", "Destination", + }); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor, + new java.lang.String[] { + "SqlImportOptions", + "CsvImportOptions", + "Name", + "GcsUri", + "Database", + "User", + "ImportOptions", + }); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor = + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_SqlImportOptions_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor = + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ImportClusterRequest_CsvImportOptions_descriptor, + new java.lang.String[] { + "Table", "Columns", "FieldDelimiter", "QuoteCharacter", "EscapeCharacter", + }); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_ImportClusterResponse_descriptor, + new java.lang.String[] { + "BytesDownloaded", + }); + internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterRequest_descriptor, @@ -943,7 +1143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Version", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterResponse_descriptor, @@ -986,7 +1186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceUpgradeDetails", }); internal_static_google_cloud_alloydb_v1alpha_DeleteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_alloydb_v1alpha_DeleteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_DeleteClusterRequest_descriptor, @@ -994,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", "Force", }); internal_static_google_cloud_alloydb_v1alpha_SwitchoverClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_alloydb_v1alpha_SwitchoverClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_SwitchoverClusterRequest_descriptor, @@ -1002,7 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_PromoteClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_alloydb_v1alpha_PromoteClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_PromoteClusterRequest_descriptor, @@ -1010,7 +1210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_RestoreClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_alloydb_v1alpha_RestoreClusterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_RestoreClusterRequest_descriptor, @@ -1025,7 +1225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", }); internal_static_google_cloud_alloydb_v1alpha_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_alloydb_v1alpha_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListInstancesRequest_descriptor, @@ -1033,7 +1233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1alpha_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_alloydb_v1alpha_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListInstancesResponse_descriptor, @@ -1041,7 +1241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1alpha_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_alloydb_v1alpha_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GetInstanceRequest_descriptor, @@ -1049,7 +1249,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequest_descriptor, @@ -1057,7 +1257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstanceId", "Instance", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_CreateSecondaryInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_alloydb_v1alpha_CreateSecondaryInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_CreateSecondaryInstanceRequest_descriptor, @@ -1065,7 +1265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstanceId", "Instance", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequests_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequests_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_CreateInstanceRequests_descriptor, @@ -1073,7 +1273,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateInstanceRequests", }); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesRequest_descriptor, @@ -1081,7 +1281,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", "RequestId", }); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesResponse_descriptor, @@ -1089,7 +1289,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instances", }); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstancesMetadata_descriptor, @@ -1107,7 +1307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstanceStatus_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstanceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_BatchCreateInstanceStatus_descriptor, @@ -1115,7 +1315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "ErrorMsg", "Error", "Type", }); internal_static_google_cloud_alloydb_v1alpha_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_alloydb_v1alpha_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpdateInstanceRequest_descriptor, @@ -1123,7 +1323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Instance", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1alpha_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_alloydb_v1alpha_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_DeleteInstanceRequest_descriptor, @@ -1131,7 +1331,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Etag", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_FailoverInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_alloydb_v1alpha_FailoverInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_FailoverInstanceRequest_descriptor, @@ -1139,7 +1339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_InjectFaultRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_alloydb_v1alpha_InjectFaultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_InjectFaultRequest_descriptor, @@ -1147,7 +1347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FaultType", "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_RestartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_alloydb_v1alpha_RestartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_RestartInstanceRequest_descriptor, @@ -1155,7 +1355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "NodeIds", }); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlRequest_descriptor, @@ -1163,7 +1363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Password", "Instance", "Database", "User", "SqlStatement", "UserCredential", }); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlResponse_descriptor, @@ -1171,7 +1371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SqlResults", "Metadata", }); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ExecuteSqlMetadata_descriptor, @@ -1179,7 +1379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "PartialResult", "SqlStatementExecutionDuration", "Status", }); internal_static_google_cloud_alloydb_v1alpha_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_alloydb_v1alpha_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListBackupsRequest_descriptor, @@ -1187,7 +1387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1alpha_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_alloydb_v1alpha_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListBackupsResponse_descriptor, @@ -1195,7 +1395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1alpha_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_alloydb_v1alpha_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GetBackupRequest_descriptor, @@ -1203,7 +1403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_alloydb_v1alpha_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_alloydb_v1alpha_CreateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_CreateBackupRequest_descriptor, @@ -1211,7 +1411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "BackupId", "Backup", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_alloydb_v1alpha_UpdateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpdateBackupRequest_descriptor, @@ -1219,7 +1419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Backup", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1alpha_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_alloydb_v1alpha_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_DeleteBackupRequest_descriptor, @@ -1227,15 +1427,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", "Etag", }); internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", + "Parent", "PageSize", "PageToken", "Scope", }); internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListSupportedDatabaseFlagsResponse_descriptor, @@ -1243,7 +1443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SupportedDatabaseFlags", "NextPageToken", }); internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateRequest_descriptor, @@ -1251,7 +1451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RequestId", "PemCsr", "CertDuration", "PublicKey", "UseMetadataExchange", }); internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GenerateClientCertificateResponse_descriptor, @@ -1259,7 +1459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PemCertificate", "PemCertificateChain", "CaCert", }); internal_static_google_cloud_alloydb_v1alpha_GetConnectionInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_alloydb_v1alpha_GetConnectionInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GetConnectionInfoRequest_descriptor, @@ -1267,7 +1467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RequestId", }); internal_static_google_cloud_alloydb_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_alloydb_v1alpha_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_OperationMetadata_descriptor, @@ -1285,7 +1485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestSpecific", }); internal_static_google_cloud_alloydb_v1alpha_PromoteClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_alloydb_v1alpha_PromoteClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_PromoteClusterStatus_descriptor, @@ -1293,7 +1493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", }); internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterStatus_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpgradeClusterStatus_descriptor, @@ -1331,7 +1531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotStarted", "Ongoing", "Success", "Failed", }); internal_static_google_cloud_alloydb_v1alpha_ListUsersRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_alloydb_v1alpha_ListUsersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListUsersRequest_descriptor, @@ -1339,7 +1539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_alloydb_v1alpha_ListUsersResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_alloydb_v1alpha_ListUsersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListUsersResponse_descriptor, @@ -1347,7 +1547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Users", "NextPageToken", "Unreachable", }); internal_static_google_cloud_alloydb_v1alpha_GetUserRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_alloydb_v1alpha_GetUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_GetUserRequest_descriptor, @@ -1355,7 +1555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_alloydb_v1alpha_CreateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_alloydb_v1alpha_CreateUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_CreateUserRequest_descriptor, @@ -1363,7 +1563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "UserId", "User", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_UpdateUserRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_alloydb_v1alpha_UpdateUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_UpdateUserRequest_descriptor, @@ -1371,7 +1571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "User", "RequestId", "ValidateOnly", "AllowMissing", }); internal_static_google_cloud_alloydb_v1alpha_DeleteUserRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_alloydb_v1alpha_DeleteUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_DeleteUserRequest_descriptor, @@ -1379,7 +1579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "ValidateOnly", }); internal_static_google_cloud_alloydb_v1alpha_ListDatabasesRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_alloydb_v1alpha_ListDatabasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListDatabasesRequest_descriptor, @@ -1387,7 +1587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_alloydb_v1alpha_ListDatabasesResponse_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_alloydb_v1alpha_ListDatabasesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_ListDatabasesResponse_descriptor, diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlag.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlag.java index 7cfd083a961f..e7d2c4be03d7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlag.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlag.java @@ -48,6 +48,7 @@ private SupportedDatabaseFlag() { flagName_ = ""; valueType_ = 0; supportedDbVersions_ = java.util.Collections.emptyList(); + scope_ = 0; } @java.lang.Override @@ -280,6 +281,167 @@ private ValueType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType) } + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + DATABASE(1), + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + CONNECTION_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + public static final int DATABASE_VALUE = 1; + + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + public static final int CONNECTION_POOL_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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return CONNECTION_POOL; + 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 Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope) + } + public interface StringRestrictionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictions) @@ -2249,6 +2411,56 @@ public RestrictionsCase getRestrictionsCase() { return RestrictionsCase.forNumber(restrictionsCase_); } + private int recommendedValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object recommendedValue_; + + public enum RecommendedValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOMMENDED_STRING_VALUE(10), + RECOMMENDED_INTEGER_VALUE(11), + RECOMMENDEDVALUE_NOT_SET(0); + private final int value; + + private RecommendedValueCase(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 RecommendedValueCase valueOf(int value) { + return forNumber(value); + } + + public static RecommendedValueCase forNumber(int value) { + switch (value) { + case 10: + return RECOMMENDED_STRING_VALUE; + case 11: + return RECOMMENDED_INTEGER_VALUE; + case 0: + return RECOMMENDEDVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + public static final int STRING_RESTRICTIONS_FIELD_NUMBER = 7; /** @@ -2381,6 +2593,133 @@ public boolean hasIntegerRestrictions() { .getDefaultInstance(); } + public static final int RECOMMENDED_STRING_VALUE_FIELD_NUMBER = 10; + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.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 (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER = 11; + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2669,13 +3008,52 @@ public boolean getRequiresDbRestart() { return requiresDbRestart_; } - private byte memoizedIsInitialized = -1; + public static final int SCOPE_FIELD_NUMBER = 9; + private int scope_ = 0; + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.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; @@ -2720,6 +3098,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, scope_); + } + if (recommendedValueCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + output.writeMessage(11, (com.google.protobuf.Int64Value) recommendedValue_); + } getUnknownFields().writeTo(output); } @@ -2773,6 +3162,19 @@ public int getSerializedSize() { (com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); + } + if (recommendedValueCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Int64Value) recommendedValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2795,6 +3197,7 @@ public boolean equals(final java.lang.Object obj) { if (getAcceptsMultipleValues() != other.getAcceptsMultipleValues()) return false; if (!supportedDbVersions_.equals(other.supportedDbVersions_)) return false; if (getRequiresDbRestart() != other.getRequiresDbRestart()) return false; + if (scope_ != other.scope_) return false; if (!getRestrictionsCase().equals(other.getRestrictionsCase())) return false; switch (restrictionsCase_) { case 7: @@ -2806,6 +3209,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getRecommendedValueCase().equals(other.getRecommendedValueCase())) return false; + switch (recommendedValueCase_) { + case 10: + if (!getRecommendedStringValue().equals(other.getRecommendedStringValue())) return false; + break; + case 11: + if (!getRecommendedIntegerValue().equals(other.getRecommendedIntegerValue())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2831,6 +3245,8 @@ public int hashCode() { } hash = (37 * hash) + REQUIRES_DB_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiresDbRestart()); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; switch (restrictionsCase_) { case 7: hash = (37 * hash) + STRING_RESTRICTIONS_FIELD_NUMBER; @@ -2843,6 +3259,18 @@ public int hashCode() { case 0: default: } + switch (recommendedValueCase_) { + case 10: + hash = (37 * hash) + RECOMMENDED_STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedStringValue().hashCode(); + break; + case 11: + hash = (37 * hash) + RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedIntegerValue().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2994,15 +3422,21 @@ public Builder clear() { if (integerRestrictionsBuilder_ != null) { integerRestrictionsBuilder_.clear(); } + if (recommendedIntegerValueBuilder_ != null) { + recommendedIntegerValueBuilder_.clear(); + } name_ = ""; flagName_ = ""; valueType_ = 0; acceptsMultipleValues_ = false; supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); requiresDbRestart_ = false; + scope_ = 0; restrictionsCase_ = 0; restrictions_ = null; + recommendedValueCase_ = 0; + recommendedValue_ = null; return this; } @@ -3041,30 +3475,33 @@ public com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag result) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = java.util.Collections.unmodifiableList(supportedDbVersions_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } result.supportedDbVersions_ = supportedDbVersions_; } private void buildPartial0(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.flagName_ = flagName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.valueType_ = valueType_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.acceptsMultipleValues_ = acceptsMultipleValues_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.requiresDbRestart_ = requiresDbRestart_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scope_ = scope_; + } } private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag result) { @@ -3076,6 +3513,11 @@ private void buildPartialOneofs(com.google.cloud.alloydb.v1alpha.SupportedDataba if (restrictionsCase_ == 8 && integerRestrictionsBuilder_ != null) { result.restrictions_ = integerRestrictionsBuilder_.build(); } + result.recommendedValueCase_ = recommendedValueCase_; + result.recommendedValue_ = this.recommendedValue_; + if (recommendedValueCase_ == 11 && recommendedIntegerValueBuilder_ != null) { + result.recommendedValue_ = recommendedIntegerValueBuilder_.build(); + } } @java.lang.Override @@ -3126,12 +3568,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getFlagName().isEmpty()) { flagName_ = other.flagName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (other.valueType_ != 0) { @@ -3143,7 +3585,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag if (!other.supportedDbVersions_.isEmpty()) { if (supportedDbVersions_.isEmpty()) { supportedDbVersions_ = other.supportedDbVersions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSupportedDbVersionsIsMutable(); supportedDbVersions_.addAll(other.supportedDbVersions_); @@ -3153,6 +3595,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag if (other.getRequiresDbRestart() != false) { setRequiresDbRestart(other.getRequiresDbRestart()); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } switch (other.getRestrictionsCase()) { case STRING_RESTRICTIONS: { @@ -3169,6 +3614,24 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag break; } } + switch (other.getRecommendedValueCase()) { + case RECOMMENDED_STRING_VALUE: + { + recommendedValueCase_ = 10; + recommendedValue_ = other.recommendedValue_; + onChanged(); + break; + } + case RECOMMENDED_INTEGER_VALUE: + { + mergeRecommendedIntegerValue(other.getRecommendedIntegerValue()); + break; + } + case RECOMMENDEDVALUE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3198,25 +3661,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { flagName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 24: { valueType_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 24 case 32: { acceptsMultipleValues_ = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 32 case 40: @@ -3241,7 +3704,7 @@ public Builder mergeFrom( case 48: { requiresDbRestart_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 48 case 58: @@ -3258,6 +3721,26 @@ public Builder mergeFrom( restrictionsCase_ = 8; break; } // case 66 + case 72: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + recommendedValueCase_ = 10; + recommendedValue_ = s; + break; + } // case 82 + case 90: + { + input.readMessage( + getRecommendedIntegerValueFieldBuilder().getBuilder(), extensionRegistry); + recommendedValueCase_ = 11; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3289,6 +3772,20 @@ public Builder clearRestrictions() { return this; } + private int recommendedValueCase_ = 0; + private java.lang.Object recommendedValue_; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + + public Builder clearRecommendedValue() { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3798,6 +4295,363 @@ public Builder clearIntegerRestrictions() { return integerRestrictionsBuilder_; } + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + @java.lang.Override + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return This builder for chaining. + */ + public Builder clearRecommendedStringValue() { + if (recommendedValueCase_ == 10) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The bytes for recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + recommendedIntegerValueBuilder_; + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } else { + if (recommendedValueCase_ == 11) { + return recommendedIntegerValueBuilder_.getMessage(); + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValue_ = value; + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedIntegerValueBuilder_ == null) { + recommendedValue_ = builderForValue.build(); + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(builderForValue.build()); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder mergeRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11 + && recommendedValue_ != com.google.protobuf.Int64Value.getDefaultInstance()) { + recommendedValue_ = + com.google.protobuf.Int64Value.newBuilder( + (com.google.protobuf.Int64Value) recommendedValue_) + .mergeFrom(value) + .buildPartial(); + } else { + recommendedValue_ = value; + } + onChanged(); + } else { + if (recommendedValueCase_ == 11) { + recommendedIntegerValueBuilder_.mergeFrom(value); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder clearRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + } else { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + } + recommendedIntegerValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedIntegerValueBuilder() { + return getRecommendedIntegerValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if ((recommendedValueCase_ == 11) && (recommendedIntegerValueBuilder_ != null)) { + return recommendedIntegerValueBuilder_.getMessageOrBuilder(); + } else { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + getRecommendedIntegerValueFieldBuilder() { + if (recommendedIntegerValueBuilder_ == null) { + if (!(recommendedValueCase_ == 11)) { + recommendedValue_ = com.google.protobuf.Int64Value.getDefaultInstance(); + } + recommendedIntegerValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder>( + (com.google.protobuf.Int64Value) recommendedValue_, + getParentForChildren(), + isClean()); + recommendedValue_ = null; + } + recommendedValueCase_ = 11; + onChanged(); + return recommendedIntegerValueBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -3869,7 +4723,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3889,7 +4743,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3914,7 +4768,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3987,7 +4841,7 @@ public Builder setFlagName(java.lang.String value) { throw new NullPointerException(); } flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4006,7 +4860,7 @@ public Builder setFlagName(java.lang.String value) { */ public Builder clearFlagName() { flagName_ = getDefaultInstance().getFlagName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4030,7 +4884,7 @@ public Builder setFlagNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4055,7 +4909,7 @@ public int getValueTypeValue() { */ public Builder setValueTypeValue(int value) { valueType_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4085,7 +4939,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; valueType_ = value.getNumber(); onChanged(); return this; @@ -4097,7 +4951,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); valueType_ = 0; onChanged(); return this; @@ -4138,7 +4992,7 @@ public boolean getAcceptsMultipleValues() { public Builder setAcceptsMultipleValues(boolean value) { acceptsMultipleValues_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4156,7 +5010,7 @@ public Builder setAcceptsMultipleValues(boolean value) { * @return This builder for chaining. */ public Builder clearAcceptsMultipleValues() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); acceptsMultipleValues_ = false; onChanged(); return this; @@ -4166,9 +5020,9 @@ public Builder clearAcceptsMultipleValues() { java.util.Collections.emptyList(); private void ensureSupportedDbVersionsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = new java.util.ArrayList(supportedDbVersions_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; } } @@ -4309,7 +5163,7 @@ public Builder addAllSupportedDbVersions( */ public Builder clearSupportedDbVersions() { supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4449,7 +5303,7 @@ public boolean getRequiresDbRestart() { public Builder setRequiresDbRestart(boolean value) { requiresDbRestart_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4469,12 +5323,109 @@ public Builder setRequiresDbRestart(boolean value) { * @return This builder for chaining. */ public Builder clearRequiresDbRestart() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); requiresDbRestart_ = false; onChanged(); return this; } + private int scope_ = 0; + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000400); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagOrBuilder.java index 2133781ef05a..cbc9dc7fc368 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/java/com/google/cloud/alloydb/v1alpha/SupportedDatabaseFlagOrBuilder.java @@ -113,6 +113,82 @@ public interface SupportedDatabaseFlagOrBuilder com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder(); + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + boolean hasRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + java.lang.String getRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + com.google.protobuf.ByteString getRecommendedStringValueBytes(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + boolean hasRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + com.google.protobuf.Int64Value getRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder(); + /** * * @@ -282,5 +358,34 @@ public interface SupportedDatabaseFlagOrBuilder */ boolean getRequiresDbRestart(); + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope getScope(); + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase(); + + com.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.RecommendedValueCase + getRecommendedValueCase(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/csql_service.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/csql_service.proto new file mode 100644 index 000000000000..640b1ebe6d1c --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/csql_service.proto @@ -0,0 +1,79 @@ +// 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.cloud.alloydb.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/alloydb/v1alpha/csql_resources.proto"; +import "google/cloud/alloydb/v1alpha/resources.proto"; +import "google/cloud/alloydb/v1alpha/service.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.AlloyDb.V1Alpha"; +option go_package = "cloud.google.com/go/alloydb/apiv1alpha/alloydbpb;alloydbpb"; +option java_multiple_files = true; +option java_outer_classname = "CSQLServiceProto"; +option java_package = "com.google.cloud.alloydb.v1alpha"; +option php_namespace = "Google\\Cloud\\AlloyDb\\V1alpha"; +option ruby_package = "Google::Cloud::AlloyDB::V1alpha"; + +// Service for interactions with CloudSQL. +service AlloyDBCSQLAdmin { + option (google.api.default_host) = "alloydb.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Restores an AlloyDB cluster from a CloudSQL resource. + rpc RestoreFromCloudSQL(RestoreFromCloudSQLRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL" + body: "*" + }; + option (google.api.method_signature) = "parent,cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } +} + +// Message for registering Restoring from CloudSQL resource. +message RestoreFromCloudSQLRequest { + // The source CloudSQL resource to restore from. + oneof source { + // Cluster created from CloudSQL backup run. + CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + } + + // Required. The location of the new cluster. For the required format, see the + // comment on Cluster.name field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "alloydb.googleapis.com/Cluster" + } + ]; + + // Required. ID of the requesting object. + string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/gemini.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/gemini.proto index ba4b6dddea4c..1d189693200e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/gemini.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/gemini.proto @@ -26,6 +26,15 @@ option java_package = "com.google.cloud.alloydb.v1alpha"; option php_namespace = "Google\\Cloud\\AlloyDb\\V1alpha"; option ruby_package = "Google::Cloud::AlloyDB::V1alpha"; +// Enum representing the type of GCA entitlement assigned to a resource. +enum GCAEntitlementType { + // No GCA entitlement is assigned. + GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + + // The resource is entitled to the GCA Standard Tier. + GCA_STANDARD = 1; +} + // Cluster level configuration parameters related to the Gemini in Databases // add-on. message GeminiClusterConfig { @@ -45,3 +54,11 @@ message GeminiInstanceConfig { // the Admin Control Center (ACC) and cannot be toggled using AlloyDB's APIs. bool entitled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Instance level configuration parameters related to the Gemini Cloud Assist +// product. +message GCAInstanceConfig { + // Output only. Represents the GCA entitlement state of the instance. + GCAEntitlementType gca_entitlement = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto index 284c74d61916..278329fedd4e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/resources.proto @@ -311,8 +311,7 @@ message AutomatedBackupPolicy { // Optional. The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -339,8 +338,7 @@ message ContinuousBackupConfig { // The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 3; } @@ -748,26 +746,32 @@ message Instance { message MachineConfig { // The number of CPU's in the VM instance. int32 cpu_count = 1; + + // Machine type of the VM instance. E.g. "n2-highmem-4", + // "n2-highmem-8", "c4a-highmem-4-lssd". + // cpu_count must match the number of vCPUs in the machine type. + string machine_type = 4; } // Details of a single node in the instance. - // Nodes in an AlloyDB instance are ephemereal, they can change during + // Nodes in an AlloyDB instance are ephemeral, they can change during // update, failover, autohealing and resize operations. message Node { - // The Compute Engine zone of the VM e.g. "us-central1-b". - string zone_id = 1; + // Output only. The Compute Engine zone of the VM e.g. "us-central1-b". + string zone_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". - string id = 2; + // Output only. The identifier of the VM e.g. + // "test-read-0601-407e52be-ms3l". + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The private IP address of the VM e.g. "10.57.0.34". - string ip = 3; + // Output only. The private IP address of the VM e.g. "10.57.0.34". + string ip = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Determined by state of the compute VM and postgres-service health. - // Compute VM state can have values listed in + // Output only. Determined by state of the compute VM and postgres-service + // health. Compute VM state can have values listed in // https://cloud.google.com/compute/docs/instances/instance-life-cycle and // postgres-service health can have values: HEALTHY and UNHEALTHY. - string state = 4; + string state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // QueryInsights Instance specific configuration. @@ -808,7 +812,7 @@ message Instance { // Output only. Track wait event types during query execution for an // instance. This flag is turned "on" by default but tracking is enabled // only after observability enabled flag is also turned on. This is - // read-only flag and only modifiable by producer API. + // read-only flag and only modifiable by internal API. optional bool track_wait_event_types = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -878,6 +882,33 @@ message Instance { string network_attachment_resource = 1; } + // Configuration for setting up PSC service automation. Consumer projects in + // the configs will be allowlisted automatically for the instance. + message PscAutoConnectionConfig { + // The consumer project to which the PSC service automation endpoint will + // be created. + string consumer_project = 1; + + // The consumer network for the PSC service automation, example: + // "projects/vpc-host-project/global/networks/default". + // The consumer network might be hosted a different project than the + // consumer project. + string consumer_network = 2; + + // Output only. The IP address of the PSC service automation endpoint. + string ip_address = 3 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The status of the PSC service automation connection. + string status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the service connection policy. + string consumer_network_status = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { @@ -903,6 +934,10 @@ message Instance { // interface. repeated PscInterfaceConfig psc_interface_configs = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configurations for setting up PSC service automation. + repeated PscAutoConnectionConfig psc_auto_connections = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Metadata related to instance-level network configuration. @@ -1057,11 +1092,13 @@ message Instance { // zone with available capacity. string gce_zone = 12; - // Database flags. Set at instance level. - // * They are copied from primary instance on read instance creation. - // * Read instances can set new or override existing flags that are relevant - // for reads, e.g. for enabling columnar cache on a read instance. Flags - // set on read instance may or may not be present on primary. + // Database flags. Set at the instance level. + // They are copied from the primary instance on secondary instance creation. + // Flags that have restrictions default to the value at primary + // instance on read instances during creation. Read instances can set new + // flags or override existing flags that are relevant for reads, for example, + // for enabling columnar cache on a read instance. Flags set on read instance + // might or might not be present on the primary instance. // // // This is a list of "key": "value" pairs. @@ -1153,6 +1190,9 @@ message Instance { (google.api.field_info).format = IPV4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Output only. Configuration parameters related to Gemini Cloud Assist. + GCAInstanceConfig gca_config = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ConnectionInfo singleton resource. @@ -1431,6 +1471,18 @@ message SupportedDatabaseFlag { NONE = 4; } + // The scope of the flag. + enum Scope { + // The scope of the flag is not specified. Default is DATABASE. + SCOPE_UNSPECIFIED = 0; + + // The flag is a database flag. + DATABASE = 1; + + // The flag is a connection pool flag. + CONNECTION_POOL = 2; + } + // The restrictions on the flag value per type. oneof restrictions { // Restriction on STRING type value. @@ -1440,6 +1492,15 @@ message SupportedDatabaseFlag { IntegerRestrictions integer_restrictions = 8; } + // The recommended value for the flag by type, if applicable. + oneof recommended_value { + // The recommended value for a STRING flag. + string recommended_string_value = 10; + + // The recommended value for an INTEGER flag. + google.protobuf.Int64Value recommended_integer_value = 11; + } + // The name of the flag resource, following Google Cloud conventions, e.g.: // * projects/{project}/locations/{location}/flags/{flag} // This field currently has no semantic meaning. @@ -1463,6 +1524,9 @@ message SupportedDatabaseFlag { // will automatically restart the database (making sure to satisfy any // availability SLO's). bool requires_db_restart = 6; + + // The scope of the flag. + Scope scope = 9; } // Message describing User object. diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/service.proto b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/service.proto index be7d2f95f043..6d05e3f04ed5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/service.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/src/main/proto/google/cloud/alloydb/v1alpha/service.proto @@ -88,6 +88,37 @@ service AlloyDBAdmin { }; } + // Exports data from the cluster. + // Imperative only. + rpc ExportCluster(ExportClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/clusters/*}:export" + body: "*" + }; + option (google.api.method_signature) = + "name,gcs_destination,database,csv_export_options,sql_export_options"; + option (google.longrunning.operation_info) = { + response_type: "ExportClusterResponse" + metadata_type: "OperationMetadata" + }; + } + + // Imports data to the cluster. + // Imperative only. + rpc ImportCluster(ImportClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/clusters/*}:import" + body: "*" + }; + option (google.api.method_signature) = "name,gcs_uri,database,user"; + option (google.longrunning.operation_info) = { + response_type: "ImportClusterResponse" + metadata_type: "OperationMetadata" + }; + } + // Upgrades a single Cluster. // Imperative only. rpc UpgradeCluster(UpgradeClusterRequest) @@ -629,6 +660,164 @@ message UpdateClusterRequest { bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Destination for Export. Export will be done to cloud storage. +message GcsDestination { + // Required. The path to the file in Google Cloud Storage where the export + // will be stored. The URI is in the form `gs://bucketName/fileName`. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Export cluster request. +message ExportClusterRequest { + // Options for exporting data in CSV format. + message CsvExportOptions { + // Required. The SELECT query used to extract the data. + string select_query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the character that separates columns within each row + // (line) of the file. The default is comma. The value of this argument has + // to be a character in Hex ASCII Code. + string field_delimiter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the quoting character to be used when a data value is + // quoted. The default is double-quote. The value of this argument has to be + // a character in Hex ASCII Code. + string quote_character = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that should appear before a data + // character that needs to be escaped. The default is the same as quote + // character. The value of this argument has to be a character in Hex ASCII + // Code. + string escape_character = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Options for exporting data in SQL format. + message SqlExportOptions { + // Optional. Tables to export from. + repeated string tables = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, only export the schema. + optional bool schema_only = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, output commands to DROP all the dumped database + // objects prior to outputting the commands for creating them. + optional bool clean_target_objects = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, use DROP ... IF EXISTS commands to check for the + // object's existence before dropping it in clean_target_objects mode. + optional bool if_exist_target_objects = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Oneof field to support other destinations in future. + oneof destination { + // Required. Option to export data to cloud storage. + GcsDestination gcs_destination = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required field to specify export file type and options. + oneof export_options { + // Options for exporting data in CSV format. Required field to be set for + // CSV file type. + CsvExportOptions csv_export_options = 4; + + // Options for exporting data in SQL format. Required field to be set for + // SQL file type. + SqlExportOptions sql_export_options = 5; + } + + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. Name of the database where the export command will be executed. + // Note - Value provided should be the same as expected from + // `SELECT current_database();` and NOT as a resource reference. + string database = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response of export cluster rpc. +message ExportClusterResponse { + // Oneof field to support other destinations in future. + oneof destination { + // Required. Option to export data to cloud storage. + GcsDestination gcs_destination = 2 [(google.api.field_behavior) = REQUIRED]; + } +} + +// Import cluster request. +message ImportClusterRequest { + // Options for importing data in SQL format. + message SqlImportOptions {} + + // Options for importing data in CSV format. + message CsvImportOptions { + // Required. The database table to import CSV file into. + string table = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The columns to which CSV data is imported. If not specified, + // all columns of the database table are loaded with CSV data. + repeated string columns = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that separates columns within each row + // (line) of the file. The default is comma. The value of this argument has + // to be a character in Hex ASCII Code. + string field_delimiter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the quoting character to be used when a data value is + // quoted. The default is double-quote. The value of this argument has to be + // a character in Hex ASCII Code. + string quote_character = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that should appear before a data + // character that needs to be escaped. The default is same as quote + // character. The value of this argument has to be a character in Hex ASCII + // Code. + string escape_character = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // oneof field to support various import formats like SQL and CSV. + oneof import_options { + // Options for importing data in SQL format. + SqlImportOptions sql_import_options = 4; + + // Options for importing data in CSV format. + CsvImportOptions csv_import_options = 7; + } + + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. The path to the file in Google Cloud Storage where the source + // file for import will be stored. The URI is in the form + // `gs://bucketName/fileName`. + string gcs_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of the database to which the import will be done. + // For import from SQL file, this is required only if the file does not + // specify a database. + // Note - Value provided should be the same as expected from `SELECT + // current_database();` and NOT as a resource reference. + string database = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Database user to be used for importing the data. + // Note - Value provided should be the same as expected from + // `SELECT current_user;` and NOT as a resource reference. + string user = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of import rpc. +message ImportClusterResponse { + // Required. Size of the object downloaded from Google Cloud Storage in bytes. + int64 bytes_downloaded = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Upgrades a cluster. message UpgradeClusterRequest { // Required. The resource name of the cluster. @@ -1644,6 +1833,11 @@ message ListSupportedDatabaseFlagsRequest { // A token identifying a page of results the server should return. string page_token = 3; + + // Optional. The scope for which supported flags are requested. If not + // specified, default is DATABASE. + SupportedDatabaseFlag.Scope scope = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Message for response to listing SupportedDatabaseFlags. @@ -1696,9 +1890,9 @@ message GenerateClientCertificateRequest { // Optional. The public key from the client. string public_key = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. An optional hint to the endpoint to generate a client - // ceritificate that can be used by AlloyDB connectors to exchange additional - // metadata with the server after TLS handshake. + // Optional. An optional hint to the endpoint to generate a client certificate + // that can be used by AlloyDB connectors to exchange additional metadata with + // the server after TLS handshake. bool use_metadata_exchange = 6 [(google.api.field_behavior) = OPTIONAL]; } @@ -1780,9 +1974,10 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicy.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicy.java index 7fbb7b2e7aab..f3e1d1428ec2 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicy.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicy.java @@ -3518,8 +3518,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3539,8 +3538,7 @@ public boolean hasEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -3562,8 +3560,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig getEncryptionConfig() { *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -5510,8 +5507,7 @@ public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5530,8 +5526,7 @@ public boolean hasEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5556,8 +5551,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig getEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5584,8 +5578,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1beta.EncryptionCon *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5610,8 +5603,7 @@ public Builder setEncryptionConfig( *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5644,8 +5636,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1beta.EncryptionC *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5669,8 +5660,7 @@ public Builder clearEncryptionConfig() { *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5689,8 +5679,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig.Builder getEncryptionCon *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * @@ -5714,8 +5703,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig.Builder getEncryptionCon *
      * Optional. The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicyOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicyOrBuilder.java index db37305b25e6..07127149c5a3 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicyOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/AutomatedBackupPolicyOrBuilder.java @@ -240,8 +240,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -258,8 +257,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * @@ -276,8 +274,7 @@ public interface AutomatedBackupPolicyOrBuilder *
    * Optional. The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/CSQLServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/CSQLServiceProto.java new file mode 100644 index 000000000000..0fa137074f1d --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/CSQLServiceProto.java @@ -0,0 +1,118 @@ +/* + * 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/alloydb/v1beta/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +public final class CSQLServiceProto { + private CSQLServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/alloydb/v1beta/csql_servi" + + "ce.proto\022\033google.cloud.alloydb.v1beta\032\034g" + + "oogle/api/annotations.proto\032\027google/api/" + + "client.proto\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\0320google" + + "/cloud/alloydb/v1beta/csql_resources.pro" + + "to\032+google/cloud/alloydb/v1beta/resource" + + "s.proto\032)google/cloud/alloydb/v1beta/ser" + + "vice.proto\032#google/longrunning/operation" + + "s.proto\"\217\002\n\032RestoreFromCloudSQLRequest\022Z" + + "\n\032cloudsql_backup_run_source\030e \001(\01324.goo" + + "gle.cloud.alloydb.v1beta.CloudSQLBackupR" + + "unSourceH\000\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036allo" + + "ydb.googleapis.com/Cluster\022\027\n\ncluster_id" + + "\030\002 \001(\tB\003\340A\002\022:\n\007cluster\030\003 \001(\0132$.google.cl" + + "oud.alloydb.v1beta.ClusterB\003\340A\002B\010\n\006sourc" + + "e2\323\002\n\020AlloyDBCSQLAdmin\022\362\001\n\023RestoreFromCl" + + "oudSQL\0227.google.cloud.alloydb.v1beta.Res" + + "toreFromCloudSQLRequest\032\035.google.longrun" + + "ning.Operation\"\202\001\312A\034\n\007Cluster\022\021Operation" + + "Metadata\332A\021parent,cluster_id\202\323\344\223\002I\"D/v1b" + + "eta/{parent=projects/*/locations/*}/clus" + + "ters:restoreFromCloudSQL:\001*\032J\312A\026alloydb." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\315\001\n\037com.google.c" + + "loud.alloydb.v1betaB\020CSQLServiceProtoP\001Z" + + "9cloud.google.com/go/alloydb/apiv1beta/a" + + "lloydbpb;alloydbpb\252\002\033Google.Cloud.AlloyD" + + "b.V1Beta\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002" + + "\036Google::Cloud::AlloyDB::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.alloydb.v1beta.CsqlResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1beta.ResourcesProto.getDescriptor(), + com.google.cloud.alloydb.v1beta.ServiceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor, + new java.lang.String[] { + "CloudsqlBackupRunSource", "Parent", "ClusterId", "Cluster", "Source", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.alloydb.v1beta.CsqlResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1beta.ResourcesProto.getDescriptor(); + com.google.cloud.alloydb.v1beta.ServiceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java index d9f6b81a2c36..790648e45a38 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Cluster.java @@ -3094,6 +3094,21 @@ public interface PscConfigOrBuilder * @return The pscEnabled. */ boolean getPscEnabled(); + + /** + * + * + *
+     * Output only. The project number that needs to be allowlisted on the
+     * network attachment to enable outbound connectivity.
+     * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + long getServiceOwnedProjectNumber(); } /** @@ -3159,6 +3174,27 @@ public boolean getPscEnabled() { return pscEnabled_; } + public static final int SERVICE_OWNED_PROJECT_NUMBER_FIELD_NUMBER = 3; + private long serviceOwnedProjectNumber_ = 0L; + + /** + * + * + *
+     * Output only. The project number that needs to be allowlisted on the
+     * network attachment to enable outbound connectivity.
+     * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + @java.lang.Override + public long getServiceOwnedProjectNumber() { + return serviceOwnedProjectNumber_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3176,6 +3212,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pscEnabled_ != false) { output.writeBool(1, pscEnabled_); } + if (serviceOwnedProjectNumber_ != 0L) { + output.writeInt64(3, serviceOwnedProjectNumber_); + } getUnknownFields().writeTo(output); } @@ -3188,6 +3227,10 @@ public int getSerializedSize() { if (pscEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, pscEnabled_); } + if (serviceOwnedProjectNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, serviceOwnedProjectNumber_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3205,6 +3248,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.alloydb.v1beta.Cluster.PscConfig) obj; if (getPscEnabled() != other.getPscEnabled()) return false; + if (getServiceOwnedProjectNumber() != other.getServiceOwnedProjectNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3218,6 +3262,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PSC_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPscEnabled()); + hash = (37 * hash) + SERVICE_OWNED_PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getServiceOwnedProjectNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3361,6 +3407,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; pscEnabled_ = false; + serviceOwnedProjectNumber_ = 0L; return this; } @@ -3400,6 +3447,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Cluster.PscConfig res if (((from_bitField0_ & 0x00000001) != 0)) { result.pscEnabled_ = pscEnabled_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceOwnedProjectNumber_ = serviceOwnedProjectNumber_; + } } @java.lang.Override @@ -3453,6 +3503,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Cluster.PscConfig other if (other.getPscEnabled() != false) { setPscEnabled(other.getPscEnabled()); } + if (other.getServiceOwnedProjectNumber() != 0L) { + setServiceOwnedProjectNumber(other.getServiceOwnedProjectNumber()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3485,6 +3538,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 24: + { + serviceOwnedProjectNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3563,6 +3622,68 @@ public Builder clearPscEnabled() { return this; } + private long serviceOwnedProjectNumber_; + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceOwnedProjectNumber. + */ + @java.lang.Override + public long getServiceOwnedProjectNumber() { + return serviceOwnedProjectNumber_; + } + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceOwnedProjectNumber to set. + * @return This builder for chaining. + */ + public Builder setServiceOwnedProjectNumber(long value) { + + serviceOwnedProjectNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The project number that needs to be allowlisted on the
+       * network attachment to enable outbound connectivity.
+       * 
+ * + * int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceOwnedProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + serviceOwnedProjectNumber_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6202,7 +6323,7 @@ public com.google.cloud.alloydb.v1beta.Cluster.NetworkConfig getNetworkConfig() *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The network. */ @java.lang.Override @@ -6235,7 +6356,7 @@ public java.lang.String getNetwork() { *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Override @@ -6591,7 +6712,7 @@ public com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy getAutomatedBackupP * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -6610,7 +6731,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Override @@ -11419,7 +11540,7 @@ public com.google.cloud.alloydb.v1beta.Cluster.NetworkConfig.Builder getNetworkC *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The network. */ @java.lang.Deprecated @@ -11451,7 +11572,7 @@ public java.lang.String getNetwork() { *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Deprecated @@ -11483,7 +11604,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @param value The network to set. * @return This builder for chaining. */ @@ -11514,7 +11635,7 @@ public Builder setNetwork(java.lang.String value) { *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return This builder for chaining. */ @java.lang.Deprecated @@ -11541,7 +11662,7 @@ public Builder clearNetwork() { *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @param value The bytes for network to set. * @return This builder for chaining. */ @@ -12418,7 +12539,7 @@ public Builder clearAutomatedBackupPolicy() { * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -12436,7 +12557,7 @@ public boolean hasSslConfig() { * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java index 8326c9021972..06b8f086e135 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ClusterOrBuilder.java @@ -570,7 +570,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The network. */ @java.lang.Deprecated @@ -592,7 +592,7 @@ java.lang.String getLabelsOrDefault( *
* * @deprecated google.cloud.alloydb.v1beta.Cluster.network is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=622 + * google/cloud/alloydb/v1beta/resources.proto;l=625 * @return The bytes for network. */ @java.lang.Deprecated @@ -826,7 +826,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return Whether the sslConfig field is set. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ java.lang.String getAnnotationsOrDefault( * .google.cloud.alloydb.v1beta.SslConfig ssl_config = 18 [deprecated = true]; * * @deprecated google.cloud.alloydb.v1beta.Cluster.ssl_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=657 + * google/cloud/alloydb/v1beta/resources.proto;l=660 * @return The sslConfig. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java index bc021f67003a..132eec337bb6 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfo.java @@ -264,7 +264,7 @@ public com.google.protobuf.ByteString getPublicIpAddressBytes() { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -285,7 +285,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -306,7 +306,7 @@ public int getPemCertificateChainCount() { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -328,7 +328,7 @@ public java.lang.String getPemCertificateChain(int index) { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1316,7 +1316,7 @@ private void ensurePemCertificateChainIsMutable() { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1338,7 +1338,7 @@ public com.google.protobuf.ProtocolStringList getPemCertificateChainList() { *
* * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1359,7 +1359,7 @@ public int getPemCertificateChainCount() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1381,7 +1381,7 @@ public java.lang.String getPemCertificateChain(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1403,7 +1403,7 @@ public com.google.protobuf.ByteString getPemCertificateChainBytes(int index) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1433,7 +1433,7 @@ public Builder setPemCertificateChain(int index, java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1462,7 +1462,7 @@ public Builder addPemCertificateChain(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1488,7 +1488,7 @@ public Builder addAllPemCertificateChain(java.lang.Iterable va * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1513,7 +1513,7 @@ public Builder clearPemCertificateChain() { * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. - * See google/cloud/alloydb/v1beta/resources.proto;l=1162 + * See google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java index d2699a21bc78..55b0e67398e7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ConnectionInfoOrBuilder.java @@ -131,7 +131,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -150,7 +150,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -169,7 +169,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -189,7 +189,7 @@ public interface ConnectionInfoOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1162 + * google/cloud/alloydb/v1beta/resources.proto;l=1221 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfig.java index 98795341f74a..b2ea8826d55f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfig.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfig.java @@ -129,8 +129,7 @@ public int getRecoveryWindowDays() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -148,8 +147,7 @@ public boolean hasEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -169,8 +167,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig getEncryptionConfig() { *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -745,8 +742,7 @@ public Builder clearRecoveryWindowDays() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -763,8 +759,7 @@ public boolean hasEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -787,8 +782,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig getEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -813,8 +807,7 @@ public Builder setEncryptionConfig(com.google.cloud.alloydb.v1beta.EncryptionCon *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -837,8 +830,7 @@ public Builder setEncryptionConfig( *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -869,8 +861,7 @@ public Builder mergeEncryptionConfig(com.google.cloud.alloydb.v1beta.EncryptionC *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -892,8 +883,7 @@ public Builder clearEncryptionConfig() { *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -910,8 +900,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig.Builder getEncryptionCon *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -933,8 +922,7 @@ public com.google.cloud.alloydb.v1beta.EncryptionConfig.Builder getEncryptionCon *
      * The encryption config can be specified to encrypt the
      * backups with a customer-managed encryption key (CMEK). When this field is
-     * not specified, the backup will then use default encryption scheme to
-     * protect the user data.
+     * not specified, the backup will use the cluster's encryption config.
      * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfigOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfigOrBuilder.java index 747acf01f806..e46455c2b3aa 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfigOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ContinuousBackupConfigOrBuilder.java @@ -71,8 +71,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -87,8 +86,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; @@ -103,8 +101,7 @@ public interface ContinuousBackupConfigOrBuilder *
    * The encryption config can be specified to encrypt the
    * backups with a customer-managed encryption key (CMEK). When this field is
-   * not specified, the backup will then use default encryption scheme to
-   * protect the user data.
+   * not specified, the backup will use the cluster's encryption config.
    * 
* * .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAEntitlementType.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAEntitlementType.java new file mode 100644 index 000000000000..9068aaa02508 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAEntitlementType.java @@ -0,0 +1,158 @@ +/* + * 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/alloydb/v1beta/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +/** + * + * + *
+ * Enum representing the type of GCA entitlement assigned to a resource.
+ * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1beta.GCAEntitlementType} + */ +public enum GCAEntitlementType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * No GCA entitlement is assigned.
+   * 
+ * + * GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + */ + GCA_ENTITLEMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * The resource is entitled to the GCA Standard Tier.
+   * 
+ * + * GCA_STANDARD = 1; + */ + GCA_STANDARD(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * No GCA entitlement is assigned.
+   * 
+ * + * GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int GCA_ENTITLEMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The resource is entitled to the GCA Standard Tier.
+   * 
+ * + * GCA_STANDARD = 1; + */ + public static final int GCA_STANDARD_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GCAEntitlementType 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 GCAEntitlementType forNumber(int value) { + switch (value) { + case 0: + return GCA_ENTITLEMENT_TYPE_UNSPECIFIED; + case 1: + return GCA_STANDARD; + 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 GCAEntitlementType findValueByNumber(int number) { + return GCAEntitlementType.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.alloydb.v1beta.GeminiProto.getDescriptor().getEnumTypes().get(0); + } + + private static final GCAEntitlementType[] VALUES = values(); + + public static GCAEntitlementType 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 GCAEntitlementType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.GCAEntitlementType) +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfig.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfig.java new file mode 100644 index 000000000000..bc94144819a5 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfig.java @@ -0,0 +1,624 @@ +/* + * 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/alloydb/v1beta/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +/** + * + * + *
+ * Instance level configuration parameters related to the Gemini Cloud Assist
+ * product.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.GCAInstanceConfig} + */ +public final class GCAInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.GCAInstanceConfig) + GCAInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GCAInstanceConfig.newBuilder() to construct. + private GCAInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GCAInstanceConfig() { + gcaEntitlement_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GCAInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.GeminiProto + .internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.GeminiProto + .internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.class, + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder.class); + } + + public static final int GCA_ENTITLEMENT_FIELD_NUMBER = 1; + private int gcaEntitlement_ = 0; + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + @java.lang.Override + public int getGcaEntitlementValue() { + return gcaEntitlement_; + } + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAEntitlementType getGcaEntitlement() { + com.google.cloud.alloydb.v1beta.GCAEntitlementType result = + com.google.cloud.alloydb.v1beta.GCAEntitlementType.forNumber(gcaEntitlement_); + return result == null + ? com.google.cloud.alloydb.v1beta.GCAEntitlementType.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 (gcaEntitlement_ + != com.google.cloud.alloydb.v1beta.GCAEntitlementType.GCA_ENTITLEMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, gcaEntitlement_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcaEntitlement_ + != com.google.cloud.alloydb.v1beta.GCAEntitlementType.GCA_ENTITLEMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gcaEntitlement_); + } + 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.alloydb.v1beta.GCAInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.GCAInstanceConfig other = + (com.google.cloud.alloydb.v1beta.GCAInstanceConfig) obj; + + if (gcaEntitlement_ != other.gcaEntitlement_) 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) + GCA_ENTITLEMENT_FIELD_NUMBER; + hash = (53 * hash) + gcaEntitlement_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig 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.alloydb.v1beta.GCAInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig 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.alloydb.v1beta.GCAInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig parseDelimitedFrom( + java.io.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.alloydb.v1beta.GCAInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig 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.alloydb.v1beta.GCAInstanceConfig 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; + } + + /** + * + * + *
+   * Instance level configuration parameters related to the Gemini Cloud Assist
+   * product.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.GCAInstanceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.GCAInstanceConfig) + com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.GeminiProto + .internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.GeminiProto + .internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.class, + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.GCAInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcaEntitlement_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.GeminiProto + .internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig build() { + com.google.cloud.alloydb.v1beta.GCAInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.GCAInstanceConfig result = + new com.google.cloud.alloydb.v1beta.GCAInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.GCAInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcaEntitlement_ = gcaEntitlement_; + } + } + + @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.alloydb.v1beta.GCAInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.GCAInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.GCAInstanceConfig other) { + if (other == com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) + return this; + if (other.gcaEntitlement_ != 0) { + setGcaEntitlementValue(other.getGcaEntitlementValue()); + } + 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: + { + gcaEntitlement_ = input.readEnum(); + 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 gcaEntitlement_ = 0; + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + @java.lang.Override + public int getGcaEntitlementValue() { + return gcaEntitlement_; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for gcaEntitlement to set. + * @return This builder for chaining. + */ + public Builder setGcaEntitlementValue(int value) { + gcaEntitlement_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAEntitlementType getGcaEntitlement() { + com.google.cloud.alloydb.v1beta.GCAEntitlementType result = + com.google.cloud.alloydb.v1beta.GCAEntitlementType.forNumber(gcaEntitlement_); + return result == null + ? com.google.cloud.alloydb.v1beta.GCAEntitlementType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The gcaEntitlement to set. + * @return This builder for chaining. + */ + public Builder setGcaEntitlement(com.google.cloud.alloydb.v1beta.GCAEntitlementType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gcaEntitlement_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the GCA entitlement state of the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGcaEntitlement() { + bitField0_ = (bitField0_ & ~0x00000001); + gcaEntitlement_ = 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.alloydb.v1beta.GCAInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.GCAInstanceConfig) + private static final com.google.cloud.alloydb.v1beta.GCAInstanceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.GCAInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1beta.GCAInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GCAInstanceConfig 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.alloydb.v1beta.GCAInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfigOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..c2796e9f90e9 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GCAInstanceConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/alloydb/v1beta/gemini.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +public interface GCAInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.GCAInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for gcaEntitlement. + */ + int getGcaEntitlementValue(); + + /** + * + * + *
+   * Output only. Represents the GCA entitlement state of the instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAEntitlementType gca_entitlement = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaEntitlement. + */ + com.google.cloud.alloydb.v1beta.GCAEntitlementType getGcaEntitlement(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GeminiProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GeminiProto.java index 3cc14b6be278..5ebb524cee86 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GeminiProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GeminiProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_GeminiInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_GeminiInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -49,13 +53,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\033google.cloud.alloydb.v1beta\032\037google/" + "api/field_behavior.proto\",\n\023GeminiCluste" + "rConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003\"-\n\024Gemini" - + "InstanceConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003B\310\001" - + "\n\037com.google.cloud.alloydb.v1betaB\013Gemin" - + "iProtoP\001Z9cloud.google.com/go/alloydb/ap" - + "iv1beta/alloydbpb;alloydbpb\252\002\033Google.Clo" - + "ud.AlloyDb.V1Beta\312\002\033Google\\Cloud\\AlloyDb" - + "\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta" - + "b\006proto3" + + "InstanceConfig\022\025\n\010entitled\030\001 \001(\010B\003\340A\003\"b\n" + + "\021GCAInstanceConfig\022M\n\017gca_entitlement\030\001 " + + "\001(\0162/.google.cloud.alloydb.v1beta.GCAEnt" + + "itlementTypeB\003\340A\003*L\n\022GCAEntitlementType\022" + + "$\n GCA_ENTITLEMENT_TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014GCA_STANDARD\020\001B\310\001\n\037com.google.cloud.all" + + "oydb.v1betaB\013GeminiProtoP\001Z9cloud.google" + + ".com/go/alloydb/apiv1beta/alloydbpb;allo" + + "ydbpb\252\002\033Google.Cloud.AlloyDb.V1Beta\312\002\033Go" + + "ogle\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Clou" + + "d::AlloyDB::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -79,6 +87,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Entitled", }); + internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_GCAInstanceConfig_descriptor, + new java.lang.String[] { + "GcaEntitlement", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java index c636b6942390..22d1ec80bee7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequest.java @@ -222,7 +222,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. - * See google/cloud/alloydb/v1beta/service.proto;l=1788 + * See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Override @@ -250,7 +250,7 @@ public java.lang.String getPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. - * See google/cloud/alloydb/v1beta/service.proto;l=1788 + * See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Override @@ -395,9 +395,9 @@ public com.google.protobuf.ByteString getPublicKeyBytes() { * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1206,7 +1206,7 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1788 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Deprecated @@ -1233,7 +1233,7 @@ public java.lang.String getPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1788 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Deprecated @@ -1260,7 +1260,7 @@ public com.google.protobuf.ByteString getPemCsrBytes() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1788 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1878 * @param value The pemCsr to set. * @return This builder for chaining. */ @@ -1286,7 +1286,7 @@ public Builder setPemCsr(java.lang.String value) { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1788 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1308,7 +1308,7 @@ public Builder clearPemCsr() { * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1788 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1878 * @param value The bytes for pemCsr to set. * @return This builder for chaining. */ @@ -1680,9 +1680,9 @@ public Builder setPublicKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1698,9 +1698,9 @@ public boolean getUseMetadataExchange() { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1720,9 +1720,9 @@ public Builder setUseMetadataExchange(boolean value) { * * *
-     * Optional. An optional hint to the endpoint to generate a client
-     * ceritificate that can be used by AlloyDB connectors to exchange additional
-     * metadata with the server after TLS handshake.
+     * Optional. An optional hint to the endpoint to generate a client certificate
+     * that can be used by AlloyDB connectors to exchange additional metadata with
+     * the server after TLS handshake.
      * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java index 8d970307de6f..0f355ceb3d1c 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateRequestOrBuilder.java @@ -117,7 +117,7 @@ public interface GenerateClientCertificateRequestOrBuilder * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. - * See google/cloud/alloydb/v1beta/service.proto;l=1788 + * See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The pemCsr. */ @java.lang.Deprecated @@ -134,7 +134,7 @@ public interface GenerateClientCertificateRequestOrBuilder * string pem_csr = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateRequest.pem_csr is deprecated. - * See google/cloud/alloydb/v1beta/service.proto;l=1788 + * See google/cloud/alloydb/v1beta/service.proto;l=1878 * @return The bytes for pemCsr. */ @java.lang.Deprecated @@ -222,9 +222,9 @@ public interface GenerateClientCertificateRequestOrBuilder * * *
-   * Optional. An optional hint to the endpoint to generate a client
-   * ceritificate that can be used by AlloyDB connectors to exchange additional
-   * metadata with the server after TLS handshake.
+   * Optional. An optional hint to the endpoint to generate a client certificate
+   * that can be used by AlloyDB connectors to exchange additional metadata with
+   * the server after TLS handshake.
    * 
* * bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java index 3e9e06d95cd2..b2789dc309f1 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponse.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getPemCertificate() { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Override @@ -685,7 +685,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Deprecated @@ -713,7 +713,7 @@ public java.lang.String getPemCertificate() { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Deprecated @@ -741,7 +741,7 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @param value The pemCertificate to set. * @return This builder for chaining. */ @@ -768,7 +768,7 @@ public Builder setPemCertificate(java.lang.String value) { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return This builder for chaining. */ @java.lang.Deprecated @@ -791,7 +791,7 @@ public Builder clearPemCertificate() { * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @param value The bytes for pemCertificate to set. * @return This builder for chaining. */ diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java index cce829a03ce4..2c59ca33e826 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/GenerateClientCertificateResponseOrBuilder.java @@ -36,7 +36,7 @@ public interface GenerateClientCertificateResponseOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The pemCertificate. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface GenerateClientCertificateResponseOrBuilder * * * @deprecated google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is - * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1811 + * deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1901 * @return The bytes for pemCertificate. */ @java.lang.Deprecated diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequest.java new file mode 100644 index 000000000000..b9f75f57ca4b --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequest.java @@ -0,0 +1,4243 @@ +/* + * 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/alloydb/v1beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +/** + * + * + *
+ * Import cluster request.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest} + */ +public final class ImportClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.ImportClusterRequest) + ImportClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterRequest.newBuilder() to construct. + private ImportClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterRequest() { + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.Builder.class); + } + + public interface SqlImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions} + */ + public static final class SqlImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + SqlImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SqlImportOptions.newBuilder() to construct. + private SqlImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SqlImportOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SqlImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions other = + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions 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.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions 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.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1beta.ImportClusterRequest.SqlImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions 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.alloydb.v1beta.ImportClusterRequest.SqlImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions build() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions buildPartial() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions result = + new com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions other) { + if (other + == com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + private static final com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions(); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SqlImportOptions 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.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CsvImportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + java.util.List getColumnsList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + int getColumnsCount(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + java.lang.String getColumns(int index); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + com.google.protobuf.ByteString getColumnsBytes(int index); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + java.lang.String getFieldDelimiter(); + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + com.google.protobuf.ByteString getFieldDelimiterBytes(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + java.lang.String getQuoteCharacter(); + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + com.google.protobuf.ByteString getQuoteCharacterBytes(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + java.lang.String getEscapeCharacter(); + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + com.google.protobuf.ByteString getEscapeCharacterBytes(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions} + */ + public static final class CsvImportOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + CsvImportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CsvImportOptions.newBuilder() to construct. + private CsvImportOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CsvImportOptions() { + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CsvImportOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The database table to import CSV file into.
+     * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + return columns_; + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+     * Optional. The columns to which CSV data is imported. If not specified,
+     * all columns of the database table are loaded with CSV data.
+     * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + public static final int FIELD_DELIMITER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + @java.lang.Override + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that separates columns within each row
+     * (line) of the file. The default is comma. The value of this argument has
+     * to be a character in Hex ASCII Code.
+     * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUOTE_CHARACTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + @java.lang.Override + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the quoting character to be used when a data value is
+     * quoted. The default is double-quote. The value of this argument has to be
+     * a character in Hex ASCII Code.
+     * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ESCAPE_CHARACTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + @java.lang.Override + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. Specifies the character that should appear before a data
+     * character that needs to be escaped. The default is same as quote
+     * character. The value of this argument has to be a character in Hex ASCII
+     * Code.
+     * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = 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(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < columns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columns_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, escapeCharacter_); + } + 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(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + { + int dataSize = 0; + for (int i = 0; i < columns_.size(); i++) { + dataSize += computeStringSizeNoTag(columns_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldDelimiter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fieldDelimiter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quoteCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, quoteCharacter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(escapeCharacter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, escapeCharacter_); + } + 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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions other = + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getFieldDelimiter().equals(other.getFieldDelimiter())) return false; + if (!getQuoteCharacter().equals(other.getQuoteCharacter())) return false; + if (!getEscapeCharacter().equals(other.getEscapeCharacter())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (37 * hash) + FIELD_DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getFieldDelimiter().hashCode(); + hash = (37 * hash) + QUOTE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getQuoteCharacter().hashCode(); + hash = (37 * hash) + ESCAPE_CHARACTER_FIELD_NUMBER; + hash = (53 * hash) + getEscapeCharacter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions 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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions 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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + parseDelimitedFrom( + java.io.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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions 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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder + .class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fieldDelimiter_ = ""; + quoteCharacter_ = ""; + escapeCharacter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions build() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions buildPartial() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions result = + new com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + columns_.makeImmutable(); + result.columns_ = columns_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldDelimiter_ = fieldDelimiter_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quoteCharacter_ = quoteCharacter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.escapeCharacter_ = escapeCharacter_; + } + } + + @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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions other) { + if (other + == com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ |= 0x00000002; + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + if (!other.getFieldDelimiter().isEmpty()) { + fieldDelimiter_ = other.fieldDelimiter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getQuoteCharacter().isEmpty()) { + quoteCharacter_ = other.quoteCharacter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getEscapeCharacter().isEmpty()) { + escapeCharacter_ = other.escapeCharacter_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureColumnsIsMutable(); + columns_.add(s); + break; + } // case 18 + case 26: + { + fieldDelimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + quoteCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + escapeCharacter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The database table to import CSV file into.
+       * 
+ * + * string table = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList columns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureColumnsIsMutable() { + if (!columns_.isModifiable()) { + columns_ = new com.google.protobuf.LazyStringArrayList(columns_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the columns. + */ + public com.google.protobuf.ProtocolStringList getColumnsList() { + columns_.makeImmutable(); + return columns_; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of columns. + */ + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The columns at the given index. + */ + public java.lang.String getColumns(int index) { + return columns_.get(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the columns at the given index. + */ + public com.google.protobuf.ByteString getColumnsBytes(int index) { + return columns_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The columns to set. + * @return This builder for chaining. + */ + public Builder setColumns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The columns to add. + * @return This builder for chaining. + */ + public Builder addColumns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The columns to add. + * @return This builder for chaining. + */ + public Builder addAllColumns(java.lang.Iterable values) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearColumns() { + columns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The columns to which CSV data is imported. If not specified,
+       * all columns of the database table are loaded with CSV data.
+       * 
+ * + * repeated string columns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the columns to add. + * @return This builder for chaining. + */ + public Builder addColumnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnsIsMutable(); + columns_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object fieldDelimiter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldDelimiter. + */ + public java.lang.String getFieldDelimiter() { + java.lang.Object ref = fieldDelimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldDelimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldDelimiter. + */ + public com.google.protobuf.ByteString getFieldDelimiterBytes() { + java.lang.Object ref = fieldDelimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldDelimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldDelimiter() { + fieldDelimiter_ = getDefaultInstance().getFieldDelimiter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that separates columns within each row
+       * (line) of the file. The default is comma. The value of this argument has
+       * to be a character in Hex ASCII Code.
+       * 
+ * + * string field_delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fieldDelimiter to set. + * @return This builder for chaining. + */ + public Builder setFieldDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldDelimiter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object quoteCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The quoteCharacter. + */ + public java.lang.String getQuoteCharacter() { + java.lang.Object ref = quoteCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + quoteCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for quoteCharacter. + */ + public com.google.protobuf.ByteString getQuoteCharacterBytes() { + java.lang.Object ref = quoteCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + quoteCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQuoteCharacter() { + quoteCharacter_ = getDefaultInstance().getQuoteCharacter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the quoting character to be used when a data value is
+       * quoted. The default is double-quote. The value of this argument has to be
+       * a character in Hex ASCII Code.
+       * 
+ * + * string quote_character = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for quoteCharacter to set. + * @return This builder for chaining. + */ + public Builder setQuoteCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + quoteCharacter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object escapeCharacter_ = ""; + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escapeCharacter. + */ + public java.lang.String getEscapeCharacter() { + java.lang.Object ref = escapeCharacter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + escapeCharacter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for escapeCharacter. + */ + public com.google.protobuf.ByteString getEscapeCharacterBytes() { + java.lang.Object ref = escapeCharacter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + escapeCharacter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscapeCharacter() { + escapeCharacter_ = getDefaultInstance().getEscapeCharacter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Specifies the character that should appear before a data
+       * character that needs to be escaped. The default is same as quote
+       * character. The value of this argument has to be a character in Hex ASCII
+       * Code.
+       * 
+ * + * string escape_character = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for escapeCharacter to set. + * @return This builder for chaining. + */ + public Builder setEscapeCharacterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + escapeCharacter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + private static final com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions(); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvImportOptions 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.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int importOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importOptions_; + + public enum ImportOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SQL_IMPORT_OPTIONS(4), + CSV_IMPORT_OPTIONS(7), + IMPORTOPTIONS_NOT_SET(0); + private final int value; + + private ImportOptionsCase(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 ImportOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static ImportOptionsCase forNumber(int value) { + switch (value) { + case 4: + return SQL_IMPORT_OPTIONS; + case 7: + return CSV_IMPORT_OPTIONS; + case 0: + return IMPORTOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public static final int SQL_IMPORT_OPTIONS_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + getSqlImportOptions() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + + public static final int CSV_IMPORT_OPTIONS_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + getCsvImportOptions() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + @java.lang.Override + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = 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(gcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, database_); + } + if (importOptionsCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); + } + if (importOptionsCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) importOptions_); + } + 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(gcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, database_); + } + if (importOptionsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + importOptions_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); + } + if (importOptionsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + importOptions_); + } + 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.alloydb.v1beta.ImportClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.ImportClusterRequest other = + (com.google.cloud.alloydb.v1beta.ImportClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getImportOptionsCase().equals(other.getImportOptionsCase())) return false; + switch (importOptionsCase_) { + case 4: + if (!getSqlImportOptions().equals(other.getSqlImportOptions())) return false; + break; + case 7: + if (!getCsvImportOptions().equals(other.getCsvImportOptions())) 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) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + switch (importOptionsCase_) { + case 4: + hash = (37 * hash) + SQL_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSqlImportOptions().hashCode(); + break; + case 7: + hash = (37 * hash) + CSV_IMPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCsvImportOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest 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.alloydb.v1beta.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest 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.alloydb.v1beta.ImportClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest parseDelimitedFrom( + java.io.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.alloydb.v1beta.ImportClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest 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.alloydb.v1beta.ImportClusterRequest 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; + } + + /** + * + * + *
+   * Import cluster request.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.ImportClusterRequest) + com.google.cloud.alloydb.v1beta.ImportClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.class, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.ImportClusterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sqlImportOptionsBuilder_ != null) { + sqlImportOptionsBuilder_.clear(); + } + if (csvImportOptionsBuilder_ != null) { + csvImportOptionsBuilder_.clear(); + } + name_ = ""; + gcsUri_ = ""; + database_ = ""; + user_ = ""; + importOptionsCase_ = 0; + importOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest build() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest buildPartial() { + com.google.cloud.alloydb.v1beta.ImportClusterRequest result = + new com.google.cloud.alloydb.v1beta.ImportClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.ImportClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.user_ = user_; + } + } + + private void buildPartialOneofs(com.google.cloud.alloydb.v1beta.ImportClusterRequest result) { + result.importOptionsCase_ = importOptionsCase_; + result.importOptions_ = this.importOptions_; + if (importOptionsCase_ == 4 && sqlImportOptionsBuilder_ != null) { + result.importOptions_ = sqlImportOptionsBuilder_.build(); + } + if (importOptionsCase_ == 7 && csvImportOptionsBuilder_ != null) { + result.importOptions_ = csvImportOptionsBuilder_.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.alloydb.v1beta.ImportClusterRequest) { + return mergeFrom((com.google.cloud.alloydb.v1beta.ImportClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ImportClusterRequest other) { + if (other == com.google.cloud.alloydb.v1beta.ImportClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000020; + onChanged(); + } + switch (other.getImportOptionsCase()) { + case SQL_IMPORT_OPTIONS: + { + mergeSqlImportOptions(other.getSqlImportOptions()); + break; + } + case CSV_IMPORT_OPTIONS: + { + mergeCsvImportOptions(other.getCsvImportOptions()); + break; + } + case IMPORTOPTIONS_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_ |= 0x00000004; + break; + } // case 10 + case 18: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + input.readMessage( + getSqlImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 4; + break; + } // case 34 + case 42: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + input.readMessage( + getCsvImportOptionsFieldBuilder().getBuilder(), extensionRegistry); + importOptionsCase_ = 7; + 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 importOptionsCase_ = 0; + private java.lang.Object importOptions_; + + public ImportOptionsCase getImportOptionsCase() { + return ImportOptionsCase.forNumber(importOptionsCase_); + } + + public Builder clearImportOptions() { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder> + sqlImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + @java.lang.Override + public boolean hasSqlImportOptions() { + return importOptionsCase_ == 4; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + getSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 4) { + return sqlImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder setSqlImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder + builderForValue) { + if (sqlImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + sqlImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder mergeSqlImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions value) { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4 + && importOptions_ + != com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.newBuilder( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 4) { + sqlImportOptionsBuilder_.mergeFrom(value); + } else { + sqlImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 4; + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public Builder clearSqlImportOptions() { + if (sqlImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 4) { + importOptionsCase_ = 0; + importOptions_ = null; + } + sqlImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder + getSqlImportOptionsBuilder() { + return getSqlImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder() { + if ((importOptionsCase_ == 4) && (sqlImportOptionsBuilder_ != null)) { + return sqlImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 4) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in SQL format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder> + getSqlImportOptionsFieldBuilder() { + if (sqlImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 4)) { + importOptions_ = + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions + .getDefaultInstance(); + } + sqlImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions) + importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 4; + onChanged(); + return sqlImportOptionsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder> + csvImportOptionsBuilder_; + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + @java.lang.Override + public boolean hasCsvImportOptions() { + return importOptionsCase_ == 7; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + getCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } else { + if (importOptionsCase_ == 7) { + return csvImportOptionsBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importOptions_ = value; + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder setCsvImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder + builderForValue) { + if (csvImportOptionsBuilder_ == null) { + importOptions_ = builderForValue.build(); + onChanged(); + } else { + csvImportOptionsBuilder_.setMessage(builderForValue.build()); + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder mergeCsvImportOptions( + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions value) { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7 + && importOptions_ + != com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance()) { + importOptions_ = + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.newBuilder( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + importOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + importOptions_ = value; + } + onChanged(); + } else { + if (importOptionsCase_ == 7) { + csvImportOptionsBuilder_.mergeFrom(value); + } else { + csvImportOptionsBuilder_.setMessage(value); + } + } + importOptionsCase_ = 7; + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public Builder clearCsvImportOptions() { + if (csvImportOptionsBuilder_ == null) { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + onChanged(); + } + } else { + if (importOptionsCase_ == 7) { + importOptionsCase_ = 0; + importOptions_ = null; + } + csvImportOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder + getCsvImportOptionsBuilder() { + return getCsvImportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder() { + if ((importOptionsCase_ == 7) && (csvImportOptionsBuilder_ != null)) { + return csvImportOptionsBuilder_.getMessageOrBuilder(); + } else { + if (importOptionsCase_ == 7) { + return (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + importOptions_; + } + return com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Options for importing data in CSV format.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder> + getCsvImportOptionsFieldBuilder() { + if (csvImportOptionsBuilder_ == null) { + if (!(importOptionsCase_ == 7)) { + importOptions_ = + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions + .getDefaultInstance(); + } + csvImportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions.Builder, + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder>( + (com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions) + importOptions_, + getParentForChildren(), + isClean()); + importOptions_ = null; + } + importOptionsCase_ = 7; + onChanged(); + return csvImportOptionsBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the cluster.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The path to the file in Google Cloud Storage where the source
+     * file for import will be stored. The URI is in the form
+     * `gs://bucketName/fileName`.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + public com.google.protobuf.ByteString getDatabaseBytes() { + java.lang.Object ref = database_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of the database to which the import will be done.
+     * For import from SQL file, this is required only if the file does not
+     * specify a database.
+     * Note - Value provided should be the same as expected from `SELECT
+     * current_database();` and NOT as a resource reference.
+     * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for database to set. + * @return This builder for chaining. + */ + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Database user to be used for importing the data.
+     * Note - Value provided should be the same as expected from
+     * `SELECT current_user;` and NOT as a resource reference.
+     * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = value; + bitField0_ |= 0x00000020; + 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.alloydb.v1beta.ImportClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.ImportClusterRequest) + private static final com.google.cloud.alloydb.v1beta.ImportClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.ImportClusterRequest(); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterRequest 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.alloydb.v1beta.ImportClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequestOrBuilder.java new file mode 100644 index 000000000000..69a23d5b6e78 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * 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/alloydb/v1beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +public interface ImportClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.ImportClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return Whether the sqlImportOptions field is set. + */ + boolean hasSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + * + * @return The sqlImportOptions. + */ + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions getSqlImportOptions(); + + /** + * + * + *
+   * Options for importing data in SQL format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions sql_import_options = 4; + * + */ + com.google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptionsOrBuilder + getSqlImportOptionsOrBuilder(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return Whether the csvImportOptions field is set. + */ + boolean hasCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + * + * @return The csvImportOptions. + */ + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions getCsvImportOptions(); + + /** + * + * + *
+   * Options for importing data in CSV format.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions csv_import_options = 7; + * + */ + com.google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsOrBuilder + getCsvImportOptionsOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the cluster.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Required. The path to the file in Google Cloud Storage where the source
+   * file for import will be stored. The URI is in the form
+   * `gs://bucketName/fileName`.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
+   * Optional. Name of the database to which the import will be done.
+   * For import from SQL file, this is required only if the file does not
+   * specify a database.
+   * Note - Value provided should be the same as expected from `SELECT
+   * current_database();` and NOT as a resource reference.
+   * 
+ * + * string database = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
+   * Optional. Database user to be used for importing the data.
+   * Note - Value provided should be the same as expected from
+   * `SELECT current_user;` and NOT as a resource reference.
+   * 
+ * + * string user = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + com.google.cloud.alloydb.v1beta.ImportClusterRequest.ImportOptionsCase getImportOptionsCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponse.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponse.java new file mode 100644 index 000000000000..4d19d4793960 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponse.java @@ -0,0 +1,542 @@ +/* + * 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/alloydb/v1beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +/** + * + * + *
+ * Response of import rpc.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterResponse} + */ +public final class ImportClusterResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.ImportClusterResponse) + ImportClusterResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImportClusterResponse.newBuilder() to construct. + private ImportClusterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportClusterResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportClusterResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterResponse.class, + com.google.cloud.alloydb.v1beta.ImportClusterResponse.Builder.class); + } + + public static final int BYTES_DOWNLOADED_FIELD_NUMBER = 1; + private long bytesDownloaded_ = 0L; + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + 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 (bytesDownloaded_ != 0L) { + output.writeInt64(1, bytesDownloaded_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bytesDownloaded_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, bytesDownloaded_); + } + 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.alloydb.v1beta.ImportClusterResponse)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.ImportClusterResponse other = + (com.google.cloud.alloydb.v1beta.ImportClusterResponse) obj; + + if (getBytesDownloaded() != other.getBytesDownloaded()) 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) + BYTES_DOWNLOADED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBytesDownloaded()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse 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.alloydb.v1beta.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse 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.alloydb.v1beta.ImportClusterResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse parseDelimitedFrom( + java.io.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.alloydb.v1beta.ImportClusterResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse 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.alloydb.v1beta.ImportClusterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response of import rpc.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.ImportClusterResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.ImportClusterResponse) + com.google.cloud.alloydb.v1beta.ImportClusterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.ImportClusterResponse.class, + com.google.cloud.alloydb.v1beta.ImportClusterResponse.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.ImportClusterResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bytesDownloaded_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ServiceProto + .internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterResponse getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.ImportClusterResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterResponse build() { + com.google.cloud.alloydb.v1beta.ImportClusterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ImportClusterResponse buildPartial() { + com.google.cloud.alloydb.v1beta.ImportClusterResponse result = + new com.google.cloud.alloydb.v1beta.ImportClusterResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.ImportClusterResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bytesDownloaded_ = bytesDownloaded_; + } + } + + @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.alloydb.v1beta.ImportClusterResponse) { + return mergeFrom((com.google.cloud.alloydb.v1beta.ImportClusterResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ImportClusterResponse other) { + if (other == com.google.cloud.alloydb.v1beta.ImportClusterResponse.getDefaultInstance()) + return this; + if (other.getBytesDownloaded() != 0L) { + setBytesDownloaded(other.getBytesDownloaded()); + } + 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: + { + bytesDownloaded_ = input.readInt64(); + 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 long bytesDownloaded_; + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + @java.lang.Override + public long getBytesDownloaded() { + return bytesDownloaded_; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytesDownloaded to set. + * @return This builder for chaining. + */ + public Builder setBytesDownloaded(long value) { + + bytesDownloaded_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+     * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBytesDownloaded() { + bitField0_ = (bitField0_ & ~0x00000001); + bytesDownloaded_ = 0L; + 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.alloydb.v1beta.ImportClusterResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.ImportClusterResponse) + private static final com.google.cloud.alloydb.v1beta.ImportClusterResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.ImportClusterResponse(); + } + + public static com.google.cloud.alloydb.v1beta.ImportClusterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportClusterResponse 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.alloydb.v1beta.ImportClusterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponseOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponseOrBuilder.java new file mode 100644 index 000000000000..76ad9ee655e8 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ImportClusterResponseOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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/alloydb/v1beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +public interface ImportClusterResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.ImportClusterResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Size of the object downloaded from Google Cloud Storage in bytes.
+   * 
+ * + * int64 bytes_downloaded = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytesDownloaded. + */ + long getBytesDownloaded(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java index 8e317b82e602..a7798af627dc 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/Instance.java @@ -776,6 +776,36 @@ public interface MachineConfigOrBuilder * @return The cpuCount. */ int getCpuCount(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); } /** @@ -798,7 +828,9 @@ private MachineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private MachineConfig() {} + private MachineConfig() { + machineType_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -840,6 +872,63 @@ public int getCpuCount() { return cpuCount_; } + public static final int MACHINE_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + + /** + * + * + *
+     * Machine type of the VM instance. E.g. "n2-highmem-4",
+     * "n2-highmem-8", "c4a-highmem-4-lssd".
+     * cpu_count must match the number of vCPUs in the machine type.
+     * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -857,6 +946,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cpuCount_ != 0) { output.writeInt32(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, machineType_); + } getUnknownFields().writeTo(output); } @@ -869,6 +961,9 @@ public int getSerializedSize() { if (cpuCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, cpuCount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, machineType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -886,6 +981,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.alloydb.v1beta.Instance.MachineConfig) obj; if (getCpuCount() != other.getCpuCount()) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -899,6 +995,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER; hash = (53 * hash) + getCpuCount(); + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1043,6 +1141,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; cpuCount_ = 0; + machineType_ = ""; return this; } @@ -1082,6 +1181,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance.MachineConfi if (((from_bitField0_ & 0x00000001) != 0)) { result.cpuCount_ = cpuCount_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.machineType_ = machineType_; + } } @java.lang.Override @@ -1135,6 +1237,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.MachineConfig if (other.getCpuCount() != 0) { setCpuCount(other.getCpuCount()); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1167,6 +1274,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 34: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1242,6 +1355,127 @@ public Builder clearCpuCount() { return this; } + private java.lang.Object machineType_ = ""; + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Machine type of the VM instance. E.g. "n2-highmem-4",
+       * "n2-highmem-8", "c4a-highmem-4-lssd".
+       * cpu_count must match the number of vCPUs in the machine type.
+       * 
+ * + * string machine_type = 4; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1429,7 +1663,7 @@ public interface NodeOrBuilder * *
    * Details of a single node in the instance.
-   * Nodes in an AlloyDB instance are ephemereal, they can change during
+   * Nodes in an AlloyDB instance are ephemeral, they can change during
    * update, failover, autohealing and resize operations.
    * 
* @@ -1887,7 +2121,7 @@ protected Builder newBuilderForType( * *
      * Details of a single node in the instance.
-     * Nodes in an AlloyDB instance are ephemereal, they can change during
+     * Nodes in an AlloyDB instance are ephemeral, they can change during
      * update, failover, autohealing and resize operations.
      * 
* @@ -3824,7 +4058,7 @@ public interface ObservabilityInstanceConfigOrBuilder * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3841,7 +4075,7 @@ public interface ObservabilityInstanceConfigOrBuilder * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4160,7 +4394,7 @@ public boolean getTrackWaitEvents() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4180,7 +4414,7 @@ public boolean hasTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * optional bool track_wait_event_types = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5206,7 +5440,7 @@ public Builder clearTrackWaitEvents() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5227,7 +5461,7 @@ public boolean hasTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5248,7 +5482,7 @@ public boolean getTrackWaitEventTypes() { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -5273,7 +5507,7 @@ public Builder setTrackWaitEventTypes(boolean value) { * Output only. Track wait event types during query execution for an * instance. This flag is turned "on" by default but tracking is enabled * only after observability enabled flag is also turned on. This is - * read-only flag and only modifiable by producer API. + * read-only flag and only modifiable by internal API. *
* * @@ -7993,849 +8227,4537 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PscInstanceConfigOrBuilder + public interface PscInterfaceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network_attachment_resource = 1; * - * @return The serviceAttachmentLink. + * @return The networkAttachmentResource. */ - java.lang.String getServiceAttachmentLink(); + java.lang.String getNetworkAttachmentResource(); /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string network_attachment_resource = 1; * - * @return The bytes for serviceAttachmentLink. + * @return The bytes for networkAttachmentResource. */ - com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + com.google.protobuf.ByteString getNetworkAttachmentResourceBytes(); + } - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedConsumerProjects. - */ - java.util.List getAllowedConsumerProjectsList(); + /** + * + * + *
+   * Configuration for setting up a PSC interface to enable outbound
+   * connectivity.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig} + */ + public static final class PscInterfaceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + PscInterfaceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscInterfaceConfig.newBuilder() to construct. + private PscInterfaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInterfaceConfig() { + networkAttachmentResource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInterfaceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder.class); + } + + public static final int NETWORK_ATTACHMENT_RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachmentResource_ = ""; /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string network_attachment_resource = 1; * - * @return The count of allowedConsumerProjects. + * @return The networkAttachmentResource. */ - int getAllowedConsumerProjectsCount(); + @java.lang.Override + public java.lang.String getNetworkAttachmentResource() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachmentResource_ = s; + return s; + } + } /** * * *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
+     * The network attachment resource created in the consumer network to which
+     * the PSC interface will be linked. This is of the format:
+     * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+     * The network attachment must be in the same region as the instance.
      * 
* - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * string network_attachment_resource = 1; * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. + * @return The bytes for networkAttachmentResource. */ - java.lang.String getAllowedConsumerProjects(int index); + @java.lang.Override + public com.google.protobuf.ByteString getNetworkAttachmentResourceBytes() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachmentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. - */ - com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + private byte memoizedIsInitialized = -1; - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. - */ - java.lang.String getPscDnsName(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. - */ - com.google.protobuf.ByteString getPscDnsNameBytes(); - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
-   * PscInstanceConfig contains PSC related configuration at an
-   * instance level.
-   * 
- * - * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} - */ - public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) - PscInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachmentResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkAttachmentResource_); + } + getUnknownFields().writeTo(output); + } - // Use PscInstanceConfig.newBuilder() to construct. - private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkAttachmentResource_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkAttachmentResource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - private PscInstanceConfig() { - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig other = + (com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) obj; + + if (!getNetworkAttachmentResource().equals(other.getNetworkAttachmentResource())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PscInstanceConfig(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NETWORK_ATTACHMENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkAttachmentResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig 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.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig 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.alloydb.v1beta.Instance.PscInterfaceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig parseDelimitedFrom( + java.io.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.alloydb.v1beta.Instance.PscInterfaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig 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 - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; + public static Builder newBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The serviceAttachmentLink. - */ @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; - return s; - } + 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; } /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * Configuration for setting up a PSC interface to enable outbound
+     * connectivity.
      * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for serviceAttachmentLink. + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig} */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor; } - } - public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder.class); + } - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.newBuilder() + private Builder() {} - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedConsumerProjects. - */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - return allowedConsumerProjects_; - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedConsumerProjects. - */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. - */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); - } - - /** - * - * - *
-     * Optional. List of consumer projects that are allowed to create
-     * PSC endpoints to service-attachments to this instance.
-     * 
- * - * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. - */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachmentResource_ = ""; + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object pscDnsName_ = ""; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor; + } - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. - */ - @java.lang.Override - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; - return s; + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance(); } - } - /** - * - * - *
-     * Output only. The DNS name of the instance for PSC connectivity.
-     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
-     * 
- * - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig build() { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result = + new com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachmentResource_ = networkAttachmentResource_; + } + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, allowedConsumerProjects_.getRaw(i)); + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } - { - int dataSize = 0; - for (int i = 0; i < allowedConsumerProjects_.size(); i++) { - dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) other); + } else { + super.mergeFrom(other); + return this; } - size += dataSize; - size += 1 * getAllowedConsumerProjectsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()) + return this; + if (!other.getNetworkAttachmentResource().isEmpty()) { + networkAttachmentResource_ = other.networkAttachmentResource_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + @java.lang.Override + public final boolean isInitialized() { return true; } - if (!(obj instanceof com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig)) { - return super.equals(obj); - } - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other = - (com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) obj; - - if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; - if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) - return false; - if (!getPscDnsName().equals(other.getPscDnsName())) 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) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; - hash = (53 * hash) + getServiceAttachmentLink().hashCode(); - if (getAllowedConsumerProjectsCount() > 0) { - hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + @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: + { + networkAttachmentResource_ = 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; } - hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPscDnsName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private int bitField0_; - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private java.lang.Object networkAttachmentResource_ = ""; - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return The networkAttachmentResource. + */ + public java.lang.String getNetworkAttachmentResource() { + java.lang.Object ref = networkAttachmentResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkAttachmentResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return The bytes for networkAttachmentResource. + */ + public com.google.protobuf.ByteString getNetworkAttachmentResourceBytes() { + java.lang.Object ref = networkAttachmentResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkAttachmentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @param value The networkAttachmentResource to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkAttachmentResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachmentResource() { + networkAttachmentResource_ = getDefaultInstance().getNetworkAttachmentResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + /** + * + * + *
+       * The network attachment resource created in the consumer network to which
+       * the PSC interface will be linked. This is of the format:
+       * "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}".
+       * The network attachment must be in the same region as the instance.
+       * 
+ * + * string network_attachment_resource = 1; + * + * @param value The bytes for networkAttachmentResource to set. + * @return This builder for chaining. + */ + public Builder setNetworkAttachmentResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkAttachmentResource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig + DEFAULT_INSTANCE; - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig(); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public static com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInterfaceConfig 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 Builder newBuilder( - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface PscAutoConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * PscInstanceConfig contains PSC related configuration at an
-     * instance level.
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
      * 
* - * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} + * string consumer_project = 1; + * + * @return The consumerProject. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + java.lang.String getConsumerProject(); + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + com.google.protobuf.ByteString getConsumerProjectBytes(); + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + java.lang.String getConsumerNetwork(); + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + com.google.protobuf.ByteString getConsumerNetworkBytes(); + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + java.lang.String getIpAddress(); + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + com.google.protobuf.ByteString getIpAddressBytes(); + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The consumerNetworkStatus. + */ + java.lang.String getConsumerNetworkStatus(); + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for consumerNetworkStatus. + */ + com.google.protobuf.ByteString getConsumerNetworkStatusBytes(); + } + + /** + * + * + *
+   * Configuration for setting up PSC service automation. Consumer projects in
+   * the configs will be allowlisted automatically for the instance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig} + */ + public static final class PscAutoConnectionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) + PscAutoConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscAutoConnectionConfig.newBuilder() to construct. + private PscAutoConnectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutoConnectionConfig() { + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutoConnectionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder.class); + } + + public static final int CONSUMER_PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerProject_ = ""; + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The consumerProject. + */ + @java.lang.Override + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerProject_ = s; + return s; + } + } + + /** + * + * + *
+     * The consumer project to which the PSC service automation endpoint will
+     * be created.
+     * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerNetwork_ = ""; + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + @java.lang.Override + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } + } + + /** + * + * + *
+     * The consumer network for the PSC service automation, example:
+     * "projects/vpc-host-project/global/networks/default".
+     * The consumer network might be hosted a different project than the
+     * consumer project.
+     * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IP_ADDRESS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ipAddress_ = ""; + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + @java.lang.Override + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The IP address of the PSC service automation endpoint.
+     * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The status of the PSC service automation connection.
+     * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_NETWORK_STATUS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerNetworkStatus_ = ""; + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The consumerNetworkStatus. + */ + @java.lang.Override + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetworkStatus_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The status of the service connection policy.
+     * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for consumerNetworkStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = 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(consumerProject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, consumerProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, consumerNetworkStatus_); + } + 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(consumerProject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, consumerProject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consumerNetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipAddress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerNetworkStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, consumerNetworkStatus_); + } + 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.alloydb.v1beta.Instance.PscAutoConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig other = + (com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) obj; + + if (!getConsumerProject().equals(other.getConsumerProject())) return false; + if (!getConsumerNetwork().equals(other.getConsumerNetwork())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getConsumerNetworkStatus().equals(other.getConsumerNetworkStatus())) 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) + CONSUMER_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getConsumerProject().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetwork().hashCode(); + hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getIpAddress().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + CONSUMER_NETWORK_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConsumerNetworkStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig 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.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig 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.alloydb.v1beta.Instance.PscAutoConnectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + parseDelimitedFrom( + java.io.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.alloydb.v1beta.Instance.PscAutoConnectionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig 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.alloydb.v1beta.Instance.PscAutoConnectionConfig 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 setting up PSC service automation. Consumer projects in
+     * the configs will be allowlisted automatically for the instance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumerProject_ = ""; + consumerNetwork_ = ""; + ipAddress_ = ""; + status_ = ""; + consumerNetworkStatus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig build() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig result = + new com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumerProject_ = consumerProject_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.consumerNetwork_ = consumerNetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipAddress_ = ipAddress_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.consumerNetworkStatus_ = consumerNetworkStatus_; + } + } + + @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.alloydb.v1beta.Instance.PscAutoConnectionConfig) { + return mergeFrom( + (com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()) return this; + if (!other.getConsumerProject().isEmpty()) { + consumerProject_ = other.consumerProject_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConsumerNetwork().isEmpty()) { + consumerNetwork_ = other.consumerNetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpAddress().isEmpty()) { + ipAddress_ = other.ipAddress_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getConsumerNetworkStatus().isEmpty()) { + consumerNetworkStatus_ = other.consumerNetworkStatus_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + consumerProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + consumerNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ipAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + consumerNetworkStatus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object consumerProject_ = ""; + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return The consumerProject. + */ + public java.lang.String getConsumerProject() { + java.lang.Object ref = consumerProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return The bytes for consumerProject. + */ + public com.google.protobuf.ByteString getConsumerProjectBytes() { + java.lang.Object ref = consumerProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @param value The consumerProject to set. + * @return This builder for chaining. + */ + public Builder setConsumerProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerProject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumerProject() { + consumerProject_ = getDefaultInstance().getConsumerProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer project to which the PSC service automation endpoint will
+       * be created.
+       * 
+ * + * string consumer_project = 1; + * + * @param value The bytes for consumerProject to set. + * @return This builder for chaining. + */ + public Builder setConsumerProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerProject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object consumerNetwork_ = ""; + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return The consumerNetwork. + */ + public java.lang.String getConsumerNetwork() { + java.lang.Object ref = consumerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return The bytes for consumerNetwork. + */ + public com.google.protobuf.ByteString getConsumerNetworkBytes() { + java.lang.Object ref = consumerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetwork() { + consumerNetwork_ = getDefaultInstance().getConsumerNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The consumer network for the PSC service automation, example:
+       * "projects/vpc-host-project/global/networks/default".
+       * The consumer network might be hosted a different project than the
+       * consumer project.
+       * 
+ * + * string consumer_network = 2; + * + * @param value The bytes for consumerNetwork to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetwork_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ipAddress_ = ""; + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The ipAddress. + */ + public java.lang.String getIpAddress() { + java.lang.Object ref = ipAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for ipAddress. + */ + public com.google.protobuf.ByteString getIpAddressBytes() { + java.lang.Object ref = ipAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ipAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIpAddress() { + ipAddress_ = getDefaultInstance().getIpAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The IP address of the PSC service automation endpoint.
+       * 
+ * + * + * string ip_address = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for ipAddress to set. + * @return This builder for chaining. + */ + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the PSC service automation connection.
+       * 
+ * + * string status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object consumerNetworkStatus_ = ""; + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consumerNetworkStatus. + */ + public java.lang.String getConsumerNetworkStatus() { + java.lang.Object ref = consumerNetworkStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerNetworkStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for consumerNetworkStatus. + */ + public com.google.protobuf.ByteString getConsumerNetworkStatusBytes() { + java.lang.Object ref = consumerNetworkStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerNetworkStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsumerNetworkStatus() { + consumerNetworkStatus_ = getDefaultInstance().getConsumerNetworkStatus(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The status of the service connection policy.
+       * 
+ * + * string consumer_network_status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for consumerNetworkStatus to set. + * @return This builder for chaining. + */ + public Builder setConsumerNetworkStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerNetworkStatus_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutoConnectionConfig 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.alloydb.v1beta.Instance.PscAutoConnectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + java.lang.String getServiceAttachmentLink(); + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + com.google.protobuf.ByteString getServiceAttachmentLinkBytes(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + java.util.List getAllowedConsumerProjectsList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + int getAllowedConsumerProjectsCount(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + java.lang.String getAllowedConsumerProjects(int index); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + java.lang.String getPscDnsName(); + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscInterfaceConfigsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscInterfaceConfigsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPscAutoConnectionsList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPscAutoConnectionsCount(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList(); + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index); + } + + /** + * + * + *
+   * PscInstanceConfig contains PSC related configuration at an
+   * instance level.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} + */ + public static final class PscInstanceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + PscInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PscInstanceConfig.newBuilder() to construct. + private PscInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscInstanceConfig() { + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + pscAutoConnections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscInstanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + return allowedConsumerProjects_; + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+     * Optional. List of consumer projects that are allowed to create
+     * PSC endpoints to service-attachments to this instance.
+     * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + public static final int PSC_DNS_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscDnsName_ = ""; + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + @java.lang.Override + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The DNS name of the instance for PSC connectivity.
+     * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+     * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_INTERFACE_CONFIGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + pscInterfaceConfigs_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscInterfaceConfigsList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + return pscInterfaceConfigs_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscInterfaceConfigsCount() { + return pscInterfaceConfigs_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + return pscInterfaceConfigs_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC interfaces attached to the
+     * instance which are used for outbound connectivity. Only primary instances
+     * can have PSC interface attached. Currently we only support 0 or 1 PSC
+     * interface.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + return pscInterfaceConfigs_.get(index); + } + + public static final int PSC_AUTO_CONNECTIONS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + pscAutoConnections_; + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscAutoConnectionsList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + return pscAutoConnections_; + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscAutoConnectionsCount() { + return pscAutoConnections_.size(); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index) { + return pscAutoConnections_.get(index); + } + + /** + * + * + *
+     * Optional. Configurations for setting up PSC service automation.
+     * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + return pscAutoConnections_.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(serviceAttachmentLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachmentLink_); + } + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedConsumerProjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + output.writeMessage(8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + output.writeMessage(9, pscAutoConnections_.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(serviceAttachmentLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachmentLink_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedConsumerProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedConsumerProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedConsumerProjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscDnsName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pscDnsName_); + } + for (int i = 0; i < pscInterfaceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, pscInterfaceConfigs_.get(i)); + } + for (int i = 0; i < pscAutoConnections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.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.alloydb.v1beta.Instance.PscInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other = + (com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) obj; + + if (!getServiceAttachmentLink().equals(other.getServiceAttachmentLink())) return false; + if (!getAllowedConsumerProjectsList().equals(other.getAllowedConsumerProjectsList())) + return false; + if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; + if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) 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) + SERVICE_ATTACHMENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentLink().hashCode(); + if (getAllowedConsumerProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_CONSUMER_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedConsumerProjectsList().hashCode(); + } + hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscDnsName().hashCode(); + if (getPscInterfaceConfigsCount() > 0) { + hash = (37 * hash) + PSC_INTERFACE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscInterfaceConfigsList().hashCode(); + } + if (getPscAutoConnectionsCount() > 0) { + hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig parseDelimitedFrom( + java.io.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.alloydb.v1beta.Instance.PscInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig 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.alloydb.v1beta.Instance.PscInstanceConfig 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; + } + + /** + * + * + *
+     * PscInstanceConfig contains PSC related configuration at an
+     * instance level.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachmentLink_ = ""; + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pscDnsName_ = ""; + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + } else { + pscInterfaceConfigs_ = null; + pscInterfaceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + } else { + pscAutoConnections_ = null; + pscAutoConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig build() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = + new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result) { + if (pscInterfaceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pscInterfaceConfigs_ = pscInterfaceConfigs_; + } else { + result.pscInterfaceConfigs_ = pscInterfaceConfigsBuilder_.build(); + } + if (pscAutoConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = java.util.Collections.unmodifiableList(pscAutoConnections_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.pscAutoConnections_ = pscAutoConnections_; + } else { + result.pscAutoConnections_ = pscAutoConnectionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachmentLink_ = serviceAttachmentLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedConsumerProjects_.makeImmutable(); + result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pscDnsName_ = pscDnsName_; + } + } + + @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.alloydb.v1beta.Instance.PscInstanceConfig) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other) { + if (other + == com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance()) + return this; + if (!other.getServiceAttachmentLink().isEmpty()) { + serviceAttachmentLink_ = other.serviceAttachmentLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedConsumerProjects_.isEmpty()) { + if (allowedConsumerProjects_.isEmpty()) { + allowedConsumerProjects_ = other.allowedConsumerProjects_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); + } + onChanged(); + } + if (!other.getPscDnsName().isEmpty()) { + pscDnsName_ = other.pscDnsName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (pscInterfaceConfigsBuilder_ == null) { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigs_.isEmpty()) { + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.addAll(other.pscInterfaceConfigs_); + } + onChanged(); + } + } else { + if (!other.pscInterfaceConfigs_.isEmpty()) { + if (pscInterfaceConfigsBuilder_.isEmpty()) { + pscInterfaceConfigsBuilder_.dispose(); + pscInterfaceConfigsBuilder_ = null; + pscInterfaceConfigs_ = other.pscInterfaceConfigs_; + bitField0_ = (bitField0_ & ~0x00000008); + pscInterfaceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscInterfaceConfigsFieldBuilder() + : null; + } else { + pscInterfaceConfigsBuilder_.addAllMessages(other.pscInterfaceConfigs_); + } + } + } + if (pscAutoConnectionsBuilder_ == null) { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnections_.isEmpty()) { + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.addAll(other.pscAutoConnections_); + } + onChanged(); + } + } else { + if (!other.pscAutoConnections_.isEmpty()) { + if (pscAutoConnectionsBuilder_.isEmpty()) { + pscAutoConnectionsBuilder_.dispose(); + pscAutoConnectionsBuilder_ = null; + pscAutoConnections_ = other.pscAutoConnections_; + bitField0_ = (bitField0_ & ~0x00000010); + pscAutoConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscAutoConnectionsFieldBuilder() + : null; + } else { + pscAutoConnectionsBuilder_.addAllMessages(other.pscAutoConnections_); + } + } + } + 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: + { + serviceAttachmentLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(s); + break; + } // case 18 + case 58: + { + pscDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + case 66: + { + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig m = + input.readMessage( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.parser(), + extensionRegistry); + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(m); + } else { + pscInterfaceConfigsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig m = + input.readMessage( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.parser(), + extensionRegistry); + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(m); + } else { + pscAutoConnectionsBuilder_.addMessage(m); + } + break; + } // case 74 + 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 serviceAttachmentLink_ = ""; + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceAttachmentLink. + */ + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceAttachmentLink. + */ + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + java.lang.Object ref = serviceAttachmentLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachmentLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentLink() { + serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The service attachment created when Private
+       * Service Connect (PSC) is enabled for the instance.
+       * The name of the resource will be in the format of
+       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * 
+ * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for serviceAttachmentLink to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachmentLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedConsumerProjectsIsMutable() { + if (!allowedConsumerProjects_.isModifiable()) { + allowedConsumerProjects_ = + new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedConsumerProjects. + */ + public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { + allowedConsumerProjects_.makeImmutable(); + return allowedConsumerProjects_; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedConsumerProjects. + */ + public int getAllowedConsumerProjectsCount() { + return allowedConsumerProjects_.size(); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedConsumerProjects at the given index. + */ + public java.lang.String getAllowedConsumerProjects(int index) { + return allowedConsumerProjects_.get(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedConsumerProjects at the given index. + */ + public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { + return allowedConsumerProjects_.getByteString(index); + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedConsumerProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedConsumerProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { + ensureAllowedConsumerProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedConsumerProjects() { + allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.class, - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); + /** + * + * + *
+       * Optional. List of consumer projects that are allowed to create
+       * PSC endpoints to service-attachments to this instance.
+       * 
+ * + * + * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedConsumerProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedConsumerProjectsIsMutable(); + allowedConsumerProjects_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; } - // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.newBuilder() - private Builder() {} + private java.lang.Object pscDnsName_ = ""; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscDnsName. + */ + public java.lang.String getPscDnsName() { + java.lang.Object ref = pscDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - serviceAttachmentLink_ = ""; - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pscDnsName_ = ""; + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscDnsName. + */ + public com.google.protobuf.ByteString getPscDnsNameBytes() { + java.lang.Object ref = pscDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.alloydb.v1beta.ResourcesProto - .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscDnsName() { + pscDnsName_ = getDefaultInstance().getPscDnsName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance(); + /** + * + * + *
+       * Output only. The DNS name of the instance for PSC connectivity.
+       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * 
+ * + * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscDnsName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig build() { - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private java.util.List + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + + private void ensurePscInterfaceConfigsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + pscInterfaceConfigs_ = + new java.util.ArrayList( + pscInterfaceConfigs_); + bitField0_ |= 0x00000008; } - return result; } - @java.lang.Override - public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig buildPartial() { - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result = - new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + pscInterfaceConfigsBuilder_; + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscInterfaceConfigsList() { + if (pscInterfaceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } else { + return pscInterfaceConfigsBuilder_.getMessageList(); } - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.serviceAttachmentLink_ = serviceAttachmentLink_; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPscInterfaceConfigsCount() { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.size(); + } else { + return pscInterfaceConfigsBuilder_.getCount(); } - if (((from_bitField0_ & 0x00000002) != 0)) { - allowedConsumerProjects_.makeImmutable(); - result.allowedConsumerProjects_ = allowedConsumerProjects_; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig getPscInterfaceConfigs( + int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessage(index); } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pscDnsName_ = pscDnsName_; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, value); } + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscInterfaceConfigs( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(value); + } + return this; } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + int index, com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig value) { + if (pscInterfaceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, value); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscInterfaceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscInterfaceConfigs( int index, - java.lang.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.alloydb.v1beta.Instance.PscInstanceConfig) { - return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) other); + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder builderForValue) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.add(index, builderForValue.build()); + onChanged(); } else { - super.mergeFrom(other); - return this; + pscInterfaceConfigsBuilder_.addMessage(index, builderForValue.build()); } + return this; } - public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig other) { - if (other - == com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.getDefaultInstance()) - return this; - if (!other.getServiceAttachmentLink().isEmpty()) { - serviceAttachmentLink_ = other.serviceAttachmentLink_; - bitField0_ |= 0x00000001; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscInterfaceConfigs( + java.lang.Iterable + values) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscInterfaceConfigs_); onChanged(); + } else { + pscInterfaceConfigsBuilder_.addAllMessages(values); } - if (!other.allowedConsumerProjects_.isEmpty()) { - if (allowedConsumerProjects_.isEmpty()) { - allowedConsumerProjects_ = other.allowedConsumerProjects_; - bitField0_ |= 0x00000002; - } else { - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.addAll(other.allowedConsumerProjects_); - } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscInterfaceConfigs() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); + } else { + pscInterfaceConfigsBuilder_.clear(); } - if (!other.getPscDnsName().isEmpty()) { - pscDnsName_ = other.pscDnsName_; - bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscInterfaceConfigs(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + ensurePscInterfaceConfigsIsMutable(); + pscInterfaceConfigs_.remove(index); onChanged(); + } else { + pscInterfaceConfigsBuilder_.remove(index); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + getPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder().getBuilder(index); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder + getPscInterfaceConfigsOrBuilder(int index) { + if (pscInterfaceConfigsBuilder_ == null) { + return pscInterfaceConfigs_.get(index); + } else { + return pscInterfaceConfigsBuilder_.getMessageOrBuilder(index); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - serviceAttachmentLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(s); - break; - } // case 18 - case 58: - { - pscDnsName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - 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_; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsOrBuilderList() { + if (pscInterfaceConfigsBuilder_ != null) { + return pscInterfaceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscInterfaceConfigs_); + } + } - private java.lang.Object serviceAttachmentLink_ = ""; + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder() { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()); + } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder + addPscInterfaceConfigsBuilder(int index) { + return getPscInterfaceConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC interfaces attached to the
+       * instance which are used for outbound connectivity. Only primary instances
+       * can have PSC interface attached. Currently we only support 0 or 1 PSC
+       * interface.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig psc_interface_configs = 8 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The serviceAttachmentLink. */ - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAttachmentLink_ = s; - return s; - } else { - return (java.lang.String) ref; + public java.util.List + getPscInterfaceConfigsBuilderList() { + return getPscInterfaceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder> + getPscInterfaceConfigsFieldBuilder() { + if (pscInterfaceConfigsBuilder_ == null) { + pscInterfaceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInterfaceConfigOrBuilder>( + pscInterfaceConfigs_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + pscInterfaceConfigs_ = null; + } + return pscInterfaceConfigsBuilder_; + } + + private java.util.List + pscAutoConnections_ = java.util.Collections.emptyList(); + + private void ensurePscAutoConnectionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + pscAutoConnections_ = + new java.util.ArrayList< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig>( + pscAutoConnections_); + bitField0_ |= 0x00000010; } } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + pscAutoConnectionsBuilder_; + /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The bytes for serviceAttachmentLink. */ - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { - java.lang.Object ref = serviceAttachmentLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAttachmentLink_ = b; - return b; + public java.util.List + getPscAutoConnectionsList() { + if (pscAutoConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscAutoConnections_); } else { - return (com.google.protobuf.ByteString) ref; + return pscAutoConnectionsBuilder_.getMessageList(); } } @@ -8843,187 +12765,190 @@ public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The serviceAttachmentLink to set. - * @return This builder for chaining. */ - public Builder setServiceAttachmentLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public int getPscAutoConnectionsCount() { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.size(); + } else { + return pscAutoConnectionsBuilder_.getCount(); } - serviceAttachmentLink_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearServiceAttachmentLink() { - serviceAttachmentLink_ = getDefaultInstance().getServiceAttachmentLink(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAutoConnections( + int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); + } else { + return pscAutoConnectionsBuilder_.getMessage(index); + } } /** * * *
-       * Output only. The service attachment created when Private
-       * Service Connect (PSC) is enabled for the instance.
-       * The name of the resource will be in the format of
-       * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes for serviceAttachmentLink to set. - * @return This builder for chaining. */ - public Builder setServiceAttachmentLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPscAutoConnections( + int index, com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.setMessage(index, value); } - checkByteStringIsUtf8(value); - serviceAttachmentLink_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList allowedConsumerProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAllowedConsumerProjectsIsMutable() { - if (!allowedConsumerProjects_.isModifiable()) { - allowedConsumerProjects_ = - new com.google.protobuf.LazyStringArrayList(allowedConsumerProjects_); - } - bitField0_ |= 0x00000002; - } - /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return A list containing the allowedConsumerProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedConsumerProjectsList() { - allowedConsumerProjects_.makeImmutable(); - return allowedConsumerProjects_; + public Builder setPscAutoConnections( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The count of allowedConsumerProjects. */ - public int getAllowedConsumerProjectsCount() { - return allowedConsumerProjects_.size(); + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(value); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param index The index of the element to return. - * @return The allowedConsumerProjects at the given index. */ - public java.lang.String getAllowedConsumerProjects(int index) { - return allowedConsumerProjects_.get(index); + public Builder addPscAutoConnections( + int index, com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig value) { + if (pscAutoConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, value); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, value); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param index The index of the value to return. - * @return The bytes of the allowedConsumerProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedConsumerProjectsBytes(int index) { - return allowedConsumerProjects_.getByteString(index); + public Builder addPscAutoConnections( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param index The index to set the value at. - * @param value The allowedConsumerProjects to set. - * @return This builder for chaining. */ - public Builder setAllowedConsumerProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addPscAutoConnections( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -9031,25 +12956,24 @@ public Builder setAllowedConsumerProjects(int index, java.lang.String value) { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllowedConsumerProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllPscAutoConnections( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig> + values) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addAllMessages(values); } - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -9057,22 +12981,21 @@ public Builder addAllowedConsumerProjects(java.lang.String value) { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param values The allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllAllowedConsumerProjects(java.lang.Iterable values) { - ensureAllowedConsumerProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedConsumerProjects_); - bitField0_ |= 0x00000002; - onChanged(); + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + pscAutoConnectionsBuilder_.clear(); + } return this; } @@ -9080,21 +13003,21 @@ public Builder addAllAllowedConsumerProjects(java.lang.Iterable - * Optional. List of consumer projects that are allowed to create - * PSC endpoints to service-attachments to this instance. + * Optional. Configurations for setting up PSC service automation. *
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearAllowedConsumerProjects() { - allowedConsumerProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); + onChanged(); + } else { + pscAutoConnectionsBuilder_.remove(index); + } return this; } @@ -9102,52 +13025,35 @@ public Builder clearAllowedConsumerProjects() { * * *
-       * Optional. List of consumer projects that are allowed to create
-       * PSC endpoints to service-attachments to this instance.
+       * Optional. Configurations for setting up PSC service automation.
        * 
* * - * repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes of the allowedConsumerProjects to add. - * @return This builder for chaining. */ - public Builder addAllowedConsumerProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAllowedConsumerProjectsIsMutable(); - allowedConsumerProjects_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder().getBuilder(index); } - private java.lang.Object pscDnsName_ = ""; - /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pscDnsName. - */ - public java.lang.String getPscDnsName() { - java.lang.Object ref = pscDnsName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pscDnsName_ = s; - return s; + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); } else { - return (java.lang.String) ref; + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); } } @@ -9155,23 +13061,20 @@ public java.lang.String getPscDnsName() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for pscDnsName. + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getPscDnsNameBytes() { - java.lang.Object ref = pscDnsName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pscDnsName_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(pscAutoConnections_); } } @@ -9179,66 +13082,76 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return getPscAutoConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearPscDnsName() { - pscDnsName_ = getDefaultInstance().getPscDnsName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return getPscAutoConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); } /** * * *
-       * Output only. The DNS name of the instance for PSC connectivity.
-       * Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
+       * Optional. Configurations for setting up PSC service automation.
        * 
* - * string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for pscDnsName to set. - * @return This builder for chaining. + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder> + getPscAutoConnectionsBuilderList() { + return getPscAutoConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + pscAutoConnections_ = null; } - checkByteStringIsUtf8(value); - pscDnsName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return pscAutoConnectionsBuilder_; } @java.lang.Override @@ -13273,6 +17186,65 @@ public com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int inde return outboundPublicIpAddresses_.getByteString(index); } + public static final int GCA_CONFIG_FIELD_NUMBER = 38; + private com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfig_; + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + @java.lang.Override + public boolean hasGcaConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig getGcaConfig() { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder() { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13379,6 +17351,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 34, outboundPublicIpAddresses_.getRaw(i)); } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(38, getGcaConfig()); + } getUnknownFields().writeTo(output); } @@ -13511,6 +17486,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getOutboundPublicIpAddressesList().size(); } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13596,6 +17574,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getOutboundPublicIpAddressesList().equals(other.getOutboundPublicIpAddressesList())) return false; + if (hasGcaConfig() != other.hasGcaConfig()) return false; + if (hasGcaConfig()) { + if (!getGcaConfig().equals(other.getGcaConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13703,6 +17685,10 @@ public int hashCode() { hash = (37 * hash) + OUTBOUND_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getOutboundPublicIpAddressesList().hashCode(); } + if (hasGcaConfig()) { + hash = (37 * hash) + GCA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcaConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -13889,6 +17875,7 @@ private void maybeForceBuilderInitialization() { getPscInstanceConfigFieldBuilder(); getNetworkConfigFieldBuilder(); getGeminiConfigFieldBuilder(); + getGcaConfigFieldBuilder(); } } @@ -13984,6 +17971,11 @@ public Builder clear() { geminiConfigBuilder_ = null; } outboundPublicIpAddresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + gcaConfig_ = null; + if (gcaConfigBuilder_ != null) { + gcaConfigBuilder_.dispose(); + gcaConfigBuilder_ = null; + } return this; } @@ -14156,6 +18148,10 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance result) { outboundPublicIpAddresses_.makeImmutable(); result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } result.bitField0_ |= to_bitField0_; } @@ -14336,6 +18332,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { } onChanged(); } + if (other.hasGcaConfig()) { + mergeGcaConfig(other.getGcaConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -14572,6 +18571,12 @@ public Builder mergeFrom( outboundPublicIpAddresses_.add(s); break; } // case 274 + case 306: + { + input.readMessage(getGcaConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 306 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -20024,6 +24029,220 @@ public Builder addOutboundPublicIpAddressesBytes(com.google.protobuf.ByteString return this; } + private com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.GCAInstanceConfig, + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder> + gcaConfigBuilder_; + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + public boolean hasGcaConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig getGcaConfig() { + if (gcaConfigBuilder_ == null) { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } else { + return gcaConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { + if (gcaConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcaConfig_ = value; + } else { + gcaConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGcaConfig( + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder builderForValue) { + if (gcaConfigBuilder_ == null) { + gcaConfig_ = builderForValue.build(); + } else { + gcaConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { + if (gcaConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && gcaConfig_ != null + && gcaConfig_ + != com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) { + getGcaConfigBuilder().mergeFrom(value); + } else { + gcaConfig_ = value; + } + } else { + gcaConfigBuilder_.mergeFrom(value); + } + if (gcaConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGcaConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + gcaConfig_ = null; + if (gcaConfigBuilder_ != null) { + gcaConfigBuilder_.dispose(); + gcaConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder getGcaConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getGcaConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder() { + if (gcaConfigBuilder_ != null) { + return gcaConfigBuilder_.getMessageOrBuilder(); + } else { + return gcaConfig_ == null + ? com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance() + : gcaConfig_; + } + } + + /** + * + * + *
+     * Output only. Configuration parameters related to Gemini Cloud Assist.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.GCAInstanceConfig, + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder> + getGcaConfigFieldBuilder() { + if (gcaConfigBuilder_ == null) { + gcaConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.GCAInstanceConfig, + com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder, + com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder>( + getGcaConfig(), getParentForChildren(), isClean()); + gcaConfig_ = null; + } + return gcaConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java index 515cdc1defe6..4dea69a2c714 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/InstanceOrBuilder.java @@ -1337,4 +1337,47 @@ java.lang.String getAnnotationsOrDefault( * @return The bytes of the outboundPublicIpAddresses at the given index. */ com.google.protobuf.ByteString getOutboundPublicIpAddressesBytes(int index); + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gcaConfig field is set. + */ + boolean hasGcaConfig(); + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gcaConfig. + */ + com.google.cloud.alloydb.v1beta.GCAInstanceConfig getGcaConfig(); + + /** + * + * + *
+   * Output only. Configuration parameters related to Gemini Cloud Assist.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.GCAInstanceConfig gca_config = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1beta.GCAInstanceConfigOrBuilder getGcaConfigOrBuilder(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequest.java index b3884658337a..8d8a2e97555d 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequest.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequest.java @@ -43,6 +43,7 @@ private ListSupportedDatabaseFlagsRequest( private ListSupportedDatabaseFlagsRequest() { parent_ = ""; pageToken_ = ""; + scope_ = 0; } @java.lang.Override @@ -208,6 +209,51 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_ = 0; + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -231,6 +277,11 @@ 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 (scope_ + != com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } getUnknownFields().writeTo(output); } @@ -249,6 +300,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (scope_ + != com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -268,6 +324,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (scope_ != other.scope_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,6 +342,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -431,6 +490,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + scope_ = 0; return this; } @@ -478,6 +538,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.scope_ = scope_; + } } @java.lang.Override @@ -541,6 +604,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -585,6 +651,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 48: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -925,6 +997,118 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int scope_ = 0; + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The scope for which supported flags are requested. If not
+     * specified, default is DATABASE.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000008); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequestOrBuilder.java index 63bdfe5d4c7a..6756d34d482a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequestOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ListSupportedDatabaseFlagsRequestOrBuilder.java @@ -105,4 +105,36 @@ public interface ListSupportedDatabaseFlagsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * Optional. The scope for which supported flags are requested. If not
+   * specified, default is DATABASE.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scope. + */ + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java index 1e65d09701f2..fa72b5b4d00f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ResourcesProto.java @@ -164,6 +164,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_ClientConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -343,7 +351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003day\030\001 \001(\0162\026.google.type.DayOfWeek\022*\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDay\"J\n" + "\023MaintenanceSchedule\0223\n\n" - + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\335\031\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\210\032\n" + "\007Cluster\022G\n\r" + "backup_source\030\017 \001(\0132).google.c" + "loud.alloydb.v1beta.BackupSourceB\003\340A\003H\000\022M\n" @@ -415,9 +423,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024primary_cluster_name\030\001 \001(\t\0325\n" + "\r" + "PrimaryConfig\022$\n" - + "\027secondary_cluster_names\030\001 \003(\tB\003\340A\003\032%\n" + + "\027secondary_cluster_names\030\001 \003(\tB\003\340A\003\032P\n" + "\tPscConfig\022\030\n" - + "\013psc_enabled\030\001 \001(\010B\003\340A\001\032\323\001\n\r" + + "\013psc_enabled\030\001 \001(\010B\003\340A\001\022)\n" + + "\034service_owned_project_number\030\003 \001(\003B\003\340A\003\032\323\001\n\r" + "TrialMetadata\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\0220\n" @@ -439,8 +448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005EMPTY\020\003\022\014\n" + "\010CREATING\020\004\022\014\n" + "\010DELETING\020\005\022\n\n" - + "\006FAILED\020\006\022\021\n" - + "\r" + + "\006FAILED\020\006\022\021\n\r" + "BOOTSTRAPPING\020\007\022\017\n" + "\013MAINTENANCE\020\010\022\r\n" + "\tPROMOTING\020\t\"G\n" @@ -448,9 +456,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030CLUSTER_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PRIMARY\020\001\022\r\n" + "\tSECONDARY\020\002:u\352Ar\n" - + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/locations/{location}/" - + "clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" - + "\006source\"\341\037\n" + + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/locations/{locatio" + + "n}/clusters/{cluster}*\010clusters2\007clusterR\001\001B\010\n" + + "\006source\"\350#\n" + "\010Instance\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -461,25 +469,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006labels\030\007 \003(\01321.google.cloud.alloydb.v1beta.Instance.LabelsEntry\022?\n" + "\005state\030\010" + " \001(\0162+.google.cloud.alloydb.v1beta.Instance.StateB\003\340A\003\022N\n\r" - + "instance_type\030\t \001(\0162" - + "2.google.cloud.alloydb.v1beta.Instance.InstanceTypeB\003\340A\002\022K\n" + + "instance_type\030\t \001" + + "(\01622.google.cloud.alloydb.v1beta.Instance.InstanceTypeB\003\340A\002\022K\n" + "\016machine_config\030\n" + " \001(\01323.google.cloud.alloydb.v1beta.Instance.MachineConfig\022Q\n" - + "\021availability_type\030\013 \001(\016" - + "26.google.cloud.alloydb.v1beta.Instance.AvailabilityType\022\020\n" + + "\021availability_type\030\013 " + + "\001(\01626.google.cloud.alloydb.v1beta.Instance.AvailabilityType\022\020\n" + "\010gce_zone\030\014 \001(\t\022P\n" + "\016database_flags\030\r" + " \003(\01328.google.cloud.alloydb.v1beta.Instance.DatabaseFlagsEntry\022F\n\r" + "writable_node\030\023" + " \001(\0132*.google.cloud.alloydb.v1beta.Instance.NodeB\003\340A\003\022>\n" - + "\005nodes\030\024 " - + "\003(\0132*.google.cloud.alloydb.v1beta.Instance.NodeB\003\340A\003\022`\n" - + "\025query_insights_config\030\025 " - + "\001(\0132A.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022_\n" - + "\024observability_config\030\032 \001(\0132A.google.cloud.allo" - + "ydb.v1beta.Instance.ObservabilityInstanceConfig\022N\n" - + "\020read_pool_config\030\016 \001(\01324.goog" - + "le.cloud.alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + + "\005nodes\030\024" + + " \003(\0132*.google.cloud.alloydb.v1beta.Instance.NodeB\003\340A\003\022`\n" + + "\025query_insights_config\030\025" + + " \001(\0132A.google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig\022_\n" + + "\024observability_config\030\032 \001(\0132A.google.cloud.a" + + "lloydb.v1beta.Instance.ObservabilityInstanceConfig\022N\n" + + "\020read_pool_config\030\016 \001(\01324.g" + + "oogle.cloud.alloydb.v1beta.Instance.ReadPoolConfig\022\027\n\n" + "ip_address\030\017 \001(\tB\003\340A\003\022&\n" + "\021public_ip_address\030\033 \001(" + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022\030\n" @@ -489,19 +497,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01326.google.cloud.alloydb.v1beta.Instance.AnnotationsEntry\022I\n\r" + "update_policy\030\026" + " \001(\01322.google.cloud.alloydb.v1beta.Instance.UpdatePolicy\022c\n" - + "\030client_connection_config\030\027 \001(\0132<.google.cloud.alloyd" - + "b.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + + "\030client_connection_config\030\027 \001(\0132<.google.cloud.all" + + "oydb.v1beta.Instance.ClientConnectionConfigB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\030 \001(\010B\003\340A\003\022Y\n" - + "\023psc_instance_config\030\034 \001(\01327.google.cloud.al" - + "loydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022X\n" - + "\016network_config\030\035 \001(\0132;.google.cl" - + "oud.alloydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022M\n\r" - + "gemini_config\030! \001(\01321." - + "google.cloud.alloydb.v1beta.GeminiInstanceConfigB\003\340A\001\0221\n" + + "\023psc_instance_config\030\034 \001(\01327.google.cloud" + + ".alloydb.v1beta.Instance.PscInstanceConfigB\003\340A\001\022X\n" + + "\016network_config\030\035 \001(\0132;.google" + + ".cloud.alloydb.v1beta.Instance.InstanceNetworkConfigB\003\340A\001\022M\n\r" + + "gemini_config\030! \001(\013" + + "21.google.cloud.alloydb.v1beta.GeminiInstanceConfigB\003\340A\001\0221\n" + "\034outbound_public_ip_addresses\030\" \003(" - + "\tB\013\340A\003\342\214\317\327\010\002\010\002\032\"\n\r" + + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022G\n\n" + + "gca_config\030&" + + " \001(\0132..google.cloud.alloydb.v1beta.GCAInstanceConfigB\003\340A\003\0328\n\r" + "MachineConfig\022\021\n" - + "\tcpu_count\030\001 \001(\005\032R\n" + + "\tcpu_count\030\001 \001(\005\022\024\n" + + "\014machine_type\030\004 \001(\t\032R\n" + "\004Node\022\024\n" + "\007zone_id\030\001 \001(\tB\003\340A\003\022\017\n" + "\002id\030\002 \001(\tB\003\340A\003\022\017\n" @@ -526,7 +537,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027record_application_tags\030\006 \001(\010H\005\210\001\001\022#\n" + "\026query_plans_per_minute\030\007 \001(\005H\006\210\001\001\022!\n" + "\024track_active_queries\030\010 \001(\010H\007\210\001\001\022!\n" - + "\024track_client_address\030\t \001(\010H\010\210\001\001B\n\n" + + "\024track_client_address\030\t \001(\010H\010\210\001\001B\n" + + "\n" + "\010_enabledB\024\n" + "\022_preserve_commentsB\024\n" + "\022_track_wait_eventsB\031\n" @@ -539,23 +551,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ReadPoolConfig\022\022\n\n" + "node_count\030\001 \001(\005\032\221\001\n" + "\014UpdatePolicy\022E\n" - + "\004mode\030\001 \001(\01627.google.cloud" - + ".alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + + "\004mode\030\001 " + + "\001(\01627.google.cloud.alloydb.v1beta.Instance.UpdatePolicy.Mode\":\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\017\n" + "\013FORCE_APPLY\020\002\032z\n" + "\026ClientConnectionConfig\022\037\n" + "\022require_connectors\030\001 \001(\010B\003\340A\001\022?\n\n" - + "ssl_config\030\002" - + " \001(\0132&.google.cloud.alloydb.v1beta.SslConfigB\003\340A\001\032|\n" + + "ssl_config\030\002 \001(\0132" + + "&.google.cloud.alloydb.v1beta.SslConfigB\003\340A\001\0329\n" + + "\022PscInterfaceConfig\022#\n" + + "\033network_attachment_resource\030\001 \001(\t\032\251\001\n" + + "\027PscAutoConnectionConfig\022\030\n" + + "\020consumer_project\030\001 \001(\t\022\030\n" + + "\020consumer_network\030\002 \001(\t\022\037\n\n" + + "ip_address\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022\023\n" + + "\006status\030\004 \001(\tB\003\340A\003\022$\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\274\002\n" + "\021PscInstanceConfig\022$\n" + "\027service_attachment_link\030\001 \001(\tB\003\340A\003\022&\n" + "\031allowed_consumer_projects\030\002 \003(\tB\003\340A\001\022\031\n" - + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\032\213\002\n" + + "\014psc_dns_name\030\007 \001(\tB\003\340A\003\022\\\n" + + "\025psc_interface_configs\030\010 \003(\01328.goog" + + "le.cloud.alloydb.v1beta.Instance.PscInterfaceConfigB\003\340A\001\022`\n" + + "\024psc_auto_connections\030\t" + + " \003(\0132=.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\032\213\002\n" + "\025InstanceNetworkConfig\022x\n" - + "\034authorized_external_networks\030\001 \003(\0132M.google.cloud.alloydb." - + "v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132M.google.cloud.alloyd" + + "b.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + "\020enable_public_ip\030\002 \001(\010B\003\340A\001\022&\n" + "\031enable_outbound_public_ip\030\003 \001(\010B\003\340A\001\0321\n" + "\021AuthorizedNetwork\022\034\n\n" @@ -567,7 +591,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\221\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" @@ -582,15 +607,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014InstanceType\022\035\n" + "\031INSTANCE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007PRIMARY\020\001\022\r\n" - + "\tREAD_POOL\020\002\022\r" - + "\n" + + "\tREAD_POOL\020\002\022\r\n" + "\tSECONDARY\020\003\"N\n" + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" + "\010REGIONAL\020\002:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/locati" - + "ons/{location}/clusters/{cluster}/instances/{instance}*" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{project}/loca" + + "tions/{location}/clusters/{cluster}/instances/{instance}*" + "\tinstances2\010instanceR\001\001\"\352\002\n" + "\016ConnectionInfo\022\014\n" + "\004name\030\001 \001(\t\022\027\n\n" @@ -600,9 +624,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340A\003\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" + "\014psc_dns_name\030\006 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^proj" - + "ects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}/conn" - + "ectionInfo*\017connectionInfos2\016connectionInfo\"\350\014\n" + + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/cl" + + "usters/{cluster}/instances/{instance}/co" + + "nnectionInfo*\017connectionInfos2\016connectionInfo\"\350\014\n" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -611,8 +635,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\017 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022?\n" + "\006labels\030\006 \003(\0132/.google.cloud.alloydb.v1beta.Backup.LabelsEntry\022=\n" - + "\005state\030\007 \001(\0162).go" - + "ogle.cloud.alloydb.v1beta.Backup.StateB\003\340A\003\0226\n" + + "\005state\030\007 \001(\0162)." + + "google.cloud.alloydb.v1beta.Backup.StateB\003\340A\003\0226\n" + "\004type\030\010 \001(\0162(.google.cloud.alloydb.v1beta.Backup.Type\022\023\n" + "\013description\030\t \001(\t\022\030\n" + "\013cluster_uid\030\022 \001(\tB\003\340A\003\022<\n" @@ -625,13 +649,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017encryption_info\030\r" + " \001(\0132+.google.cloud.alloydb.v1beta.EncryptionInfoB\003\340A\003\022\014\n" + "\004etag\030\016 \001(\t\022I\n" - + "\013annotations\030\020" - + " \003(\01324.google.cloud.alloydb.v1beta.Backup.AnnotationsEntry\022\027\n" - + "\n" + + "\013annotations\030\020 \003(\01324.google.cloud" + + ".alloydb.v1beta.Backup.AnnotationsEntry\022\027\n\n" + "size_bytes\030\021 \001(\003B\003\340A\003\0224\n" + "\013expiry_time\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022U\n" - + "\017expiry_quantity\030\024 \001(\01327.google.cloud.all" - + "oydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01327.google.cloud.a" + + "lloydb.v1beta.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + "satisfies_pzs\030\025 \001(\010B\003\340A\003\022K\n" + "\020database_version\030\026" + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersionB\003\340A\003\022F\n" @@ -660,21 +683,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\022\016\n\n" + "CONTINUOUS\020\003:p\352Am\n" - + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations/{" - + "location}/backups/{backup}*\007backups2\006backupR\001\001\"\211\007\n" + + "\035alloydb.googleapis.com/Backup\0228projects/{project}/locations" + + "/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220\t\n" + "\025SupportedDatabaseFlag\022d\n" - + "\023string_restrictions\030\007 \001(\0132E.google.cloud.all" - + "oydb.v1beta.SupportedDatabaseFlag.StringRestrictionsH\000\022f\n" - + "\024integer_restrictions\030\010 \001(\0132F.google.cloud.alloydb.v1beta.Suppo" - + "rtedDatabaseFlag.IntegerRestrictionsH\000\022\014\n" + + "\023string_restrictions\030\007 \001(\0132E.google.cloud.a" + + "lloydb.v1beta.SupportedDatabaseFlag.StringRestrictionsH\000\022f\n" + + "\024integer_restrictions\030\010 \001(\0132F.google.cloud.alloydb.v1beta.Sup" + + "portedDatabaseFlag.IntegerRestrictionsH\000\022\"\n" + + "\030recommended_string_value\030\n" + + " \001(\tH\001\022@\n" + + "\031recommended_integer_value\030\013" + + " \001(\0132\033.google.protobuf.Int64ValueH\001\022\014\n" + "\004name\030\001 \001(\t\022\021\n" + "\tflag_name\030\002 \001(\t\022P\n\n" - + "value_type\030\003" - + " \001(\0162<.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001(\0162<.go" + + "ogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022K\n" - + "\025supported_db_versions\030\005" - + " \003(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022\033\n" - + "\023requires_db_restart\030\006 \001(\010\032,\n" + + "\025supported_db_versions\030\005 \003(" + + "\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022\033\n" + + "\023requires_db_restart\030\006 \001(\010\022G\n" + + "\005scope\030\t" + + " \001(\01628.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" @@ -685,31 +714,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006STRING\020\001\022\013\n" + "\007INTEGER\020\002\022\t\n" + "\005FLOAT\020\003\022\010\n" - + "\004NONE\020\004:\227\001\352A\223\001\n" - + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224p" - + "rojects/{project}/locations/{location}/f" - + "lags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" - + "\014restrictions\"\376\002\n" + + "\004NONE\020\004\"A\n" + + "\005Scope\022\025\n" + + "\021SCOPE_UNSPECIFIED\020\000\022\014\n" + + "\010DATABASE\020\001\022\023\n" + + "\017CONNECTION_POOL\020\002:\227\001\352A\223\001\n" + + ",alloydb.googleapis.com/SupportedDatabaseFla" + + "g\0224projects/{project}/locations/{locatio" + + "n}/flags/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + "\014restrictionsB\023\n" + + "\021recommended_value\"\376\002\n" + "\004User\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\025\n" + "\010password\030\002 \001(\tB\003\340A\004\022\033\n" + "\016database_roles\030\004 \003(\tB\003\340A\001\022B\n" - + "\tuser_type\030\005" - + " \001(\0162*.google.cloud.alloydb.v1beta.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005 \001(\0162*" + + ".google.cloud.alloydb.v1beta.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" + "\010UserType\022\031\n" + "\025USER_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020ALLOYDB_BUILT_IN\020\001\022\024\n" + "\020ALLOYDB_IAM_USER\020\002:y\352Av\n" - + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations" - + "/{location}/clusters/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + + "\033alloydb.googleapis.com/User\022Gprojects/{project}/locations/{location}/clu" + + "sters/{cluster}/users/{user}*\005users2\004userR\001\001\"\334\001\n" + "\010Database\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007charset\030\002 \001(\tB\003\340A\001\022\026\n" + "\tcollation\030\003 \001(\tB\003\340A\001:\216\001\352A\212\001\n" - + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/lo" - + "cations/{location}/clusters/{cluster}/databases/{database}*" - + "\tdatabases2\010databaseR\001\001*^\n" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{locati" + + "on}/clusters/{cluster}/databases/{database}*\tdatabases2\010databaseR\001\001*^\n" + "\014InstanceView\022\035\n" + "\031INSTANCE_VIEW_UNSPECIFIED\020\000\022\027\n" + "\023INSTANCE_VIEW_BASIC\020\001\022\026\n" @@ -728,15 +761,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SUBSCRIPTION_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\t\n" + "\005TRIAL\020\002B\306\003\n" - + "\037com.google.cloud.alloydb.v1betaB\016ResourcesProtoP\001Z9cloud.google.com" - + "/go/alloydb/apiv1beta/alloydbpb;alloydbp" - + "b\252\002\033Google.Cloud.AlloyDb.V1Beta\312\002\033Google" - + "\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}" - + "/locations/{location}/keyRings/{key_ring" - + "}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project}/" - + "global/networks/{network}b\006proto3" + + "\037com.google.cloud.alloydb.v1betaB\016Resources" + + "ProtoP\001Z9cloud.google.com/go/alloydb/api" + + "v1beta/alloydbpb;alloydbpb\252\002\033Google.Clou" + + "d.AlloyDb.V1Beta\312\002\033Google\\Cloud\\AlloyDb\\" + + "V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{loc" + + "ation}/keyRings/{key_ring}/cryptoKeys/{c" + + "rypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036compute.googleapis.com/Network\022,projects/{project}/global/networks" + + "/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -981,7 +1015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Cluster_PscConfig_descriptor, new java.lang.String[] { - "PscEnabled", + "PscEnabled", "ServiceOwnedProjectNumber", }); internal_static_google_cloud_alloydb_v1beta_Cluster_TrialMetadata_descriptor = internal_static_google_cloud_alloydb_v1beta_Cluster_descriptor.getNestedTypes().get(4); @@ -1051,6 +1085,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkConfig", "GeminiConfig", "OutboundPublicIpAddresses", + "GcaConfig", }); internal_static_google_cloud_alloydb_v1beta_Instance_MachineConfig_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(0); @@ -1058,7 +1093,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_MachineConfig_descriptor, new java.lang.String[] { - "CpuCount", + "CpuCount", "MachineType", }); internal_static_google_cloud_alloydb_v1beta_Instance_Node_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(1); @@ -1119,16 +1154,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RequireConnectors", "SslConfig", }); - internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor = internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(7); + internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_PscInterfaceConfig_descriptor, + new java.lang.String[] { + "NetworkAttachmentResource", + }); + internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_PscAutoConnectionConfig_descriptor, + new java.lang.String[] { + "ConsumerProject", "ConsumerNetwork", "IpAddress", "Status", "ConsumerNetworkStatus", + }); + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor = + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(9); internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor, new java.lang.String[] { - "ServiceAttachmentLink", "AllowedConsumerProjects", "PscDnsName", + "ServiceAttachmentLink", + "AllowedConsumerProjects", + "PscDnsName", + "PscInterfaceConfigs", + "PscAutoConnections", }); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(10); internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor, @@ -1146,7 +1201,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CidrRange", }); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(11); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, @@ -1154,7 +1209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(10); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(12); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor, @@ -1162,7 +1217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor = - internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(11); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedTypes().get(13); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor, @@ -1252,13 +1307,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "StringRestrictions", "IntegerRestrictions", + "RecommendedStringValue", + "RecommendedIntegerValue", "Name", "FlagName", "ValueType", "AcceptsMultipleValues", "SupportedDbVersions", "RequiresDbRestart", + "Scope", "Restrictions", + "RecommendedValue", }); internal_static_google_cloud_alloydb_v1beta_SupportedDatabaseFlag_StringRestrictions_descriptor = internal_static_google_cloud_alloydb_v1beta_SupportedDatabaseFlag_descriptor diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequest.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequest.java new file mode 100644 index 000000000000..4f452fa778ea --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequest.java @@ -0,0 +1,1568 @@ +/* + * 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/alloydb/v1beta/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +/** + * + * + *
+ * Message for registering Restoring from CloudSQL resource.
+ * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest} + */ +public final class RestoreFromCloudSQLRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) + RestoreFromCloudSQLRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RestoreFromCloudSQLRequest.newBuilder() to construct. + private RestoreFromCloudSQLRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreFromCloudSQLRequest() { + parent_ = ""; + clusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreFromCloudSQLRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.Builder.class); + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUDSQL_BACKUP_RUN_SOURCE(101), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 101: + return CLOUDSQL_BACKUP_RUN_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER = 101; + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.alloydb.v1beta.Cluster cluster_; + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Cluster getCluster() { + return cluster_ == null + ? com.google.cloud.alloydb.v1beta.Cluster.getDefaultInstance() + : cluster_; + } + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.ClusterOrBuilder getClusterOrBuilder() { + return cluster_ == null + ? com.google.cloud.alloydb.v1beta.Cluster.getDefaultInstance() + : cluster_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCluster()); + } + if (sourceCase_ == 101) { + output.writeMessage(101, (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); + } + if (sourceCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_); + } + 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.alloydb.v1beta.RestoreFromCloudSQLRequest)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest other = + (com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (hasCluster() != other.hasCluster()) return false; + if (hasCluster()) { + if (!getCluster().equals(other.getCluster())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 101: + if (!getCloudsqlBackupRunSource().equals(other.getCloudsqlBackupRunSource())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + if (hasCluster()) { + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + } + switch (sourceCase_) { + case 101: + hash = (37 * hash) + CLOUDSQL_BACKUP_RUN_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudsqlBackupRunSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest 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.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest 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.alloydb.v1beta.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest parseDelimitedFrom( + java.io.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.alloydb.v1beta.RestoreFromCloudSQLRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest 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.alloydb.v1beta.RestoreFromCloudSQLRequest 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 for registering Restoring from CloudSQL resource.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.class, + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudsqlBackupRunSourceBuilder_ != null) { + cloudsqlBackupRunSourceBuilder_.clear(); + } + parent_ = ""; + clusterId_ = ""; + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.alloydb.v1beta.CSQLServiceProto + .internal_static_google_cloud_alloydb_v1beta_RestoreFromCloudSQLRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest build() { + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest buildPartial() { + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest result = + new com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 101 && cloudsqlBackupRunSourceBuilder_ != null) { + result.source_ = cloudsqlBackupRunSourceBuilder_.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.alloydb.v1beta.RestoreFromCloudSQLRequest) { + return mergeFrom((com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest other) { + if (other == com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + switch (other.getSourceCase()) { + case CLOUDSQL_BACKUP_RUN_SOURCE: + { + mergeCloudsqlBackupRunSource(other.getCloudsqlBackupRunSource()); + break; + } + case SOURCE_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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 810: + { + input.readMessage( + getCloudsqlBackupRunSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 101; + break; + } // case 810 + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder> + cloudsqlBackupRunSourceBuilder_; + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + @java.lang.Override + public boolean hasCloudsqlBackupRunSource() { + return sourceCase_ == 101; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource getCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } else { + if (sourceCase_ == 101) { + return cloudsqlBackupRunSourceBuilder_.getMessage(); + } + return com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder setCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.Builder builderForValue) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder mergeCloudsqlBackupRunSource( + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource value) { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101 + && source_ + != com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance()) { + source_ = + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.newBuilder( + (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 101) { + cloudsqlBackupRunSourceBuilder_.mergeFrom(value); + } else { + cloudsqlBackupRunSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 101; + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public Builder clearCloudsqlBackupRunSource() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 101) { + sourceCase_ = 0; + source_ = null; + } + cloudsqlBackupRunSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + public com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.Builder + getCloudsqlBackupRunSourceBuilder() { + return getCloudsqlBackupRunSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder() { + if ((sourceCase_ == 101) && (cloudsqlBackupRunSourceBuilder_ != null)) { + return cloudsqlBackupRunSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 101) { + return (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_; + } + return com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Cluster created from CloudSQL backup run.
+     * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder> + getCloudsqlBackupRunSourceFieldBuilder() { + if (cloudsqlBackupRunSourceBuilder_ == null) { + if (!(sourceCase_ == 101)) { + source_ = com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.getDefaultInstance(); + } + cloudsqlBackupRunSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource.Builder, + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder>( + (com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 101; + onChanged(); + return cloudsqlBackupRunSourceBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The location of the new cluster. For the required format, see the
+     * comment on Cluster.name field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the requesting object.
+     * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.alloydb.v1beta.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Cluster, + com.google.cloud.alloydb.v1beta.Cluster.Builder, + com.google.cloud.alloydb.v1beta.ClusterOrBuilder> + clusterBuilder_; + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + public com.google.cloud.alloydb.v1beta.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null + ? com.google.cloud.alloydb.v1beta.Cluster.getDefaultInstance() + : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1beta.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + } else { + clusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCluster(com.google.cloud.alloydb.v1beta.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCluster(com.google.cloud.alloydb.v1beta.Cluster value) { + if (clusterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && cluster_ != null + && cluster_ != com.google.cloud.alloydb.v1beta.Cluster.getDefaultInstance()) { + getClusterBuilder().mergeFrom(value); + } else { + cluster_ = value; + } + } else { + clusterBuilder_.mergeFrom(value); + } + if (cluster_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCluster() { + bitField0_ = (bitField0_ & ~0x00000008); + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1beta.Cluster.Builder getClusterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.alloydb.v1beta.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null + ? com.google.cloud.alloydb.v1beta.Cluster.getDefaultInstance() + : cluster_; + } + } + + /** + * + * + *
+     * Required. The resource being created
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Cluster, + com.google.cloud.alloydb.v1beta.Cluster.Builder, + com.google.cloud.alloydb.v1beta.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.alloydb.v1beta.Cluster, + com.google.cloud.alloydb.v1beta.Cluster.Builder, + com.google.cloud.alloydb.v1beta.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); + cluster_ = null; + } + return clusterBuilder_; + } + + @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.alloydb.v1beta.RestoreFromCloudSQLRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) + private static final com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest(); + } + + public static com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreFromCloudSQLRequest 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.alloydb.v1beta.RestoreFromCloudSQLRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequestOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequestOrBuilder.java new file mode 100644 index 000000000000..03e8949aad99 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/RestoreFromCloudSQLRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * 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/alloydb/v1beta/csql_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.alloydb.v1beta; + +public interface RestoreFromCloudSQLRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return Whether the cloudsqlBackupRunSource field is set. + */ + boolean hasCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + * + * @return The cloudsqlBackupRunSource. + */ + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSource getCloudsqlBackupRunSource(); + + /** + * + * + *
+   * Cluster created from CloudSQL backup run.
+   * 
+ * + * .google.cloud.alloydb.v1beta.CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + * + */ + com.google.cloud.alloydb.v1beta.CloudSQLBackupRunSourceOrBuilder + getCloudsqlBackupRunSourceOrBuilder(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The location of the new cluster. For the required format, see the
+   * comment on Cluster.name field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + + /** + * + * + *
+   * Required. ID of the requesting object.
+   * 
+ * + * string cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. + */ + boolean hasCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. + */ + com.google.cloud.alloydb.v1beta.Cluster getCluster(); + + /** + * + * + *
+   * Required. The resource being created
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.alloydb.v1beta.ClusterOrBuilder getClusterOrBuilder(); + + com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest.SourceCase getSourceCase(); +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ServiceProto.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ServiceProto.java index 41c163fdce23..30217d24f445 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ServiceProto.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/ServiceProto.java @@ -72,6 +72,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_ExportClusterResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_ExportClusterResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_SqlImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_ImportClusterRequest_CsvImportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_ImportClusterResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_UpgradeClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -375,7 +391,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ExportClusterResponse\022K\n" + "\017gcs_destination\030\002" + " \001(\0132+.google.cloud.alloydb.v1beta.GcsDestinationB\003\340A\002H\000B\r\n" - + "\013destination\"\341\001\n" + + "\013destination\"\220\004\n" + + "\024ImportClusterRequest\022`\n" + + "\022sql_import_options\030\004 \001(\0132B.google.cloud.alloydb.v1b" + + "eta.ImportClusterRequest.SqlImportOptionsH\000\022`\n" + + "\022csv_import_options\030\007 \001(\0132B.google" + + ".cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptionsH\000\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036alloydb.googleapis.com/Cluster\022\024\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\002\022\025\n" + + "\010database\030\003 \001(\tB\003\340A\001\022\021\n" + + "\004user\030\005 \001(\tB\003\340A\001\032\022\n" + + "\020SqlImportOptions\032\227\001\n" + + "\020CsvImportOptions\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\002\022\024\n" + + "\007columns\030\002 \003(\tB\003\340A\001\022\034\n" + + "\017field_delimiter\030\003 \001(\tB\003\340A\001\022\034\n" + + "\017quote_character\030\004 \001(\tB\003\340A\001\022\035\n" + + "\020escape_character\030\005 \001(\tB\003\340A\001B\020\n" + + "\016import_options\"6\n" + + "\025ImportClusterResponse\022\035\n" + + "\020bytes_downloaded\030\001 \001(\003B\003\340A\002\"\341\001\n" + "\025UpgradeClusterRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036alloydb.googleapis.com/Cluster\022B\n" @@ -385,35 +421,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\004 \001(\010B\003\340A\001\022\021\n" + "\004etag\030\005 \001(\tB\003\340A\001\"\206\013\n" + "\026UpgradeClusterResponse\022J\n" - + "\006status\030\001 \001(\0162:.google" - + ".cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022\017\n" + + "\006status\030\001 \001(\0162:.google.cloud.alloyd" + + "b.v1beta.UpgradeClusterResponse.Status\022\017\n" + "\007message\030\002 \001(\t\022j\n" - + "\027cluster_upgrade_details\030\003 \003(\0132I.google.cloud.all" - + "oydb.v1beta.UpgradeClusterResponse.ClusterUpgradeDetails\032\263\001\n" + + "\027cluster_upgrade_details\030\003 \003(\0132I.google.cloud.alloydb.v1beta.U" + + "pgradeClusterResponse.ClusterUpgradeDetails\032\263\001\n" + "\tStageInfo\022H\n" - + "\005stage\030\001" - + " \001(\01629.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage\022J\n" - + "\006status\030\002 \001(\016" - + "2:.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022\020\n" + + "\005stage\030\001 \001(\01629.googl" + + "e.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage\022J\n" + + "\006status\030\002 \001(\0162:.google.clo" + + "ud.alloydb.v1beta.UpgradeClusterResponse.Status\022\020\n" + "\010logs_url\030\003 \001(\t\032\305\001\n" + "\026InstanceUpgradeDetails\022\014\n" + "\004name\030\001 \001(\t\022R\n" - + "\016upgrade_status\030\002 \001(\0162:.google.cloud.a" - + "lloydb.v1beta.UpgradeClusterResponse.Status\022I\n\r" - + "instance_type\030\003 \001(\01622.google.clou" - + "d.alloydb.v1beta.Instance.InstanceType\032\312\003\n" + + "\016upgrade_status\030\002" + + " \001(\0162:.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022I\n\r" + + "instance_type\030\003" + + " \001(\01622.google.cloud.alloydb.v1beta.Instance.InstanceType\032\312\003\n" + "\025ClusterUpgradeDetails\022\014\n" + "\004name\030\001 \001(\t\022R\n" - + "\016upgrade_status\030\002 \001(\0162:.google.cloud.al" - + "loydb.v1beta.UpgradeClusterResponse.Status\022F\n" + + "\016upgrade_status\030\002" + + " \001(\0162:.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022F\n" + "\014cluster_type\030\003" + " \001(\01620.google.cloud.alloydb.v1beta.Cluster.ClusterType\022F\n" + "\020database_version\030\004" + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022Q\n\n" - + "stage_info\030\005" - + " \003(\0132=.google.cloud.alloydb.v1beta.UpgradeClusterResponse.StageInfo\022l\n" - + "\030instance_upgrade_details\030\006 \003(\0132J.google.cloud.a" - + "lloydb.v1beta.UpgradeClusterResponse.InstanceUpgradeDetails\"\227\001\n" + + "stage_info\030\005 \003(\0132=.goog" + + "le.cloud.alloydb.v1beta.UpgradeClusterResponse.StageInfo\022l\n" + + "\030instance_upgrade_details\030\006 \003(\0132J.google.cloud.alloydb.v1beta" + + ".UpgradeClusterResponse.InstanceUpgradeDetails\"\227\001\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\017\n" + "\013NOT_STARTED\020\004\022\017\n" @@ -421,8 +457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007SUCCESS\020\001\022\n\n" + "\006FAILED\020\002\022\023\n" + "\017PARTIAL_SUCCESS\020\003\022\026\n" - + "\022CANCEL_IN_PROGRESS\020\006\022\r" - + "\n" + + "\022CANCEL_IN_PROGRESS\020\006\022\r\n" + "\tCANCELLED\020\007\"\275\001\n" + "\005Stage\022\025\n" + "\021STAGE_UNSPECIFIED\020\000\022\024\n" @@ -451,10 +486,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\003\340A\001\022\021\n" + "\004etag\030\003 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\"\200\003\n" - + "\025RestoreClusterRequest\022B\n\r" + + "\025RestoreClusterRequest\022B\n" + + "\r" + "backup_source\030\004 \001(\0132).google.cloud.alloydb.v1beta.BackupSourceH\000\022W\n" - + "\030continuous_backup_source\030\010 \001(\01323.googl" - + "e.cloud.alloydb.v1beta.ContinuousBackupSourceH\000\0226\n" + + "\030continuous_backup_source\030\010" + + " \001(\01323.google.cloud.alloydb.v1beta.ContinuousBackupSourceH\000\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A" + " \022\036alloydb.googleapis.com/Cluster\022\027\n\n" + "cluster_id\030\002 \001(\tB\003\340A\002\022:\n" @@ -464,10 +500,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "validate_only\030\006 \001(\010B\003\340A\001B\010\n" + "\006source\"\247\001\n" + "\024ListInstancesRequest\0227\n" - + "\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\022\n" - + "\n" + + "\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\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\"\177\n" @@ -483,40 +518,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022<\n" - + "\010instance\030\003" - + " \001(\0132%.google.cloud.alloydb.v1beta.InstanceB\003\340A\002\022\027\n\n" + + "\010instance\030\003 \001(\0132" + + "%.google.cloud.alloydb.v1beta.InstanceB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\"\346\001\n" + "\036CreateSecondaryInstanceRequest\0227\n" - + "\006parent\030\001 \001(\t" - + "B\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\030\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022<\n" + "\010instance\030\003" + " \001(\0132%.google.cloud.alloydb.v1beta.InstanceB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\005 \001(\010B\003\340A\001\"s\n" + "\026CreateInstanceRequests\022Y\n" - + "\030create_instance_requests\030\001 \003" - + "(\01322.google.cloud.alloydb.v1beta.CreateInstanceRequestB\003\340A\002\"\273\001\n" + + "\030create_instance_requests\030\001 \003(\01322.google.c" + + "loud.alloydb.v1beta.CreateInstanceRequestB\003\340A\002\"\273\001\n" + "\033BatchCreateInstancesRequest\0227\n" + "\006parent\030\001 \001(" + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Instance\022J\n" - + "\010requests\030\002" - + " \001(\01323.google.cloud.alloydb.v1beta.CreateInstanceRequestsB\003\340A\002\022\027\n\n" + + "\010requests\030\002 \001(\01323.goog" + + "le.cloud.alloydb.v1beta.CreateInstanceRequestsB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"X\n" + "\034BatchCreateInstancesResponse\0228\n" + "\tinstances\030\001 \003(\0132%.google.cloud.alloydb.v1beta.Instance\"\225\002\n" + "\034BatchCreateInstancesMetadata\022\030\n" + "\020instance_targets\030\001 \003(\t\022j\n" - + "\021instance_statuses\030\002 \003(\0132O.google.cloud" - + ".alloydb.v1beta.BatchCreateInstancesMetadata.InstanceStatusesEntry\032o\n" + + "\021instance_statuses\030\002 \003(\0132O.google.cloud.alloydb.v1be" + + "ta.BatchCreateInstancesMetadata.InstanceStatusesEntry\032o\n" + "\025InstanceStatusesEntry\022\013\n" + "\003key\030\001 \001(\t\022E\n" - + "\005value\030\002 \001(\0132" - + "6.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus:\0028\001\"\330\002\n" + + "\005value\030\002 \001(\01326.google.clou" + + "d.alloydb.v1beta.BatchCreateInstanceStatus:\0028\001\"\330\002\n" + "\031BatchCreateInstanceStatus\022K\n" - + "\005state\030\001 \001(\0162<.google.cloud." - + "alloydb.v1beta.BatchCreateInstanceStatus.State\022\021\n" + + "\005state\030\001" + + " \001(\0162<.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus.State\022\021\n" + "\terror_msg\030\002 \001(\t\022!\n" + "\005error\030\004 \001(\0132\022.google.rpc.Status\022@\n" + "\004type\030\003 \001(\01622.google.cloud.alloydb.v1beta.Instance.InstanceType\"v\n" @@ -544,11 +579,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027FailoverInstanceRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\027\n\n" - + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + + "request_id\030\002 \001(\tB\003\340A\001\022\032\n" + + "\r" + "validate_only\030\003 \001(\010B\003\340A\001\"\212\002\n" + "\022InjectFaultRequest\022R\n\n" - + "fault_type\030\001 \001(" - + "\01629.google.cloud.alloydb.v1beta.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + + "fault_type\030\001 \001(\01629.google.cl" + + "oud.alloydb.v1beta.InjectFaultRequest.FaultTypeB\003\340A\002\0225\n" + "\004name\030\002 \001(\tB\'\340A\002\372A!\n" + "\037alloydb.googleapis.com/Instance\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\022\032\n\r" @@ -572,15 +608,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017user_credential\"\224\001\n" + "\022ExecuteSqlResponse\022;\n" + "\013sql_results\030\001 \003(\0132&.google.cloud.alloydb.v1beta.SqlResult\022A\n" - + "\010metadata\030\003 \001" - + "(\0132/.google.cloud.alloydb.v1beta.ExecuteSqlMetadata\"\214\002\n" + + "\010metadata\030\003 \001(\0132/.google.c" + + "loud.alloydb.v1beta.ExecuteSqlMetadata\"\214\002\n" + "\022ExecuteSqlMetadata\022\017\n" + "\007message\030\001 \001(\t\022\026\n" + "\016partial_result\030\002 \001(\010\022C\n" + " sql_statement_execution_duration\030\003" + " \001(\0132\031.google.protobuf.Duration\022F\n" - + "\006status\030\004 \001(\016" - + "26.google.cloud.alloydb.v1beta.ExecuteSqlMetadata.Status\"@\n" + + "\006status\030\004 \001(\01626.google.clo" + + "ud.alloydb.v1beta.ExecuteSqlMetadata.Status\"@\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\006\n" + "\002OK\020\001\022\013\n" @@ -620,15 +656,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035alloydb.googleapis.com/Backup\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\022\021\n" - + "\004etag\030\004 \001(\tB\003\340A\001\"\220\001\n" + + "\004etag\030\004 \001(\tB\003\340A\001\"\336\001\n" + "!ListSupportedDatabaseFlagsRequest\022D\n" + "\006parent\030\001 \001(" + "\tB4\340A\002\372A.\022,alloydb.googleapis.com/SupportedDatabaseFlag\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\223\001\n" + + "page_token\030\003 \001(\t\022L\n" + + "\005scope\030\006 \001(\01628" + + ".google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ScopeB\003\340A\001\"\223\001\n" + "\"ListSupportedDatabaseFlagsResponse\022T\n" - + "\030supported_database_flags\030\001 \003(\01322.google.c" - + "loud.alloydb.v1beta.SupportedDatabaseFlag\022\027\n" + + "\030supported_database_flags\030\001" + + " \003(\01322.google.cloud.alloydb.v1beta.SupportedDatabaseFlag\022\027\n" + "\017next_page_token\030\002 \001(\t\"\377\001\n" + " GenerateClientCertificateRequest\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A \n" @@ -648,12 +686,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037alloydb.googleapis.com/Instance\022\027\n\n" + "request_id\030\002 \001(\tB\003\340A\001\"\263\004\n" + "\021OperationMetadata\022i\n" - + "\037batch_create_instances_metadata\030\010 \001(\01329.google.cloud." - + "alloydb.v1beta.BatchCreateInstancesMetadataB\003\340A\003H\000\022X\n" - + "\026promote_cluster_status\030\t \001" - + "(\01321.google.cloud.alloydb.v1beta.PromoteClusterStatusB\003\340A\003H\000\022X\n" + + "\037batch_create_instances_metadata\030\010" + + " \001(\01329.google.cloud.alloydb.v1beta.BatchCreateInstancesMetadataB\003\340A\003H\000\022X\n" + + "\026promote_cluster_status\030\t \001(\01321.google.clo" + + "ud.alloydb.v1beta.PromoteClusterStatusB\003\340A\003H\000\022X\n" + "\026upgrade_cluster_status\030\n" - + " \001(\01321.google.cloud.alloydb.v1beta.UpgradeClusterStatusB\003\340A\003H\000\0224\n" + + " \001(\01321." + + "google.cloud.alloydb.v1beta.UpgradeClusterStatusB\003\340A\003H\000\0224\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006target\030\003 \001(\tB\003\340A\003\022\021\n" @@ -663,34 +702,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013api_version\030\007 \001(\tB\003\340A\003B\022\n" + "\020request_specific\"\364\001\n" + "\024PromoteClusterStatus\022K\n" - + "\005state\030\001" - + " \001(\01627.google.cloud.alloydb.v1beta.PromoteClusterStatus.StateB\003\340A\003\"\216\001\n" + + "\005state\030\001 \001(\01627.googl" + + "e.cloud.alloydb.v1beta.PromoteClusterStatus.StateB\003\340A\003\"\216\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022&\n" + "\"PROMOTE_CLUSTER_AVAILABLE_FOR_READ\020\001\022\'\n" + "#PROMOTE_CLUSTER_AVAILABLE_FOR_WRITE\020\002\022\035\n" + "\031PROMOTE_CLUSTER_COMPLETED\020\003\"\371\006\n" + "\024UpgradeClusterStatus\022I\n" - + "\005state\030\001" - + " \001(\0162:.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022\023\n" + + "\005state\030\001 \001(\0162" + + ":.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status\022\023\n" + "\013cancellable\030\002 \001(\010\022D\n" - + "\016source_version\030\003 \001(\0162" - + ",.google.cloud.alloydb.v1beta.DatabaseVersion\022D\n" + + "\016source_version\030\003" + + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022D\n" + "\016target_version\030\004" + " \001(\0162,.google.cloud.alloydb.v1beta.DatabaseVersion\022M\n" - + "\006stages\030\005" - + " \003(\0132=.google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus\032\271\002\n" + + "\006stages\030\005 \003(\0132=.g" + + "oogle.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus\032\271\002\n" + "\013StageStatus\022|\n" - + "\033read_pool_instances_upgrade\030\013 \001(\0132U.google.cloud.alloydb.v1beta.Up" - + "gradeClusterStatus.ReadPoolInstancesUpgradeStageStatusH\000\022H\n" - + "\005stage\030\001 \001(\01629.google" - + ".cloud.alloydb.v1beta.UpgradeClusterResponse.Stage\022I\n" - + "\005state\030\002 \001(\0162:.google.cloud" - + ".alloydb.v1beta.UpgradeClusterResponse.StatusB\027\n" + + "\033read_pool_instances_upgrade\030\013 \001(\0132U.googl" + + "e.cloud.alloydb.v1beta.UpgradeClusterSta" + + "tus.ReadPoolInstancesUpgradeStageStatusH\000\022H\n" + + "\005stage\030\001" + + " \001(\01629.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Stage\022I\n" + + "\005state\030\002" + + " \001(\0162:.google.cloud.alloydb.v1beta.UpgradeClusterResponse.StatusB\027\n" + "\025stage_specific_status\032\351\001\n" + "#ReadPoolInstancesUpgradeStageStatus\022r\n\r" - + "upgrade_stats\030\001 \001(\0132[.google.cloud.alloydb.v1b" - + "eta.UpgradeClusterStatus.ReadPoolInstancesUpgradeStageStatus.Stats\032N\n" + + "upgrade_stats\030\001 \001(\0132[.google.cloud.alloydb.v1beta.UpgradeClus" + + "terStatus.ReadPoolInstancesUpgradeStageStatus.Stats\032N\n" + "\005Stats\022\023\n" + "\013not_started\030\001 \001(\005\022\017\n" + "\007ongoing\030\002 \001(\005\022\017\n" @@ -731,204 +771,210 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(\tB\003\340A\001\022\032\n\r" + "validate_only\030\003 \001(\010B\003\340A\001\"\225\001\n" + "\024ListDatabasesRequest\0227\n" - + "\006parent\030\001 \001(\t" - + "B\'\340A\002\372A!\022\037alloydb.googleapis.com/Database\022\026\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037alloydb.googleapis.com/Database\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\"j\n" + "\025ListDatabasesResponse\0228\n" + "\tdatabases\030\001 \003(\0132%.google.cloud.alloydb.v1beta.Database\022\027\n" - + "\017next_page_token\030\002 \001(\t2\306=\n" + + "\017next_page_token\030\002 \001(\t2\271?\n" + "\014AlloyDBAdmin\022\266\001\n" - + "\014ListClusters\0220.google.cloud.alloydb.v1b" - + "eta.ListClustersRequest\0321.google.cloud.a" - + "lloydb.v1beta.ListClustersResponse\"A\332A\006p" - + "arent\202\323\344\223\0022\0220/v1beta/{parent=projects/*/locations/*}/clusters\022\243\001\n\n" - + "GetCluster\022..google.cloud.alloydb.v1beta.GetClusterReq" - + "uest\032$.google.cloud.alloydb.v1beta.Clust" - + "er\"?\332A\004name\202\323\344\223\0022\0220/v1beta/{name=projects/*/locations/*/clusters/*}\022\337\001\n\r" - + "CreateCluster\0221.google.cloud.alloydb.v1beta.Crea" - + "teClusterRequest\032\035.google.longrunning.Operation\"|\312A\034\n" - + "\007Cluster\022\021OperationMetadata" - + "\332A\031parent,cluster,cluster_id\202\323\344\223\002;\"0/v1b" - + "eta/{parent=projects/*/locations/*}/clusters:\007cluster\022\341\001\n\r" - + "UpdateCluster\0221.google" - + ".cloud.alloydb.v1beta.UpdateClusterRequest\032\035.google.longrunning.Operation\"~\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\023cluster,upd" - + "ate_mask\202\323\344\223\002C28/v1beta/{cluster.name=pr" - + "ojects/*/locations/*/clusters/*}:\007cluster\022\231\002\n\r" - + "ExportCluster\0221.google.cloud.alloy" - + "db.v1beta.ExportClusterRequest\032\035.google.longrunning.Operation\"\265\001\312A*\n" - + "\025ExportClusterResponse\022\021OperationMetadata\332ACname,gcs" - + "_destination,database,csv_export_options" - + ",sql_export_options\202\323\344\223\002<\"7/v1beta/{name" - + "=projects/*/locations/*/clusters/*}:export:\001*\022\346\001\n" - + "\016UpgradeCluster\0222.google.cloud." - + "alloydb.v1beta.UpgradeClusterRequest\032\035.google.longrunning.Operation\"\200\001\312A+\n" - + "\026UpgradeClusterResponse\022\021OperationMetadata\332A\014n" - + "ame,version\202\323\344\223\002=28/v1beta/{name=project" - + "s/*/locations/*/clusters/*}:upgrade:\001*\022\317\001\n\r" - + "DeleteCluster\0221.google.cloud.alloydb." - + "v1beta.DeleteClusterRequest\032\035.google.longrunning.Operation\"l\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0022*0" - + "/v1beta/{name=projects/*/locations/*/clusters/*}\022\316\001\n" - + "\016PromoteCluster\0222.google.clo" - + "ud.alloydb.v1beta.PromoteClusterRequest\032\035.google.longrunning.Operation\"i\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\004name\202\323\344\223\002=\"8/v" - + "1beta/{name=projects/*/locations/*/clusters/*}:promote:\001*\022\327\001\n" - + "\021SwitchoverCluster\0225.google.cloud.alloydb.v1beta.Switchover" - + "ClusterRequest\032\035.google.longrunning.Operation\"l\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A" - + "\004name\202\323\344\223\002@\";/v1beta/{name=projects/*/locations/*/clusters/*}:switchover:\001*\022\307\001\n" - + "\016RestoreCluster\0222.google.cloud.alloydb.v1" - + "beta.RestoreClusterRequest\032\035.google.longrunning.Operation\"b\312A\034\n" - + "\007Cluster\022\021OperationMetadata\202\323\344\223\002=\"8/v1beta/{parent=projec" - + "ts/*/locations/*}/clusters:restore:\001*\022\202\002\n" - + "\026CreateSecondaryCluster\022:.google.cloud.alloydb.v1beta.CreateSecondaryClusterReq" - + "uest\032\035.google.longrunning.Operation\"\214\001\312A\034\n" - + "\007Cluster\022\021OperationMetadata\332A\031parent,c" - + "luster,cluster_id\202\323\344\223\002K\"@/v1beta/{parent" - + "=projects/*/locations/*}/clusters:createsecondary:\007cluster\022\305\001\n\r" - + "ListInstances\0221.google.cloud.alloydb.v1beta.ListInstances" - + "Request\0322.google.cloud.alloydb.v1beta.Li" - + "stInstancesResponse\"M\332A\006parent\202\323\344\223\002>\022\022*\022\022*\332A\004name\202\323\344\223\0021\022" - + "//v1beta/{name=projects/*/locations/*/ba" - + "ckups/*}\022\330\001\n\014CreateBackup\0220.google.cloud" - + ".alloydb.v1beta.CreateBackupRequest\032\035.go" - + "ogle.longrunning.Operation\"w\312A\033\n\006Backup\022" - + "\021OperationMetadata\332A\027parent,backup,backu" - + "p_id\202\323\344\223\0029\"//v1beta/{parent=projects/*/l" - + "ocations/*}/backups:\006backup\022\332\001\n\014UpdateBa" - + "ckup\0220.google.cloud.alloydb.v1beta.Updat" - + "eBackupRequest\032\035.google.longrunning.Oper" - + "ation\"y\312A\033\n\006Backup\022\021OperationMetadata\332A\022" - + "backup,update_mask\202\323\344\223\002@26/v1beta/{backu" - + "p.name=projects/*/locations/*/backups/*}" - + ":\006backup\022\314\001\n\014DeleteBackup\0220.google.cloud" - + ".alloydb.v1beta.DeleteBackupRequest\032\035.go" - + "ogle.longrunning.Operation\"k\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0021*//v1beta/{name=projects/*/locatio" - + "ns/*/backups/*}\022\356\001\n\032ListSupportedDatabas" - + "eFlags\022>.google.cloud.alloydb.v1beta.Lis" - + "tSupportedDatabaseFlagsRequest\032?.google." - + "cloud.alloydb.v1beta.ListSupportedDataba" - + "seFlagsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1bet" - + "a/{parent=projects/*/locations/*}/suppor" - + "tedDatabaseFlags\022\374\001\n\031GenerateClientCerti" - + "ficate\022=.google.cloud.alloydb.v1beta.Gen" - + "erateClientCertificateRequest\032>.google.c" - + "loud.alloydb.v1beta.GenerateClientCertif" - + "icateResponse\"`\332A\006parent\202\323\344\223\002Q\"L/v1beta/" + + "es/*}:injectFault:\001*\022\335\001\n\017RestartInstance" + + "\0223.google.cloud.alloydb.v1beta.RestartIn" + + "stanceRequest\032\035.google.longrunning.Opera" + + "tion\"v\312A\035\n\010Instance\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002I\"D/v1beta/{name=projects/*/lo" + + "cations/*/clusters/*/instances/*}:restar" + + "t:\001*\022\366\001\n\nExecuteSql\022..google.cloud.alloy" + + "db.v1beta.ExecuteSqlRequest\032/.google.clo" + + "ud.alloydb.v1beta.ExecuteSqlResponse\"\206\001\332" + + "A-instance,database,user,sql_statement,p" + + "assword\202\323\344\223\002P\"K/v1beta/{instance=project" + + "s/*/locations/*/clusters/*/instances/*}:" + + "executeSql:\001*\022\262\001\n\013ListBackups\022/.google.c" + + "loud.alloydb.v1beta.ListBackupsRequest\0320" + + ".google.cloud.alloydb.v1beta.ListBackups" + + "Response\"@\332A\006parent\202\323\344\223\0021\022//v1beta/{pare" + + "nt=projects/*/locations/*}/backups\022\237\001\n\tG" + + "etBackup\022-.google.cloud.alloydb.v1beta.G" + + "etBackupRequest\032#.google.cloud.alloydb.v" + + "1beta.Backup\">\332A\004name\202\323\344\223\0021\022//v1beta/{na" + + "me=projects/*/locations/*/backups/*}\022\330\001\n" + + "\014CreateBackup\0220.google.cloud.alloydb.v1b" + + "eta.CreateBackupRequest\032\035.google.longrun" + + "ning.Operation\"w\312A\033\n\006Backup\022\021OperationMe" + + "tadata\332A\027parent,backup,backup_id\202\323\344\223\0029\"/" + + "/v1beta/{parent=projects/*/locations/*}/" + + "backups:\006backup\022\332\001\n\014UpdateBackup\0220.googl" + + "e.cloud.alloydb.v1beta.UpdateBackupReque" + + "st\032\035.google.longrunning.Operation\"y\312A\033\n\006" + + "Backup\022\021OperationMetadata\332A\022backup,updat" + + "e_mask\202\323\344\223\002@26/v1beta/{backup.name=proje" + + "cts/*/locations/*/backups/*}:\006backup\022\314\001\n" + + "\014DeleteBackup\0220.google.cloud.alloydb.v1b" + + "eta.DeleteBackupRequest\032\035.google.longrun" + + "ning.Operation\"k\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v1b" + + "eta/{name=projects/*/locations/*/backups" + + "/*}\022\356\001\n\032ListSupportedDatabaseFlags\022>.goo" + + "gle.cloud.alloydb.v1beta.ListSupportedDa" + + "tabaseFlagsRequest\032?.google.cloud.alloyd" + + "b.v1beta.ListSupportedDatabaseFlagsRespo" + + "nse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta/{parent=pr" + + "ojects/*/locations/*}/supportedDatabaseF" + + "lags\022\374\001\n\031GenerateClientCertificate\022=.goo" + + "gle.cloud.alloydb.v1beta.GenerateClientC" + + "ertificateRequest\032>.google.cloud.alloydb" + + ".v1beta.GenerateClientCertificateRespons" + + "e\"`\332A\006parent\202\323\344\223\002Q\"L/v1beta/{parent=proj" + + "ects/*/locations/*/clusters/*}:generateC" + + "lientCertificate:\001*\022\327\001\n\021GetConnectionInf" + + "o\0225.google.cloud.alloydb.v1beta.GetConne" + + "ctionInfoRequest\032+.google.cloud.alloydb." + + "v1beta.ConnectionInfo\"^\332A\006parent\202\323\344\223\002O\022M" + + "/v1beta/{parent=projects/*/locations/*/c" + + "lusters/*/instances/*}/connectionInfo\022\265\001" + + "\n\tListUsers\022-.google.cloud.alloydb.v1bet" + + "a.ListUsersRequest\032..google.cloud.alloyd" + + "b.v1beta.ListUsersResponse\"I\332A\006parent\202\323\344" + + "\223\002:\0228/v1beta/{parent=projects/*/location" + + "s/*/clusters/*}/users\022\242\001\n\007GetUser\022+.goog" + + "le.cloud.alloydb.v1beta.GetUserRequest\032!" + + ".google.cloud.alloydb.v1beta.User\"G\332A\004na" + + "me\202\323\344\223\002:\0228/v1beta/{name=projects/*/locat" + + "ions/*/clusters/*/users/*}\022\275\001\n\nCreateUse" + + "r\022..google.cloud.alloydb.v1beta.CreateUs" + + "erRequest\032!.google.cloud.alloydb.v1beta." + + "User\"\\\332A\023parent,user,user_id\202\323\344\223\002@\"8/v1b" + + "eta/{parent=projects/*/locations/*/clust" + + "ers/*}/users:\004user\022\277\001\n\nUpdateUser\022..goog" + + "le.cloud.alloydb.v1beta.UpdateUserReques" + + "t\032!.google.cloud.alloydb.v1beta.User\"^\332A" + + "\020user,update_mask\202\323\344\223\002E2=/v1beta/{user.n" + + "ame=projects/*/locations/*/clusters/*/us" + + "ers/*}:\004user\022\235\001\n\nDeleteUser\022..google.clo" + + "ud.alloydb.v1beta.DeleteUserRequest\032\026.go" + + "ogle.protobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v1b" + + "eta/{name=projects/*/locations/*/cluster" + + "s/*/users/*}\022\305\001\n\rListDatabases\0221.google." + + "cloud.alloydb.v1beta.ListDatabasesReques" + + "t\0322.google.cloud.alloydb.v1beta.ListData" + + "basesResponse\"M\332A\006parent\202\323\344\223\002>\022\022 + * The scope of the flag. + *
+ * + * Protobuf enum {@code google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope} + */ + public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + DATABASE(1), + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + CONNECTION_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The scope of the flag is not specified. Default is DATABASE.
+     * 
+ * + * SCOPE_UNSPECIFIED = 0; + */ + public static final int SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The flag is a database flag.
+     * 
+ * + * DATABASE = 1; + */ + public static final int DATABASE_VALUE = 1; + + /** + * + * + *
+     * The flag is a connection pool flag.
+     * 
+ * + * CONNECTION_POOL = 2; + */ + public static final int CONNECTION_POOL_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 Scope 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 Scope forNumber(int value) { + switch (value) { + case 0: + return SCOPE_UNSPECIFIED; + case 1: + return DATABASE; + case 2: + return CONNECTION_POOL; + 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 Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope) + } + public interface StringRestrictionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions) @@ -2249,6 +2411,56 @@ public RestrictionsCase getRestrictionsCase() { return RestrictionsCase.forNumber(restrictionsCase_); } + private int recommendedValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object recommendedValue_; + + public enum RecommendedValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOMMENDED_STRING_VALUE(10), + RECOMMENDED_INTEGER_VALUE(11), + RECOMMENDEDVALUE_NOT_SET(0); + private final int value; + + private RecommendedValueCase(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 RecommendedValueCase valueOf(int value) { + return forNumber(value); + } + + public static RecommendedValueCase forNumber(int value) { + switch (value) { + case 10: + return RECOMMENDED_STRING_VALUE; + case 11: + return RECOMMENDED_INTEGER_VALUE; + case 0: + return RECOMMENDEDVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + public static final int STRING_RESTRICTIONS_FIELD_NUMBER = 7; /** @@ -2381,6 +2593,133 @@ public boolean hasIntegerRestrictions() { .getDefaultInstance(); } + public static final int RECOMMENDED_STRING_VALUE_FIELD_NUMBER = 10; + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.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 (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER = 11; + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2668,13 +3007,52 @@ public boolean getRequiresDbRestart() { return requiresDbRestart_; } - private byte memoizedIsInitialized = -1; + public static final int SCOPE_FIELD_NUMBER = 9; + private int scope_ = 0; + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.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; @@ -2718,6 +3096,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, scope_); + } + if (recommendedValueCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + output.writeMessage(11, (com.google.protobuf.Int64Value) recommendedValue_); + } getUnknownFields().writeTo(output); } @@ -2771,6 +3160,19 @@ public int getSerializedSize() { (com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions) restrictions_); } + if (scope_ + != com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); + } + if (recommendedValueCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, recommendedValue_); + } + if (recommendedValueCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.protobuf.Int64Value) recommendedValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2793,6 +3195,7 @@ public boolean equals(final java.lang.Object obj) { if (getAcceptsMultipleValues() != other.getAcceptsMultipleValues()) return false; if (!supportedDbVersions_.equals(other.supportedDbVersions_)) return false; if (getRequiresDbRestart() != other.getRequiresDbRestart()) return false; + if (scope_ != other.scope_) return false; if (!getRestrictionsCase().equals(other.getRestrictionsCase())) return false; switch (restrictionsCase_) { case 7: @@ -2804,6 +3207,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getRecommendedValueCase().equals(other.getRecommendedValueCase())) return false; + switch (recommendedValueCase_) { + case 10: + if (!getRecommendedStringValue().equals(other.getRecommendedStringValue())) return false; + break; + case 11: + if (!getRecommendedIntegerValue().equals(other.getRecommendedIntegerValue())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2829,6 +3243,8 @@ public int hashCode() { } hash = (37 * hash) + REQUIRES_DB_RESTART_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiresDbRestart()); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; switch (restrictionsCase_) { case 7: hash = (37 * hash) + STRING_RESTRICTIONS_FIELD_NUMBER; @@ -2841,6 +3257,18 @@ public int hashCode() { case 0: default: } + switch (recommendedValueCase_) { + case 10: + hash = (37 * hash) + RECOMMENDED_STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedStringValue().hashCode(); + break; + case 11: + hash = (37 * hash) + RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedIntegerValue().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2992,15 +3420,21 @@ public Builder clear() { if (integerRestrictionsBuilder_ != null) { integerRestrictionsBuilder_.clear(); } + if (recommendedIntegerValueBuilder_ != null) { + recommendedIntegerValueBuilder_.clear(); + } name_ = ""; flagName_ = ""; valueType_ = 0; acceptsMultipleValues_ = false; supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); requiresDbRestart_ = false; + scope_ = 0; restrictionsCase_ = 0; restrictions_ = null; + recommendedValueCase_ = 0; + recommendedValue_ = null; return this; } @@ -3039,30 +3473,33 @@ public com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag result) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = java.util.Collections.unmodifiableList(supportedDbVersions_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } result.supportedDbVersions_ = supportedDbVersions_; } private void buildPartial0(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.flagName_ = flagName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.valueType_ = valueType_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.acceptsMultipleValues_ = acceptsMultipleValues_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.requiresDbRestart_ = requiresDbRestart_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.scope_ = scope_; + } } private void buildPartialOneofs(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag result) { @@ -3074,6 +3511,11 @@ private void buildPartialOneofs(com.google.cloud.alloydb.v1beta.SupportedDatabas if (restrictionsCase_ == 8 && integerRestrictionsBuilder_ != null) { result.restrictions_ = integerRestrictionsBuilder_.build(); } + result.recommendedValueCase_ = recommendedValueCase_; + result.recommendedValue_ = this.recommendedValue_; + if (recommendedValueCase_ == 11 && recommendedIntegerValueBuilder_ != null) { + result.recommendedValue_ = recommendedIntegerValueBuilder_.build(); + } } @java.lang.Override @@ -3124,12 +3566,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag o return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getFlagName().isEmpty()) { flagName_ = other.flagName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (other.valueType_ != 0) { @@ -3141,7 +3583,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag o if (!other.supportedDbVersions_.isEmpty()) { if (supportedDbVersions_.isEmpty()) { supportedDbVersions_ = other.supportedDbVersions_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSupportedDbVersionsIsMutable(); supportedDbVersions_.addAll(other.supportedDbVersions_); @@ -3151,6 +3593,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag o if (other.getRequiresDbRestart() != false) { setRequiresDbRestart(other.getRequiresDbRestart()); } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } switch (other.getRestrictionsCase()) { case STRING_RESTRICTIONS: { @@ -3167,6 +3612,24 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag o break; } } + switch (other.getRecommendedValueCase()) { + case RECOMMENDED_STRING_VALUE: + { + recommendedValueCase_ = 10; + recommendedValue_ = other.recommendedValue_; + onChanged(); + break; + } + case RECOMMENDED_INTEGER_VALUE: + { + mergeRecommendedIntegerValue(other.getRecommendedIntegerValue()); + break; + } + case RECOMMENDEDVALUE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3196,25 +3659,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { flagName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 24: { valueType_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 24 case 32: { acceptsMultipleValues_ = input.readBool(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 32 case 40: @@ -3239,7 +3702,7 @@ public Builder mergeFrom( case 48: { requiresDbRestart_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 48 case 58: @@ -3256,6 +3719,26 @@ public Builder mergeFrom( restrictionsCase_ = 8; break; } // case 66 + case 72: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + recommendedValueCase_ = 10; + recommendedValue_ = s; + break; + } // case 82 + case 90: + { + input.readMessage( + getRecommendedIntegerValueFieldBuilder().getBuilder(), extensionRegistry); + recommendedValueCase_ = 11; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3287,6 +3770,20 @@ public Builder clearRestrictions() { return this; } + private int recommendedValueCase_ = 0; + private java.lang.Object recommendedValue_; + + public RecommendedValueCase getRecommendedValueCase() { + return RecommendedValueCase.forNumber(recommendedValueCase_); + } + + public Builder clearRecommendedValue() { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + return this; + } + private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< @@ -3795,6 +4292,363 @@ public Builder clearIntegerRestrictions() { return integerRestrictionsBuilder_; } + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedStringValue() { + return recommendedValueCase_ == 10; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + @java.lang.Override + public java.lang.String getRecommendedStringValue() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (recommendedValueCase_ == 10) { + recommendedValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRecommendedStringValueBytes() { + java.lang.Object ref = ""; + if (recommendedValueCase_ == 10) { + ref = recommendedValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (recommendedValueCase_ == 10) { + recommendedValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @return This builder for chaining. + */ + public Builder clearRecommendedStringValue() { + if (recommendedValueCase_ == 10) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for a STRING flag.
+     * 
+ * + * string recommended_string_value = 10; + * + * @param value The bytes for recommendedStringValue to set. + * @return This builder for chaining. + */ + public Builder setRecommendedStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recommendedValueCase_ = 10; + recommendedValue_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + recommendedIntegerValueBuilder_; + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + @java.lang.Override + public boolean hasRecommendedIntegerValue() { + return recommendedValueCase_ == 11; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + @java.lang.Override + public com.google.protobuf.Int64Value getRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } else { + if (recommendedValueCase_ == 11) { + return recommendedIntegerValueBuilder_.getMessage(); + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedValue_ = value; + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder setRecommendedIntegerValue( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedIntegerValueBuilder_ == null) { + recommendedValue_ = builderForValue.build(); + onChanged(); + } else { + recommendedIntegerValueBuilder_.setMessage(builderForValue.build()); + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder mergeRecommendedIntegerValue(com.google.protobuf.Int64Value value) { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11 + && recommendedValue_ != com.google.protobuf.Int64Value.getDefaultInstance()) { + recommendedValue_ = + com.google.protobuf.Int64Value.newBuilder( + (com.google.protobuf.Int64Value) recommendedValue_) + .mergeFrom(value) + .buildPartial(); + } else { + recommendedValue_ = value; + } + onChanged(); + } else { + if (recommendedValueCase_ == 11) { + recommendedIntegerValueBuilder_.mergeFrom(value); + } else { + recommendedIntegerValueBuilder_.setMessage(value); + } + } + recommendedValueCase_ = 11; + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public Builder clearRecommendedIntegerValue() { + if (recommendedIntegerValueBuilder_ == null) { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + onChanged(); + } + } else { + if (recommendedValueCase_ == 11) { + recommendedValueCase_ = 0; + recommendedValue_ = null; + } + recommendedIntegerValueBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedIntegerValueBuilder() { + return getRecommendedIntegerValueFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + @java.lang.Override + public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder() { + if ((recommendedValueCase_ == 11) && (recommendedIntegerValueBuilder_ != null)) { + return recommendedIntegerValueBuilder_.getMessageOrBuilder(); + } else { + if (recommendedValueCase_ == 11) { + return (com.google.protobuf.Int64Value) recommendedValue_; + } + return com.google.protobuf.Int64Value.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The recommended value for an INTEGER flag.
+     * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + getRecommendedIntegerValueFieldBuilder() { + if (recommendedIntegerValueBuilder_ == null) { + if (!(recommendedValueCase_ == 11)) { + recommendedValue_ = com.google.protobuf.Int64Value.getDefaultInstance(); + } + recommendedIntegerValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder>( + (com.google.protobuf.Int64Value) recommendedValue_, + getParentForChildren(), + isClean()); + recommendedValue_ = null; + } + recommendedValueCase_ = 11; + onChanged(); + return recommendedIntegerValueBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -3866,7 +4720,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3886,7 +4740,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3911,7 +4765,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3984,7 +4838,7 @@ public Builder setFlagName(java.lang.String value) { throw new NullPointerException(); } flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4003,7 +4857,7 @@ public Builder setFlagName(java.lang.String value) { */ public Builder clearFlagName() { flagName_ = getDefaultInstance().getFlagName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4027,7 +4881,7 @@ public Builder setFlagNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); flagName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4052,7 +4906,7 @@ public int getValueTypeValue() { */ public Builder setValueTypeValue(int value) { valueType_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4082,7 +4936,7 @@ public Builder setValueType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; valueType_ = value.getNumber(); onChanged(); return this; @@ -4094,7 +4948,7 @@ public Builder setValueType( * @return This builder for chaining. */ public Builder clearValueType() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); valueType_ = 0; onChanged(); return this; @@ -4135,7 +4989,7 @@ public boolean getAcceptsMultipleValues() { public Builder setAcceptsMultipleValues(boolean value) { acceptsMultipleValues_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4153,7 +5007,7 @@ public Builder setAcceptsMultipleValues(boolean value) { * @return This builder for chaining. */ public Builder clearAcceptsMultipleValues() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); acceptsMultipleValues_ = false; onChanged(); return this; @@ -4163,9 +5017,9 @@ public Builder clearAcceptsMultipleValues() { java.util.Collections.emptyList(); private void ensureSupportedDbVersionsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { supportedDbVersions_ = new java.util.ArrayList(supportedDbVersions_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; } } @@ -4299,7 +5153,7 @@ public Builder addAllSupportedDbVersions( */ public Builder clearSupportedDbVersions() { supportedDbVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4434,7 +5288,7 @@ public boolean getRequiresDbRestart() { public Builder setRequiresDbRestart(boolean value) { requiresDbRestart_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4454,12 +5308,109 @@ public Builder setRequiresDbRestart(boolean value) { * @return This builder for chaining. */ public Builder clearRequiresDbRestart() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); requiresDbRestart_ = false; onChanged(); return this; } + private int scope_ = 0; + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope() { + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope result = + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.forNumber(scope_); + return result == null + ? com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + scope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The scope of the flag.
+     * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000400); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagOrBuilder.java index b77fa06de504..108e33d8df65 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/java/com/google/cloud/alloydb/v1beta/SupportedDatabaseFlagOrBuilder.java @@ -113,6 +113,82 @@ public interface SupportedDatabaseFlagOrBuilder com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder(); + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return Whether the recommendedStringValue field is set. + */ + boolean hasRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The recommendedStringValue. + */ + java.lang.String getRecommendedStringValue(); + + /** + * + * + *
+   * The recommended value for a STRING flag.
+   * 
+ * + * string recommended_string_value = 10; + * + * @return The bytes for recommendedStringValue. + */ + com.google.protobuf.ByteString getRecommendedStringValueBytes(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return Whether the recommendedIntegerValue field is set. + */ + boolean hasRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + * + * @return The recommendedIntegerValue. + */ + com.google.protobuf.Int64Value getRecommendedIntegerValue(); + + /** + * + * + *
+   * The recommended value for an INTEGER flag.
+   * 
+ * + * .google.protobuf.Int64Value recommended_integer_value = 11; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder(); + /** * * @@ -282,5 +358,34 @@ public interface SupportedDatabaseFlagOrBuilder */ boolean getRequiresDbRestart(); + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + + /** + * + * + *
+   * The scope of the flag.
+   * 
+ * + * .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9; + * + * @return The scope. + */ + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope getScope(); + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase(); + + com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.RecommendedValueCase + getRecommendedValueCase(); } diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/csql_service.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/csql_service.proto new file mode 100644 index 000000000000..d107bcf61804 --- /dev/null +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/csql_service.proto @@ -0,0 +1,79 @@ +// 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.cloud.alloydb.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/alloydb/v1beta/csql_resources.proto"; +import "google/cloud/alloydb/v1beta/resources.proto"; +import "google/cloud/alloydb/v1beta/service.proto"; +import "google/longrunning/operations.proto"; + +option csharp_namespace = "Google.Cloud.AlloyDb.V1Beta"; +option go_package = "cloud.google.com/go/alloydb/apiv1beta/alloydbpb;alloydbpb"; +option java_multiple_files = true; +option java_outer_classname = "CSQLServiceProto"; +option java_package = "com.google.cloud.alloydb.v1beta"; +option php_namespace = "Google\\Cloud\\AlloyDb\\V1beta"; +option ruby_package = "Google::Cloud::AlloyDB::V1beta"; + +// Service for interactions with CloudSQL. +service AlloyDBCSQLAdmin { + option (google.api.default_host) = "alloydb.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Restores an AlloyDB cluster from a CloudSQL resource. + rpc RestoreFromCloudSQL(RestoreFromCloudSQLRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/clusters:restoreFromCloudSQL" + body: "*" + }; + option (google.api.method_signature) = "parent,cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "OperationMetadata" + }; + } +} + +// Message for registering Restoring from CloudSQL resource. +message RestoreFromCloudSQLRequest { + // The source CloudSQL resource to restore from. + oneof source { + // Cluster created from CloudSQL backup run. + CloudSQLBackupRunSource cloudsql_backup_run_source = 101; + } + + // Required. The location of the new cluster. For the required format, see the + // comment on Cluster.name field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "alloydb.googleapis.com/Cluster" + } + ]; + + // Required. ID of the requesting object. + string cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource being created + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/gemini.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/gemini.proto index d0ba3ea3cebc..018fff4bc1b3 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/gemini.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/gemini.proto @@ -26,6 +26,15 @@ option java_package = "com.google.cloud.alloydb.v1beta"; option php_namespace = "Google\\Cloud\\AlloyDb\\V1beta"; option ruby_package = "Google::Cloud::AlloyDB::V1beta"; +// Enum representing the type of GCA entitlement assigned to a resource. +enum GCAEntitlementType { + // No GCA entitlement is assigned. + GCA_ENTITLEMENT_TYPE_UNSPECIFIED = 0; + + // The resource is entitled to the GCA Standard Tier. + GCA_STANDARD = 1; +} + // Cluster level configuration parameters related to the Gemini in Databases // add-on. message GeminiClusterConfig { @@ -45,3 +54,11 @@ message GeminiInstanceConfig { // the Admin Control Center (ACC) and cannot be toggled using AlloyDB's APIs. bool entitled = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Instance level configuration parameters related to the Gemini Cloud Assist +// product. +message GCAInstanceConfig { + // Output only. Represents the GCA entitlement state of the instance. + GCAEntitlementType gca_entitlement = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto index d91d84507d55..0c3180ad53c7 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/resources.proto @@ -311,8 +311,7 @@ message AutomatedBackupPolicy { // Optional. The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -339,8 +338,7 @@ message ContinuousBackupConfig { // The encryption config can be specified to encrypt the // backups with a customer-managed encryption key (CMEK). When this field is - // not specified, the backup will then use default encryption scheme to - // protect the user data. + // not specified, the backup will use the cluster's encryption config. EncryptionConfig encryption_config = 3; } @@ -482,6 +480,11 @@ message Cluster { // Optional. Create an instance that allows connections from Private Service // Connect endpoints to the instance. bool psc_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The project number that needs to be allowlisted on the + // network attachment to enable outbound connectivity. + int64 service_owned_project_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains information and all metadata related to TRIAL clusters. @@ -740,10 +743,15 @@ message Instance { message MachineConfig { // The number of CPU's in the VM instance. int32 cpu_count = 1; + + // Machine type of the VM instance. E.g. "n2-highmem-4", + // "n2-highmem-8", "c4a-highmem-4-lssd". + // cpu_count must match the number of vCPUs in the machine type. + string machine_type = 4; } // Details of a single node in the instance. - // Nodes in an AlloyDB instance are ephemereal, they can change during + // Nodes in an AlloyDB instance are ephemeral, they can change during // update, failover, autohealing and resize operations. message Node { // Output only. The Compute Engine zone of the VM e.g. "us-central1-b". @@ -801,7 +809,7 @@ message Instance { // Output only. Track wait event types during query execution for an // instance. This flag is turned "on" by default but tracking is enabled // only after observability enabled flag is also turned on. This is - // read-only flag and only modifiable by producer API. + // read-only flag and only modifiable by internal API. optional bool track_wait_event_types = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -861,6 +869,43 @@ message Instance { SslConfig ssl_config = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for setting up a PSC interface to enable outbound + // connectivity. + message PscInterfaceConfig { + // The network attachment resource created in the consumer network to which + // the PSC interface will be linked. This is of the format: + // "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}". + // The network attachment must be in the same region as the instance. + string network_attachment_resource = 1; + } + + // Configuration for setting up PSC service automation. Consumer projects in + // the configs will be allowlisted automatically for the instance. + message PscAutoConnectionConfig { + // The consumer project to which the PSC service automation endpoint will + // be created. + string consumer_project = 1; + + // The consumer network for the PSC service automation, example: + // "projects/vpc-host-project/global/networks/default". + // The consumer network might be hosted a different project than the + // consumer project. + string consumer_network = 2; + + // Output only. The IP address of the PSC service automation endpoint. + string ip_address = 3 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The status of the PSC service automation connection. + string status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the service connection policy. + string consumer_network_status = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { @@ -879,6 +924,17 @@ message Instance { // Output only. The DNS name of the instance for PSC connectivity. // Name convention: ...alloydb-psc.goog string psc_dns_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configurations for setting up PSC interfaces attached to the + // instance which are used for outbound connectivity. Only primary instances + // can have PSC interface attached. Currently we only support 0 or 1 PSC + // interface. + repeated PscInterfaceConfig psc_interface_configs = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configurations for setting up PSC service automation. + repeated PscAutoConnectionConfig psc_auto_connections = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Metadata related to instance-level network configuration. @@ -1128,6 +1184,9 @@ message Instance { (google.api.field_info).format = IPV4, (google.api.field_behavior) = OUTPUT_ONLY ]; + + // Output only. Configuration parameters related to Gemini Cloud Assist. + GCAInstanceConfig gca_config = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ConnectionInfo singleton resource. @@ -1403,6 +1462,18 @@ message SupportedDatabaseFlag { NONE = 4; } + // The scope of the flag. + enum Scope { + // The scope of the flag is not specified. Default is DATABASE. + SCOPE_UNSPECIFIED = 0; + + // The flag is a database flag. + DATABASE = 1; + + // The flag is a connection pool flag. + CONNECTION_POOL = 2; + } + // The restrictions on the flag value per type. oneof restrictions { // Restriction on STRING type value. @@ -1412,6 +1483,15 @@ message SupportedDatabaseFlag { IntegerRestrictions integer_restrictions = 8; } + // The recommended value for the flag by type, if applicable. + oneof recommended_value { + // The recommended value for a STRING flag. + string recommended_string_value = 10; + + // The recommended value for an INTEGER flag. + google.protobuf.Int64Value recommended_integer_value = 11; + } + // The name of the flag resource, following Google Cloud conventions, e.g.: // * projects/{project}/locations/{location}/flags/{flag} // This field currently has no semantic meaning. @@ -1435,6 +1515,9 @@ message SupportedDatabaseFlag { // will automatically restart the database (making sure to satisfy any // availability SLO's). bool requires_db_restart = 6; + + // The scope of the flag. + Scope scope = 9; } // Message describing User object. diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/service.proto b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/service.proto index decb97065f21..c198161f517a 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/service.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/src/main/proto/google/cloud/alloydb/v1beta/service.proto @@ -104,6 +104,21 @@ service AlloyDBAdmin { }; } + // Imports data to the cluster. + // Imperative only. + rpc ImportCluster(ImportClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/clusters/*}:import" + body: "*" + }; + option (google.api.method_signature) = "name,gcs_uri,database,user"; + option (google.longrunning.operation_info) = { + response_type: "ImportClusterResponse" + metadata_type: "OperationMetadata" + }; + } + // Upgrades a single Cluster. // Imperative only. rpc UpgradeCluster(UpgradeClusterRequest) @@ -733,6 +748,76 @@ message ExportClusterResponse { } } +// Import cluster request. +message ImportClusterRequest { + // Options for importing data in SQL format. + message SqlImportOptions {} + + // Options for importing data in CSV format. + message CsvImportOptions { + // Required. The database table to import CSV file into. + string table = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The columns to which CSV data is imported. If not specified, + // all columns of the database table are loaded with CSV data. + repeated string columns = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that separates columns within each row + // (line) of the file. The default is comma. The value of this argument has + // to be a character in Hex ASCII Code. + string field_delimiter = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the quoting character to be used when a data value is + // quoted. The default is double-quote. The value of this argument has to be + // a character in Hex ASCII Code. + string quote_character = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the character that should appear before a data + // character that needs to be escaped. The default is same as quote + // character. The value of this argument has to be a character in Hex ASCII + // Code. + string escape_character = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // oneof field to support various import formats like SQL and CSV. + oneof import_options { + // Options for importing data in SQL format. + SqlImportOptions sql_import_options = 4; + + // Options for importing data in CSV format. + CsvImportOptions csv_import_options = 7; + } + + // Required. The resource name of the cluster. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } + ]; + + // Required. The path to the file in Google Cloud Storage where the source + // file for import will be stored. The URI is in the form + // `gs://bucketName/fileName`. + string gcs_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Name of the database to which the import will be done. + // For import from SQL file, this is required only if the file does not + // specify a database. + // Note - Value provided should be the same as expected from `SELECT + // current_database();` and NOT as a resource reference. + string database = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Database user to be used for importing the data. + // Note - Value provided should be the same as expected from + // `SELECT current_user;` and NOT as a resource reference. + string user = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of import rpc. +message ImportClusterResponse { + // Required. Size of the object downloaded from Google Cloud Storage in bytes. + int64 bytes_downloaded = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Upgrades a cluster. message UpgradeClusterRequest { // Required. The resource name of the cluster. @@ -1748,6 +1833,11 @@ message ListSupportedDatabaseFlagsRequest { // A token identifying a page of results the server should return. string page_token = 3; + + // Optional. The scope for which supported flags are requested. If not + // specified, default is DATABASE. + SupportedDatabaseFlag.Scope scope = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Message for response to listing SupportedDatabaseFlags. @@ -1800,9 +1890,9 @@ message GenerateClientCertificateRequest { // Optional. The public key from the client. string public_key = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. An optional hint to the endpoint to generate a client - // ceritificate that can be used by AlloyDB connectors to exchange additional - // metadata with the server after TLS handshake. + // Optional. An optional hint to the endpoint to generate a client certificate + // that can be used by AlloyDB connectors to exchange additional metadata with + // the server after TLS handshake. bool use_metadata_exchange = 6 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportCluster.java new file mode 100644 index 000000000000..48e7d255fecd --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportCluster.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExportCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncExportCluster { + + public static void main(String[] args) throws Exception { + asyncExportCluster(); + } + + public static void asyncExportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + ApiFuture future = alloyDBAdminClient.exportClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExportCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportClusterLRO.java new file mode 100644 index 000000000000..865e4cfb6f12 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/AsyncExportClusterLRO.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.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExportCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; +import com.google.cloud.alloydb.v1.OperationMetadata; + +public class AsyncExportClusterLRO { + + public static void main(String[] args) throws Exception { + asyncExportClusterLRO(); + } + + public static void asyncExportClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + OperationFuture future = + alloyDBAdminClient.exportClusterOperationCallable().futureCall(request); + // Do something. + ExportClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExportCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportCluster.java new file mode 100644 index 000000000000..55eac5575248 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportCluster.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.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExportCluster_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; + +public class SyncExportCluster { + + public static void main(String[] args) throws Exception { + syncExportCluster(); + } + + public static void syncExportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + ExportClusterResponse response = alloyDBAdminClient.exportClusterAsync(request).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExportCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java new file mode 100644 index 000000000000..7c9683c49091 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java @@ -0,0 +1,57 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExportCluster_ClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; +import com.google.cloud.alloydb.v1.GcsDestination; + +public +class SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions { + + public static void main(String[] args) throws Exception { + syncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions(); + } + + public static void + syncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + ExportClusterResponse response = + alloyDBAdminClient + .exportClusterAsync( + name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExportCluster_ClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java new file mode 100644 index 000000000000..ea1524dfd42f --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java @@ -0,0 +1,57 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ExportCluster_StringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ExportClusterRequest; +import com.google.cloud.alloydb.v1.ExportClusterResponse; +import com.google.cloud.alloydb.v1.GcsDestination; + +public +class SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions { + + public static void main(String[] args) throws Exception { + syncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions(); + } + + public static void + syncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + ExportClusterResponse response = + alloyDBAdminClient + .exportClusterAsync( + name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ExportCluster_StringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportCluster.java new file mode 100644 index 000000000000..bb1b8efcd6da --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportCluster.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.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ImportCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncImportCluster { + + public static void main(String[] args) throws Exception { + asyncImportCluster(); + } + + public static void asyncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ImportCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportClusterLRO.java new file mode 100644 index 000000000000..32f372cf898e --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/AsyncImportClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ImportCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; +import com.google.cloud.alloydb.v1.OperationMetadata; + +public class AsyncImportClusterLRO { + + public static void main(String[] args) throws Exception { + asyncImportClusterLRO(); + } + + public static void asyncImportClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + OperationFuture future = + alloyDBAdminClient.importClusterOperationCallable().futureCall(request); + // Do something. + ImportClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ImportCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportCluster.java new file mode 100644 index 000000000000..5a08c2eb9bb8 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportCluster.java @@ -0,0 +1,49 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ImportCluster_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ImportClusterRequest; +import com.google.cloud.alloydb.v1.ImportClusterResponse; + +public class SyncImportCluster { + + public static void main(String[] args) throws Exception { + syncImportCluster(); + } + + public static void syncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(request).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ImportCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java new file mode 100644 index 000000000000..6b1f4910d4fb --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ImportClusterResponse; + +public class SyncImportClusterClusternameStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterClusternameStringStringString(); + } + + public static void syncImportClusterClusternameStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java new file mode 100644 index 000000000000..7571a947c137 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.ImportClusterResponse; + +public class SyncImportClusterStringStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterStringStringStringString(); + } + + public static void syncImportClusterStringStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeCluster.java new file mode 100644 index 000000000000..c22173108dbe --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeCluster.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.DatabaseVersion; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncUpgradeCluster { + + public static void main(String[] args) throws Exception { + asyncUpgradeCluster(); + } + + public static void asyncUpgradeCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + UpgradeClusterRequest request = + UpgradeClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setVersion(DatabaseVersion.forNumber(0)) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = alloyDBAdminClient.upgradeClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeClusterLRO.java new file mode 100644 index 000000000000..a9f2bc5babd6 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/AsyncUpgradeClusterLRO.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.DatabaseVersion; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; + +public class AsyncUpgradeClusterLRO { + + public static void main(String[] args) throws Exception { + asyncUpgradeClusterLRO(); + } + + public static void asyncUpgradeClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + UpgradeClusterRequest request = + UpgradeClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setVersion(DatabaseVersion.forNumber(0)) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + alloyDBAdminClient.upgradeClusterOperationCallable().futureCall(request); + // Do something. + UpgradeClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeCluster.java new file mode 100644 index 000000000000..28008a6c63bf --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeCluster.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.cloud.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.DatabaseVersion; +import com.google.cloud.alloydb.v1.UpgradeClusterRequest; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; + +public class SyncUpgradeCluster { + + public static void main(String[] args) throws Exception { + syncUpgradeCluster(); + } + + public static void syncUpgradeCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + UpgradeClusterRequest request = + UpgradeClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setVersion(DatabaseVersion.forNumber(0)) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(request).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterClusternameDatabaseversion.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterClusternameDatabaseversion.java new file mode 100644 index 000000000000..be7b84a2a6ed --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterClusternameDatabaseversion.java @@ -0,0 +1,44 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_ClusternameDatabaseversion_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.DatabaseVersion; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; + +public class SyncUpgradeClusterClusternameDatabaseversion { + + public static void main(String[] args) throws Exception { + syncUpgradeClusterClusternameDatabaseversion(); + } + + public static void syncUpgradeClusterClusternameDatabaseversion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + DatabaseVersion version = DatabaseVersion.forNumber(0); + UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(name, version).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_ClusternameDatabaseversion_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterStringDatabaseversion.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterStringDatabaseversion.java new file mode 100644 index 000000000000..6e1ea23a8915 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbadmin/upgradecluster/SyncUpgradeClusterStringDatabaseversion.java @@ -0,0 +1,44 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_StringDatabaseversion_sync] +import com.google.cloud.alloydb.v1.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1.ClusterName; +import com.google.cloud.alloydb.v1.DatabaseVersion; +import com.google.cloud.alloydb.v1.UpgradeClusterResponse; + +public class SyncUpgradeClusterStringDatabaseversion { + + public static void main(String[] args) throws Exception { + syncUpgradeClusterStringDatabaseversion(); + } + + public static void syncUpgradeClusterStringDatabaseversion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + DatabaseVersion version = DatabaseVersion.forNumber(0); + UpgradeClusterResponse response = alloyDBAdminClient.upgradeClusterAsync(name, version).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_StringDatabaseversion_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..74990b20fbb9 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetEndpoint.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..8d5262f4e0ca --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateSetEndpoint.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..1aca14f5bb3e --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder().build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/AsyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..6580eb5c309a --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_GetLocation_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..8e7f2f3f9121 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/getlocation/SyncGetLocation.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_GetLocation_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = alloyDBCSQLAdminClient.getLocation(request); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..e35e330f7d0f --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..d1d46fce3b6b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + alloyDBCSQLAdminClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/SyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..7a1d53d27672 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/listlocations/SyncListLocations.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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_ListLocations_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..1931ea0c9faa --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.LocationName; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQL(); + } + + public static void asyncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java new file mode 100644 index 000000000000..ec554669dfbd --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.LocationName; +import com.google.cloud.alloydb.v1.OperationMetadata; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; + +public class AsyncRestoreFromCloudSQLLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQLLRO(); + } + + public static void asyncRestoreFromCloudSQLLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + OperationFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..0f7a7c107ccf --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,48 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.LocationName; +import com.google.cloud.alloydb.v1.RestoreFromCloudSQLRequest; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(request).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java new file mode 100644 index 000000000000..f346996301da --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.LocationName; + +public class SyncRestoreFromCloudSQLLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLLocationnameString(); + } + + public static void syncRestoreFromCloudSQLLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java new file mode 100644 index 000000000000..d1aaa8204a40 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1.Cluster; +import com.google.cloud.alloydb.v1.LocationName; + +public class SyncRestoreFromCloudSQLStringString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLStringString(); + } + + public static void syncRestoreFromCloudSQLStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..f8a1701af04d --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..f8e6b4bdbe4e --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..ed8fbf86b396 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1.stub.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..78ea7ccae778 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1.stub.samples; + +// [START alloydb_v1_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportCluster.java new file mode 100644 index 000000000000..52a284b93191 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportCluster.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncExportCluster { + + public static void main(String[] args) throws Exception { + asyncExportCluster(); + } + + public static void asyncExportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + ApiFuture future = alloyDBAdminClient.exportClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportClusterLRO.java new file mode 100644 index 000000000000..60d78dbd924b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/AsyncExportClusterLRO.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.cloud.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; + +public class AsyncExportClusterLRO { + + public static void main(String[] args) throws Exception { + asyncExportClusterLRO(); + } + + public static void asyncExportClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + OperationFuture future = + alloyDBAdminClient.exportClusterOperationCallable().futureCall(request); + // Do something. + ExportClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportCluster.java new file mode 100644 index 000000000000..15c021279443 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportCluster.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.cloud.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; + +public class SyncExportCluster { + + public static void main(String[] args) throws Exception { + syncExportCluster(); + } + + public static void syncExportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ExportClusterRequest request = + ExportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setDatabase("database1789464955") + .build(); + ExportClusterResponse response = alloyDBAdminClient.exportClusterAsync(request).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java new file mode 100644 index 000000000000..847fed347953 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java @@ -0,0 +1,57 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_ClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; +import com.google.cloud.alloydb.v1alpha.GcsDestination; + +public +class SyncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions { + + public static void main(String[] args) throws Exception { + syncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions(); + } + + public static void + syncExportClusterClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + ExportClusterResponse response = + alloyDBAdminClient + .exportClusterAsync( + name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_ClusternameGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java new file mode 100644 index 000000000000..52532a144f0e --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/exportcluster/SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions.java @@ -0,0 +1,57 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_StringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ExportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ExportClusterResponse; +import com.google.cloud.alloydb.v1alpha.GcsDestination; + +public +class SyncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions { + + public static void main(String[] args) throws Exception { + syncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions(); + } + + public static void + syncExportClusterStringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + GcsDestination gcsDestination = GcsDestination.newBuilder().build(); + String database = "database1789464955"; + ExportClusterRequest.CsvExportOptions csvExportOptions = + ExportClusterRequest.CsvExportOptions.newBuilder().build(); + ExportClusterRequest.SqlExportOptions sqlExportOptions = + ExportClusterRequest.SqlExportOptions.newBuilder().build(); + ExportClusterResponse response = + alloyDBAdminClient + .exportClusterAsync( + name, gcsDestination, database, csvExportOptions, sqlExportOptions) + .get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_StringGcsdestinationStringExportclusterrequestcsvexportoptionsExportclusterrequestsqlexportoptions_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportCluster.java new file mode 100644 index 000000000000..e90a4139cfc8 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportCluster.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.cloud.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncImportCluster { + + public static void main(String[] args) throws Exception { + asyncImportCluster(); + } + + public static void asyncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportClusterLRO.java new file mode 100644 index 000000000000..81566188ac74 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/AsyncImportClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; + +public class AsyncImportClusterLRO { + + public static void main(String[] args) throws Exception { + asyncImportClusterLRO(); + } + + public static void asyncImportClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + OperationFuture future = + alloyDBAdminClient.importClusterOperationCallable().futureCall(request); + // Do something. + ImportClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportCluster.java new file mode 100644 index 000000000000..acf401420bfb --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportCluster.java @@ -0,0 +1,49 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ImportClusterRequest; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; + +public class SyncImportCluster { + + public static void main(String[] args) throws Exception { + syncImportCluster(); + } + + public static void syncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(request).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java new file mode 100644 index 000000000000..f7c8b95ce3fc --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; + +public class SyncImportClusterClusternameStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterClusternameStringStringString(); + } + + public static void syncImportClusterClusternameStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java new file mode 100644 index 000000000000..b510447a88e9 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1alpha.ClusterName; +import com.google.cloud.alloydb.v1alpha.ImportClusterResponse; + +public class SyncImportClusterStringStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterStringStringStringString(); + } + + public static void syncImportClusterStringStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..adcc6698c550 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetEndpoint.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..995c2bd49559 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateSetEndpoint.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..233132b41e8a --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder().build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/AsyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..7ca067a5aba9 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_GetLocation_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..40f5bdf98e84 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/getlocation/SyncGetLocation.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_GetLocation_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = alloyDBCSQLAdminClient.getLocation(request); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..22ec25145247 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..774f7f05b5be --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + alloyDBCSQLAdminClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/SyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..7153fe2ce673 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/listlocations/SyncListLocations.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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_ListLocations_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..bb6c02a46d29 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.LocationName; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQL(); + } + + public static void asyncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java new file mode 100644 index 000000000000..f3e8ef85314a --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.LocationName; +import com.google.cloud.alloydb.v1alpha.OperationMetadata; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; + +public class AsyncRestoreFromCloudSQLLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQLLRO(); + } + + public static void asyncRestoreFromCloudSQLLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + OperationFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..f4e998775477 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,48 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.LocationName; +import com.google.cloud.alloydb.v1alpha.RestoreFromCloudSQLRequest; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(request).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java new file mode 100644 index 000000000000..2043bc549f08 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.LocationName; + +public class SyncRestoreFromCloudSQLLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLLocationnameString(); + } + + public static void syncRestoreFromCloudSQLLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java new file mode 100644 index 000000000000..b3a77fbc11b5 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1alpha.Cluster; +import com.google.cloud.alloydb.v1alpha.LocationName; + +public class SyncRestoreFromCloudSQLStringString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLStringString(); + } + + public static void syncRestoreFromCloudSQLStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..d8634d75d278 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..c0376ae77e50 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1alpha.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..e028b5ab9eca --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1alpha.stub.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1alpha.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..1b2441d47f83 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1alpha/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1alpha.stub.samples; + +// [START alloydb_v1alpha_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1alpha.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1alpha_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportCluster.java new file mode 100644 index 000000000000..6a684e833e53 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportCluster.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.cloud.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.ClusterName; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.longrunning.Operation; + +public class AsyncImportCluster { + + public static void main(String[] args) throws Exception { + asyncImportCluster(); + } + + public static void asyncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ApiFuture future = alloyDBAdminClient.importClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportClusterLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportClusterLRO.java new file mode 100644 index 000000000000..0310e3661563 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/AsyncImportClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.ClusterName; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; +import com.google.cloud.alloydb.v1beta.OperationMetadata; + +public class AsyncImportClusterLRO { + + public static void main(String[] args) throws Exception { + asyncImportClusterLRO(); + } + + public static void asyncImportClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + OperationFuture future = + alloyDBAdminClient.importClusterOperationCallable().futureCall(request); + // Do something. + ImportClusterResponse response = future.get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportCluster.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportCluster.java new file mode 100644 index 000000000000..cd3cb559423d --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportCluster.java @@ -0,0 +1,49 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.ClusterName; +import com.google.cloud.alloydb.v1beta.ImportClusterRequest; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; + +public class SyncImportCluster { + + public static void main(String[] args) throws Exception { + syncImportCluster(); + } + + public static void syncImportCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ImportClusterRequest request = + ImportClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setGcsUri("gcsUri-1251224875") + .setDatabase("database1789464955") + .setUser("user3599307") + .build(); + ImportClusterResponse response = alloyDBAdminClient.importClusterAsync(request).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.java new file mode 100644 index 000000000000..9fa59f345e2c --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterClusternameStringStringString.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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.ClusterName; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; + +public class SyncImportClusterClusternameStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterClusternameStringStringString(); + } + + public static void syncImportClusterClusternameStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_ClusternameStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.java new file mode 100644 index 000000000000..dce4ec058221 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbadmin/importcluster/SyncImportClusterStringStringStringString.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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBAdminClient; +import com.google.cloud.alloydb.v1beta.ClusterName; +import com.google.cloud.alloydb.v1beta.ImportClusterResponse; + +public class SyncImportClusterStringStringStringString { + + public static void main(String[] args) throws Exception { + syncImportClusterStringStringStringString(); + } + + public static void syncImportClusterStringStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBAdminClient alloyDBAdminClient = AlloyDBAdminClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + String gcsUri = "gcsUri-1251224875"; + String database = "database1789464955"; + String user = "user3599307"; + ImportClusterResponse response = + alloyDBAdminClient.importClusterAsync(name, gcsUri, database, user).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_StringStringStringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..313da99013e4 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_SetCredentialsProvider_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetEndpoint.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..59029ba520ca --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateSetEndpoint.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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminSettings; +import com.google.cloud.alloydb.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newBuilder().setEndpoint(myEndpoint).build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_SetEndpoint_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c4ae00fb6a72 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = + AlloyDBCSQLAdminSettings.newHttpJsonBuilder().build(); + AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = + AlloyDBCSQLAdminClient.create(alloyDBCSQLAdminSettings); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_Create_UseHttpJsonTransport_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/AsyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..65cc535c4647 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = alloyDBCSQLAdminClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_GetLocation_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..8d377acd9d28 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/getlocation/SyncGetLocation.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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_GetLocation_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = alloyDBCSQLAdminClient.getLocation(request); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..cda340cf2a7b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..38f214b48b62 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + alloyDBCSQLAdminClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_Paged_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/SyncListLocations.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..9ae6458d6b1b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/listlocations/SyncListLocations.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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : alloyDBCSQLAdminClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_ListLocations_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..d5b1997387bb --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQL.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.LocationName; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQL(); + } + + public static void asyncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + ApiFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java new file mode 100644 index 000000000000..8a7e0a9913bd --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/AsyncRestoreFromCloudSQLLRO.java @@ -0,0 +1,53 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.LocationName; +import com.google.cloud.alloydb.v1beta.OperationMetadata; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; + +public class AsyncRestoreFromCloudSQLLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreFromCloudSQLLRO(); + } + + public static void asyncRestoreFromCloudSQLLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + OperationFuture future = + alloyDBCSQLAdminClient.restoreFromCloudSQLOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LRO_async] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..e7e65d2c2386 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,48 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.LocationName; +import com.google.cloud.alloydb.v1beta.RestoreFromCloudSQLRequest; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + RestoreFromCloudSQLRequest request = + RestoreFromCloudSQLRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setClusterId("clusterId561939637") + .setCluster(Cluster.newBuilder().build()) + .build(); + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(request).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java new file mode 100644 index 000000000000..60c81db7b282 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLLocationnameString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.LocationName; + +public class SyncRestoreFromCloudSQLLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLLocationnameString(); + } + + public static void syncRestoreFromCloudSQLLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_LocationnameString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java new file mode 100644 index 000000000000..76658f05d101 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladmin/restorefromcloudsql/SyncRestoreFromCloudSQLStringString.java @@ -0,0 +1,43 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient; +import com.google.cloud.alloydb.v1beta.Cluster; +import com.google.cloud.alloydb.v1beta.LocationName; + +public class SyncRestoreFromCloudSQLStringString { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQLStringString(); + } + + public static void syncRestoreFromCloudSQLStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String clusterId = "clusterId561939637"; + Cluster response = alloyDBCSQLAdminClient.restoreFromCloudSQLAsync(parent, clusterId).get(); + } + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_StringString_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..cfac41f0520b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdminSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..f74209fe1e23 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/alloydbcsqladminsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1beta.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1beta.AlloyDBCSQLAdminSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdminSettings_RestoreFromCloudSQL_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..0e318f827f0b --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/getlocation/SyncGetLocation.java @@ -0,0 +1,56 @@ +/* + * 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.alloydb.v1beta.stub.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] +import com.google.cloud.alloydb.v1beta.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .setRetrySettings( + alloyDBCSQLAdminSettingsBuilder + .getLocationSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AlloyDBCSQLAdminStubSettings alloyDBCSQLAdminSettings = alloyDBCSQLAdminSettingsBuilder.build(); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdminStubSettings_GetLocation_sync] diff --git a/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java new file mode 100644 index 000000000000..cc2adb049538 --- /dev/null +++ b/java-alloydb/samples/snippets/generated/com/google/cloud/alloydb/v1beta/stub/alloydbcsqladminstubsettings/restorefromcloudsql/SyncRestoreFromCloudSQL.java @@ -0,0 +1,54 @@ +/* + * 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.alloydb.v1beta.stub.samples; + +// [START alloydb_v1beta_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.alloydb.v1beta.stub.AlloyDBCSQLAdminStubSettings; +import java.time.Duration; + +public class SyncRestoreFromCloudSQL { + + public static void main(String[] args) throws Exception { + syncRestoreFromCloudSQL(); + } + + public static void syncRestoreFromCloudSQL() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AlloyDBCSQLAdminStubSettings.Builder alloyDBCSQLAdminSettingsBuilder = + AlloyDBCSQLAdminStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + alloyDBCSQLAdminSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END alloydb_v1beta_generated_AlloyDBCSQLAdminStubSettings_RestoreFromCloudSQL_sync] diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 6e63210bc8ba..1494b3c70349 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.59.0 + 26.60.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.71.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.71.0' +implementation 'com.google.analytics:google-analytics-admin:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.71.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.72.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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/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-analytics-data/README.md b/java-analytics-data/README.md index 890e3d9129c4..55758326f01e 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.59.0 + 26.60.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.72.0' +implementation 'com.google.analytics:google-analytics-data:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.72.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.73.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 ad855c46ddb2..0b4fc84cc240 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.59.0 + 26.60.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.58.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.59.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/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java index 0ca66bf4f0c5..93c36876f368 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClient.java @@ -310,7 +310,7 @@ * * *

SubscribeDataExchange - *

Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. + *

Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain any listings. * *

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

*
    @@ -643,7 +643,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * }
* * @param parent Required. The parent resource path of the data exchanges. e.g. - * `projects/myproject/locations/US`. + * `projects/myproject/locations/us`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDataExchangesPagedResponse listDataExchanges(LocationName parent) { @@ -676,7 +676,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(LocationName paren * }
* * @param parent Required. The parent resource path of the data exchanges. e.g. - * `projects/myproject/locations/US`. + * `projects/myproject/locations/us`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDataExchangesPagedResponse listDataExchanges(String parent) { @@ -813,7 +813,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(ListDataExchangesR * }
* * @param organization Required. The organization resource path of the projects containing - * DataExchanges. e.g. `organizations/myorg/locations/US`. + * DataExchanges. e.g. `organizations/myorg/locations/us`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges(String organization) { @@ -948,7 +948,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( * }
* * @param name Required. The resource name of the data exchange. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataExchange getDataExchange(DataExchangeName name) { @@ -976,7 +976,7 @@ public final DataExchange getDataExchange(DataExchangeName name) { * }
* * @param name Required. The resource name of the data exchange. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataExchange getDataExchange(String name) { @@ -1060,7 +1060,7 @@ public final UnaryCallable getDataExchange * }
* * @param parent Required. The parent resource path of the data exchange. e.g. - * `projects/myproject/locations/US`. + * `projects/myproject/locations/us`. * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1093,7 +1093,7 @@ public final DataExchange createDataExchange(LocationName parent, DataExchange d * }
* * @param parent Required. The parent resource path of the data exchange. e.g. - * `projects/myproject/locations/US`. + * `projects/myproject/locations/us`. * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1278,7 +1278,7 @@ public final UnaryCallable updateDataEx * }
* * @param name Required. The full name of the data exchange resource that you want to delete. For - * example, `projects/myproject/locations/US/dataExchanges/123`. + * example, `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDataExchange(DataExchangeName name) { @@ -1308,7 +1308,7 @@ public final void deleteDataExchange(DataExchangeName name) { * }
* * @param name Required. The full name of the data exchange resource that you want to delete. For - * example, `projects/myproject/locations/US/dataExchanges/123`. + * example, `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDataExchange(String name) { @@ -1394,7 +1394,7 @@ public final UnaryCallable deleteDataExchangeC * }
* * @param parent Required. The parent resource path of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListListingsPagedResponse listListings(DataExchangeName parent) { @@ -1426,7 +1426,7 @@ public final ListListingsPagedResponse listListings(DataExchangeName parent) { * }
* * @param parent Required. The parent resource path of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListListingsPagedResponse listListings(String parent) { @@ -1560,7 +1560,7 @@ public final UnaryCallable listListin * }
* * @param name Required. The resource name of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Listing getListing(ListingName name) { @@ -1589,7 +1589,7 @@ public final Listing getListing(ListingName name) { * } * * @param name Required. The resource name of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Listing getListing(String name) { @@ -1677,7 +1677,7 @@ public final UnaryCallable getListingCallable() { * } * * @param parent Required. The parent resource path of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @param listing Required. The listing to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1710,7 +1710,7 @@ public final Listing createListing(DataExchangeName parent, Listing listing) { * } * * @param parent Required. The parent resource path of the listing. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * `projects/myproject/locations/us/dataExchanges/123`. * @param listing Required. The listing to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1890,7 +1890,7 @@ public final UnaryCallable updateListingCallable( * } * * @param name Required. Resource name of the listing to delete. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteListing(ListingName name) { @@ -1919,7 +1919,7 @@ public final void deleteListing(ListingName name) { * } * * @param name Required. Resource name of the listing to delete. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteListing(String name) { @@ -1945,6 +1945,7 @@ public final void deleteListing(String name) { * .setName( * ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]") * .toString()) + * .setDeleteCommercial(true) * .build(); * analyticsHubServiceClient.deleteListing(request); * } @@ -1975,6 +1976,7 @@ public final void deleteListing(DeleteListingRequest request) { * .setName( * ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]") * .toString()) + * .setDeleteCommercial(true) * .build(); * ApiFuture future = * analyticsHubServiceClient.deleteListingCallable().futureCall(request); @@ -2010,7 +2012,7 @@ public final UnaryCallable deleteListingCallable() * } * * @param name Required. Resource name of the listing that you want to subscribe to. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SubscribeListingResponse subscribeListing(ListingName name) { @@ -2043,7 +2045,7 @@ public final SubscribeListingResponse subscribeListing(ListingName name) { * } * * @param name Required. Resource name of the listing that you want to subscribe to. e.g. - * `projects/myproject/locations/US/dataExchanges/123/listings/456`. + * `projects/myproject/locations/us/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SubscribeListingResponse subscribeListing(String name) { @@ -2123,7 +2125,8 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create - * one or more linked datasets. + * one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain + * any listings. * *

Sample code: * @@ -2141,7 +2144,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * } * * @param name Required. Resource name of the Data Exchange. e.g. - * `projects/publisherproject/locations/US/dataExchanges/123` + * `projects/publisherproject/locations/us/dataExchanges/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -2156,7 +2159,8 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create - * one or more linked datasets. + * one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain + * any listings. * *

Sample code: * @@ -2174,7 +2178,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * } * * @param name Required. Resource name of the Data Exchange. e.g. - * `projects/publisherproject/locations/US/dataExchanges/123` + * `projects/publisherproject/locations/us/dataExchanges/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -2187,7 +2191,8 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create - * one or more linked datasets. + * one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain + * any listings. * *

Sample code: * @@ -2222,7 +2227,8 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create - * one or more linked datasets. + * one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain + * any listings. * *

Sample code: * @@ -2257,7 +2263,8 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create - * one or more linked datasets. + * one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain + * any listings. * *

Sample code: * @@ -2309,7 +2316,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * } * * @param name Required. Resource name of the Subscription to refresh. e.g. - * `projects/subscriberproject/locations/US/subscriptions/123` + * `projects/subscriberproject/locations/us/subscriptions/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -2342,7 +2349,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r * } * * @param name Required. Resource name of the Subscription to refresh. e.g. - * `projects/subscriberproject/locations/US/subscriptions/123` + * `projects/subscriberproject/locations/us/subscriptions/123` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -2462,7 +2469,7 @@ public final UnaryCallable refreshSubscri * } * * @param name Required. Resource name of the subscription. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription getSubscription(SubscriptionName name) { @@ -2490,7 +2497,7 @@ public final Subscription getSubscription(SubscriptionName name) { * } * * @param name Required. Resource name of the subscription. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription getSubscription(String name) { @@ -2576,7 +2583,7 @@ public final UnaryCallable getSubscription * } * * @param parent Required. The parent resource path of the subscription. e.g. - * projects/myproject/locations/US + * projects/myproject/locations/us * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(LocationName parent) { @@ -2609,7 +2616,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(LocationName paren * } * * @param parent Required. The parent resource path of the subscription. e.g. - * projects/myproject/locations/US + * projects/myproject/locations/us * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(String parent) { @@ -2749,8 +2756,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * } * * @param resource Required. Resource name of the requested target. This resource may be either a - * Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. - * projects/123/locations/US/dataExchanges/456/listings/789 + * Listing or a DataExchange. e.g. projects/123/locations/us/dataExchanges/456 OR e.g. + * projects/123/locations/us/dataExchanges/456/listings/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubscriptions( @@ -2785,8 +2792,8 @@ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubs * } * * @param resource Required. Resource name of the requested target. This resource may be either a - * Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. - * projects/123/locations/US/dataExchanges/456/listings/789 + * Listing or a DataExchange. e.g. projects/123/locations/us/dataExchanges/456 OR e.g. + * projects/123/locations/us/dataExchanges/456/listings/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubscriptions( @@ -2932,7 +2939,7 @@ public final ListSharedResourceSubscriptionsPagedResponse listSharedResourceSubs * } * * @param name Required. Resource name of the subscription to revoke. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RevokeSubscriptionResponse revokeSubscription(SubscriptionName name) { @@ -2962,7 +2969,7 @@ public final RevokeSubscriptionResponse revokeSubscription(SubscriptionName name * } * * @param name Required. Resource name of the subscription to revoke. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final RevokeSubscriptionResponse revokeSubscription(String name) { @@ -2987,6 +2994,7 @@ public final RevokeSubscriptionResponse revokeSubscription(String name) { * RevokeSubscriptionRequest request = * RevokeSubscriptionRequest.newBuilder() * .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + * .setRevokeCommercial(true) * .build(); * RevokeSubscriptionResponse response = analyticsHubServiceClient.revokeSubscription(request); * } @@ -3015,6 +3023,7 @@ public final RevokeSubscriptionResponse revokeSubscription(RevokeSubscriptionReq * RevokeSubscriptionRequest request = * RevokeSubscriptionRequest.newBuilder() * .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + * .setRevokeCommercial(true) * .build(); * ApiFuture future = * analyticsHubServiceClient.revokeSubscriptionCallable().futureCall(request); @@ -3047,7 +3056,7 @@ public final RevokeSubscriptionResponse revokeSubscription(RevokeSubscriptionReq * } * * @param name Required. Resource name of the subscription to delete. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriptionAsync( @@ -3078,7 +3087,7 @@ public final OperationFuture deleteSubscriptionAsync( * } * * @param name Required. Resource name of the subscription to delete. e.g. - * projects/123/locations/US/subscriptions/456 + * projects/123/locations/us/subscriptions/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteSubscriptionAsync(String name) { diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java index f3c02353630f..e07d41e31673 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/HttpJsonAnalyticsHubServiceStub.java @@ -490,6 +490,8 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "deleteCommercial", request.getDeleteCommercial()); return fields; }) .setRequestBodyExtractor(request -> null) diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json index 763d79d89283..2f4cf17d40cd 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json +++ b/java-analyticshub/google-cloud-analyticshub/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.analyticshub.v1/reflect-config.json @@ -1043,6 +1043,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$CommercialInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$CommercialInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$CommercialInfo$GoogleCloudMarketplaceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$CommercialInfo$GoogleCloudMarketplaceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$CommercialInfo$GoogleCloudMarketplaceInfo$CommercialState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.Listing$PubSubTopicSource", "queryAllDeclaredConstructors": true, @@ -1475,6 +1520,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Subscription$CommercialInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Subscription$CommercialInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Subscription$CommercialInfo$GoogleCloudMarketplaceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.analyticshub.v1.Subscription$CommercialInfo$GoogleCloudMarketplaceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.analyticshub.v1.Subscription$LinkedResource", "queryAllDeclaredConstructors": true, diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java index 123d64da4df3..30419cf4ce50 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java +++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientHttpJsonTest.java @@ -742,7 +742,9 @@ public void getListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockService.addResponse(expectedResponse); @@ -801,7 +803,9 @@ public void getListingTest2() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockService.addResponse(expectedResponse); @@ -862,7 +866,9 @@ public void createListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockService.addResponse(expectedResponse); @@ -923,7 +929,9 @@ public void createListingTest2() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockService.addResponse(expectedResponse); @@ -985,7 +993,9 @@ public void updateListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockService.addResponse(expectedResponse); @@ -1006,7 +1016,9 @@ public void updateListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1053,7 +1065,9 @@ public void updateListingExceptionTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateListing(listing, updateMask); @@ -1444,7 +1458,9 @@ public void getSubscriptionTest() throws Exception { .setSubscriberContact("subscriberContact-847205736") .addAllLinkedResources(new ArrayList()) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Subscription.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setDestinationDataset(DestinationDataset.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1497,7 +1513,9 @@ public void getSubscriptionTest2() throws Exception { .setSubscriberContact("subscriberContact-847205736") .addAllLinkedResources(new ArrayList()) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Subscription.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setDestinationDataset(DestinationDataset.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java index 39d8f63cc0e2..60a74f29fab5 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java +++ b/java-analyticshub/google-cloud-analyticshub/src/test/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceClientTest.java @@ -653,7 +653,9 @@ public void getListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -706,7 +708,9 @@ public void getListingTest2() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -759,7 +763,9 @@ public void createListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -815,7 +821,9 @@ public void createListingTest2() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -871,7 +879,9 @@ public void updateListingTest() throws Exception { .setRestrictedExportConfig(Listing.RestrictedExportConfig.newBuilder().build()) .setDiscoveryType(DiscoveryType.forNumber(0)) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Listing.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setAllowOnlyMetadataSharing(true) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -1251,7 +1261,9 @@ public void getSubscriptionTest() throws Exception { .setSubscriberContact("subscriberContact-847205736") .addAllLinkedResources(new ArrayList()) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Subscription.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setDestinationDataset(DestinationDataset.newBuilder().build()) .build(); mockAnalyticsHubService.addResponse(expectedResponse); @@ -1298,7 +1310,9 @@ public void getSubscriptionTest2() throws Exception { .setSubscriberContact("subscriberContact-847205736") .addAllLinkedResources(new ArrayList()) .setResourceType(SharedResourceType.forNumber(0)) + .setCommercialInfo(Subscription.CommercialInfo.newBuilder().build()) .setLogLinkedDatasetQueryUserEmail(true) + .setDestinationDataset(DestinationDataset.newBuilder().build()) .build(); mockAnalyticsHubService.addResponse(expectedResponse); diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java b/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java index e6462c275898..43fa526153e9 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubServiceGrpc.java @@ -1340,8 +1340,10 @@ default void subscribeListing( * * *

-     * Creates a Subscription to a Data Clean Room. This is a long-running
-     * operation as it will create one or more linked datasets.
+     * Creates a Subscription to a Data Clean Room. This is a
+     * long-running operation as it will create one or more linked datasets.
+     * Throws a Bad Request error if the Data Exchange does not contain any
+     * listings.
      * 
*/ default void subscribeDataExchange( @@ -1745,8 +1747,10 @@ public void subscribeListing( * * *
-     * Creates a Subscription to a Data Clean Room. This is a long-running
-     * operation as it will create one or more linked datasets.
+     * Creates a Subscription to a Data Clean Room. This is a
+     * long-running operation as it will create one or more linked datasets.
+     * Throws a Bad Request error if the Data Exchange does not contain any
+     * listings.
      * 
*/ public void subscribeDataExchange( @@ -2104,8 +2108,10 @@ public com.google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse subscr * * *
-     * Creates a Subscription to a Data Clean Room. This is a long-running
-     * operation as it will create one or more linked datasets.
+     * Creates a Subscription to a Data Clean Room. This is a
+     * long-running operation as it will create one or more linked datasets.
+     * Throws a Bad Request error if the Data Exchange does not contain any
+     * listings.
      * 
*/ public com.google.longrunning.Operation subscribeDataExchange( @@ -2425,8 +2431,10 @@ public com.google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse subscr * * *
-     * Creates a Subscription to a Data Clean Room. This is a long-running
-     * operation as it will create one or more linked datasets.
+     * Creates a Subscription to a Data Clean Room. This is a
+     * long-running operation as it will create one or more linked datasets.
+     * Throws a Bad Request error if the Data Exchange does not contain any
+     * listings.
      * 
*/ public com.google.longrunning.Operation subscribeDataExchange( @@ -2761,8 +2769,10 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Creates a Subscription to a Data Clean Room. This is a long-running
-     * operation as it will create one or more linked datasets.
+     * Creates a Subscription to a Data Clean Room. This is a
+     * long-running operation as it will create one or more linked datasets.
+     * Throws a Bad Request error if the Data Exchange does not contain any
+     * listings.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java index dd9a1479f4bb..4083c5d2e4d5 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/AnalyticsHubProto.java @@ -92,6 +92,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_Listing_RestrictedExportConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_Listing_RestrictedExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,6 +108,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedResource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedDatasetMapEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -295,7 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"|\n" + "\035DestinationPubSubSubscription\022[\n" + "\023pubsub_subscription\030\001 \001(\01329.goog" - + "le.cloud.bigquery.analyticshub.v1.PubSubSubscriptionB\003\340A\002\"\233\025\n" + + "le.cloud.bigquery.analyticshub.v1.PubSubSubscriptionB\003\340A\002\"\264\033\n" + "\007Listing\022`\n" + "\020bigquery_dataset\030\006 \001(\0132D.google.cloud.bigquery." + "analyticshub.v1.Listing.BigQueryDatasetSourceH\000\022X\n" @@ -323,19 +339,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016discovery_type\030\016 \001(\016" + "24.google.cloud.bigquery.analyticshub.v1.DiscoveryTypeB\003\340A\001H\001\210\001\001\022U\n\r" + "resource_type\030\017" - + " \001(\01629.google.cloud.bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\0225\n" + + " \001(\01629.google.cloud.bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" + + "\017commercial_info\030\021 \001(\0132=.google.cloud.bigquery" + + ".analyticshub.v1.Listing.CommercialInfoB\003\340A\003H\002\210\001\001\0225\n" + "#log_linked_dataset_query_user_email\030\022" - + " \001(\010B\003\340A\001H\002\210\001\001\032\372\004\n" + + " \001(\010B\003\340A\001H\003\210\001\001\022-\n" + + "\033allow_only_metadata_sharing\030\023" + + " \001(\010B\003\340A\001H\004\210\001\001\032\267\005\n" + "\025BigQueryDatasetSource\0228\n" + "\007dataset\030\001 \001(\tB\'\340A\001\372A!\n" + "\037bigquery.googleapis.com/Dataset\022v\n" - + "\022selected_resources\030\002 \003(\0132U.google.cloud.bigquery.analyticshub.v1.L" - + "isting.BigQueryDatasetSource.SelectedResourceB\003\340A\001\022\202\001\n" - + "\030restricted_export_policy\030\003 \001(\0132[.google.cloud.bigquery.analyticsh" - + "ub.v1.Listing.BigQueryDatasetSource.RestrictedExportPolicyB\003\340A\001\032V\n" + + "\022selected_resources\030\002 \003(\0132U.google.cloud.b" + + "igquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResourceB\003\340A\001\022\202\001\n" + + "\030restricted_export_policy\030\003 \001(\0132[.google." + + "cloud.bigquery.analyticshub.v1.Listing.B" + + "igQueryDatasetSource.RestrictedExportPolicyB\003\340A\001\032\222\001\n" + "\020SelectedResource\0226\n" + "\005table\030\001 \001(\tB%\340A\001\372A\037\n" - + "\035bigquery.googleapis.com/TableH\000B\n\n" + + "\035bigquery.googleapis.com/TableH\000\022:\n" + + "\007routine\030\002 \001(\tB\'\340A\001\372A!\n" + + "\037bigquery.googleapis.com/RoutineH\000B\n\n" + "\010resource\032\321\001\n" + "\026RestrictedExportPolicy\0220\n" + "\007enabled\030\001 \001(\0132\032.google.protobuf.BoolValueB\003\340A\001\022E\n" @@ -350,7 +373,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026RestrictedExportConfig\022\024\n" + "\007enabled\030\003 \001(\010B\003\340A\001\022)\n" + "\034restrict_direct_table_access\030\001 \001(\010B\003\340A\003\022\"\n" - + "\025restrict_query_result\030\002 \001(\010B\003\340A\001\"*\n" + + "\025restrict_query_result\030\002 \001(\010B\003\340A\001\032\224\004\n" + + "\016CommercialInfo\022}\n" + + "\021cloud_marketplace\030\001 \001(\0132X.google.cloud.bigquery.anal" + + "yticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfoB\003\340A\003H\000\210\001\001\032\354\002\n" + + "\032GoogleCloudMarketplaceInfo\022M\n" + + "\007service\030\001 \001(\tB7\340A\003\372A1\n" + + "/servicemanagement.googleapis.com/ManagedServiceH\000\210\001\001\022\214\001\n" + + "\020commercial_state\030\003 \001(\0162h.google.cloud.bigquery.analyti" + + "cshub.v1.Listing.CommercialInfo.GoogleCl" + + "oudMarketplaceInfo.CommercialStateB\003\340A\003H\001\210\001\001\"O\n" + + "\017CommercialState\022 \n" + + "\034COMMERCIAL_STATE_UNSPECIFIED\020\000\022\016\n\n" + + "ONBOARDING\020\001\022\n\n" + + "\006ACTIVE\020\002B\n\n" + + "\010_serviceB\023\n" + + "\021_commercial_stateB\024\n" + + "\022_cloud_marketplace\"*\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\"\267\004\n" @@ -377,11 +416,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n" + "%CATEGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n" + "\033CATEGORY_TRAVEL_AND_TOURISM\020\023:\202\001\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/loc" - + "ations/{location}/dataExchanges/{data_exchange}/listings/{listing}B\010\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/d" + + "ataExchanges/{data_exchange}/listings/{listing}B\010\n" + "\006sourceB\021\n" - + "\017_discovery_typeB&\n" - + "$_log_linked_dataset_query_user_email\"\336\t\n" + + "\017_discovery_typeB\022\n" + + "\020_commercial_infoB&\n" + + "$_log_linked_dataset_query_user_emailB\036\n" + + "\034_allow_only_metadata_sharing\"\230\r\n" + "\014Subscription\022\026\n" + "\007listing\030\005 \001(\tB\003\340A\003H\000\022\034\n\r" + "data_exchange\030\006 \001(\tB\003\340A\003H\000\022\021\n" @@ -392,38 +433,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017organization_id\030\004 \001(\tB\003\340A\003\022&\n" + "\031organization_display_name\030\n" + " \001(\tB\003\340A\003\022M\n" - + "\005state\030\007 \001(\01629.google.cloud" - + ".bigquery.analyticshub.v1.Subscription.StateB\003\340A\003\022j\n" - + "\022linked_dataset_map\030\010 \003(\0132I." - + "google.cloud.bigquery.analyticshub.v1.Subscription.LinkedDatasetMapEntryB\003\340A\003\022\037\n" + + "\005state\030\007 \001(\01629.google.cloud.bigque" + + "ry.analyticshub.v1.Subscription.StateB\003\340A\003\022j\n" + + "\022linked_dataset_map\030\010 \003(\0132I.google." + + "cloud.bigquery.analyticshub.v1.Subscription.LinkedDatasetMapEntryB\003\340A\003\022\037\n" + "\022subscriber_contact\030\t \001(\tB\003\340A\003\022a\n" - + "\020linked_resources\030\013 \003(\0132B.google.cloud.bigquery" - + ".analyticshub.v1.Subscription.LinkedResourceB\003\340A\003\022U\n\r" - + "resource_type\030\014 \001(\01629.googl" - + "e.cloud.bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\0225\n" + + "\020linked_resources\030\013 \003(\0132B.google.cloud.bigquery.analyt" + + "icshub.v1.Subscription.LinkedResourceB\003\340A\003\022U\n\r" + + "resource_type\030\014 \001(\01629.google.cloud" + + ".bigquery.analyticshub.v1.SharedResourceTypeB\003\340A\003\022`\n" + + "\017commercial_info\030\r" + + " \001(\0132B.goo" + + "gle.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoB\003\340A\003\0225\n" + "#log_linked_dataset_query_user_email\030\016" - + " \001(\010B\003\340A\003H\001\210\001\001\032}\n" + + " \001(\010B\003\340A\003H\001\210\001\001\022[\n" + + "\023destination_dataset\030\017 \001(\01329.google" + + ".cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\001\032}\n" + "\016LinkedResource\022\035\n" + "\016linked_dataset\030\001 \001(\tB\003\340A\003H\000\022)\n" + "\032linked_pubsub_subscription\030\003 \001(\tB\003\340A\003H\000\022\024\n" + "\007listing\030\002 \001(\tB\003\340A\003B\013\n" - + "\treference\032{\n" + + "\treference\032\370\001\n" + + "\016CommercialInfo\022}\n" + + "\021cloud_marketplace\030\001 \001(\0132].google.cl" + + "oud.bigquery.analyticshub.v1.Subscriptio" + + "n.CommercialInfo.GoogleCloudMarketplaceInfoB\003\340A\003\032g\n" + + "\032GoogleCloudMarketplaceInfo\022I\n" + + "\005order\030\001 \001(\tB:\372A7\n" + + "5cloudcommerceconsumerprocurement.googleapis.com/Order\032{\n" + "\025LinkedDatasetMapEntry\022\013\n" + "\003key\030\001 \001(\t\022Q\n" - + "\005value\030\002 \001(\0132B.google.cloud.bigquery.anal" - + "yticshub.v1.Subscription.LinkedResource:\0028\001\"U\n" + + "\005value\030\002 \001(\0132B.google.cloud.bigquery.analytics" + + "hub.v1.Subscription.LinkedResource:\0028\001\"U\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" + "\014STATE_ACTIVE\020\001\022\017\n" + "\013STATE_STALE\020\002\022\022\n" + "\016STATE_INACTIVE\020\003:s\352Ap\n" - + "(analyticshub.googleapis.com/Subscription\022Dprojects/{project}/lo" - + "cations/{location}/subscriptions/{subscription}B\017\n\r" + + "(analyticshub.googleapis.com/Subscription\022Dprojects/{project}/locatio" + + "ns/{location}/subscriptions/{subscription}B\017\n\r" + "resource_nameB&\n" + "$_log_linked_dataset_query_user_email\"\203\001\n" + "\030ListDataExchangesRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(a" - + "nalyticshub.googleapis.com/DataExchange\022\021\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(analyticshub.googleapis.com/DataExchange\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\201\001\n" + "\031ListDataExchangesResponse\022K\n" @@ -435,8 +488,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\"\204\001\n" + "\034ListOrgDataExchangesResponse\022K\n" - + "\016data_exchanges\030\001" - + " \003(\01323.google.cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + + "\016data_exchanges\030\001 \003(\0132" + + "3.google.cloud.bigquery.analyticshub.v1.DataExchange\022\027\n" + "\017next_page_token\030\002 \001(\t\"X\n" + "\026GetDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -445,13 +498,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(analyticshub.googleapis.com/DataExchange\022\035\n" + "\020data_exchange_id\030\002 \001(\tB\003\340A\002\022O\n\r" - + "data_exchange\030\003 \001" - + "(\01323.google.cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"\242\001\n" + + "data_exchange\030\003 \001(\01323." + + "google.cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"\242\001\n" + "\031UpdateDataExchangeRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022O\n\r" - + "data_exchange\030\002" - + " \001(\01323.google.cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"[\n" + + "data_exchange\030\002 \001" + + "(\01323.google.cloud.bigquery.analyticshub.v1.DataExchangeB\003\340A\002\"[\n" + "\031DeleteDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\"~\n" @@ -461,8 +514,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\"q\n" + "\024ListListingsResponse\022@\n" - + "\010listings\030\001" - + " \003(\0132..google.cloud.bigquery.analyticshub.v1.Listing\022\027\n" + + "\010listings\030\001 " + + "\003(\0132..google.cloud.bigquery.analyticshub.v1.Listing\022\027\n" + "\017next_page_token\030\002 \001(\t\"N\n" + "\021GetListingRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" @@ -475,52 +528,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132..google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"\222\001\n" + "\024UpdateListingRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022D\n" - + "\007listing\030\002 " - + "\001(\0132..google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"Q\n" + + "\007listing\030\002 \001(\0132." + + ".google.cloud.bigquery.analyticshub.v1.ListingB\003\340A\002\"q\n" + "\024DeleteListingRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#analyticshub.googleapis.com/Listing\"\270\002\n" + + "#analyticshub.googleapis.com/Listing\022\036\n" + + "\021delete_commercial\030\002 \001(\010B\003\340A\001\"\270\002\n" + "\027SubscribeListingRequest\022]\n" - + "\023destination_dataset\030\003 \001(\01329.g" - + "oogle.cloud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\004H\000\022t\n" - + "\037destination_pubsub_subscription\030\005 \001(\0132D.google.cloud.b" - + "igquery.analyticshub.v1.DestinationPubSubSubscriptionB\003\340A\004H\000\0229\n" + + "\023destination_dataset\030\003 \001(\01329.google.cloud.b" + + "igquery.analyticshub.v1.DestinationDatasetB\003\340A\004H\000\022t\n" + + "\037destination_pubsub_subscription\030\005 \001(\0132D.google.cloud.bigquery.analy" + + "ticshub.v1.DestinationPubSubSubscriptionB\003\340A\004H\000\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#analyticshub.googleapis.com/ListingB\r\n" + "\013destination\"e\n" + "\030SubscribeListingResponse\022I\n" - + "\014subscription\030\001 \001(\01323.google.cloud." - + "bigquery.analyticshub.v1.Subscription\"\262\002\n" + + "\014subscription\030\001" + + " \001(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\"\262\002\n" + "\034SubscribeDataExchangeRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/DataExchange\022>\n" + "\013destination\030\002 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022[\n" - + "\023destination_dataset\030\005 \001(\01329.google.clo" - + "ud.bigquery.analyticshub.v1.DestinationDatasetB\003\340A\001\022\031\n" + + "\023destination_dataset\030\005 \001(\01329.google.cloud.bigquery.a" + + "nalyticshub.v1.DestinationDatasetB\003\340A\001\022\031\n" + "\014subscription\030\004 \001(\tB\003\340A\002\022\032\n" + "\022subscriber_contact\030\003 \001(\t\"j\n" + "\035SubscribeDataExchangeResponse\022I\n" - + "\014subscription\030\001 \001(" - + "\01323.google.cloud.bigquery.analyticshub.v1.Subscription\"\\\n" + + "\014subscription\030\001 \001(\01323.google.cl" + + "oud.bigquery.analyticshub.v1.Subscription\"\\\n" + "\032RefreshSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/Subscription\"h\n" + "\033RefreshSubscriptionResponse\022I\n" - + "\014subscription\030\001 \001(" - + "\01323.google.cloud.bigquery.analyticshub.v1.Subscription\"X\n" + + "\014subscription\030\001 \001(\01323.google.cl" + + "oud.bigquery.analyticshub.v1.Subscription\"X\n" + "\026GetSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticshub.googleapis.com/Subscription\"\223\001\n" + "\030ListSubscriptionsRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(a" - + "nalyticshub.googleapis.com/Subscription\022\016\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(analyticshub.googleapis.com/Subscription\022\016\n" + "\006filter\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\022\n\n" + "page_token\030\004 \001(\t\"\200\001\n" + "\031ListSubscriptionsResponse\022J\n\r" - + "subscriptions\030\001 \003(\01323.google.clo" - + "ud.bigquery.analyticshub.v1.Subscription\022\027\n" + + "subscriptions\030\001" + + " \003(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" + "\017next_page_token\030\002 \001(\t\"\223\001\n" + "&ListSharedResourceSubscriptionsRequest\022\033\n" + "\010resource\030\001 \001(\tB\t\340A\002\372A\003\n" @@ -531,10 +585,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'ListSharedResourceSubscriptionsResponse\022Z\n" + "\035shared_resource_subscriptions\030\001" + " \003(\01323.google.cloud.bigquery.analyticshub.v1.Subscription\022\027\n" - + "\017next_page_token\030\002 \001(\t\"[\n" + + "\017next_page_token\030\002 \001(\t\"{\n" + "\031RevokeSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(analyticshub.googleapis.com/Subscription\"\034\n" + + "(analyticshub.googleapis.com/Subscription\022\036\n" + + "\021revoke_commercial\030\002 \001(\010B\003\340A\001\"\034\n" + "\032RevokeSubscriptionResponse\"[\n" + "\031DeleteSubscriptionRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -556,124 +611,137 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020BIGQUERY_DATASET\020\001\022\020\n" + "\014PUBSUB_TOPIC\020\0022\332*\n" + "\023AnalyticsHubService\022\332\001\n" - + "\021ListDataExchanges\022?.google.cloud.bigquery.analyticshub.v1.ListDataExchangesR" - + "equest\032@.google.cloud.bigquery.analytics" - + "hub.v1.ListDataExchangesResponse\"B\332A\006par" - + "ent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/dataExchanges\022\364\001\n" - + "\024ListOrgDataExchanges\022B.google.cloud.bigquery.analyticsh" - + "ub.v1.ListOrgDataExchangesRequest\032C.google.cloud.bigquery.analyticshub.v1.ListOr" - + "gDataExchangesResponse\"S\332A\014organization\202" - + "\323\344\223\002>\022\022\022\022*.google.cloud.bigquery.analyticshub.v1.SubscribeListingReq" - + "uest\032?.google.cloud.bigquery.analyticshu" - + "b.v1.SubscribeListingResponse\"X\332A\004name\202\323" - + "\344\223\002K\"F/v1/{name=projects/*/locations/*/d" - + "ataExchanges/*/listings/*}:subscribe:\001*\022\200\002\n" - + "\025SubscribeDataExchange\022C.google.cloud.bigquery.analyticshub.v1.SubscribeDataE" - + "xchangeRequest\032\035.google.longrunning.Operation\"\202\001\312A2\n" - + "\035SubscribeDataExchangeRespon" - + "se\022\021OperationMetadata\332A\004name\202\323\344\223\002@\";/v1/" - + "{name=projects/*/locations/*/dataExchanges/*}:subscribe:\001*\022\367\001\n" - + "\023RefreshSubscription\022A.google.cloud.bigquery.analyticshub." - + "v1.RefreshSubscriptionRequest\032\035.google.longrunning.Operation\"~\312A0\n" - + "\033RefreshSubscriptionResponse\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002>\"9/v1/{name=projects/*/locations/*/subscriptions/*}:refresh:\001*\022\307\001\n" - + "\017GetSubscription\022=.google.cloud.bigquery.analyti" - + "cshub.v1.GetSubscriptionRequest\0323.google.cloud.bigquery.analyticshub.v1.Subscrip" - + "tion\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/subscriptions/*}\022\332\001\n" - + "\021ListSubscriptions\022?.google.cloud.bigquery.ana" - + "lyticshub.v1.ListSubscriptionsRequest\032@.google.cloud.bigquery.analyticshub.v1.Li" - + "stSubscriptionsResponse\"B\332A\006parent\202\323\344\223\0023" - + "\0221/v1/{parent=projects/*/locations/*}/subscriptions\022\364\002\n" - + "\037ListSharedResourceSubscriptions\022M.google.cloud.bigquery.analytic" - + "shub.v1.ListSharedResourceSubscriptionsRequest\032N.google.cloud.bigquery.analytics" - + "hub.v1.ListSharedResourceSubscriptionsRe" - + "sponse\"\261\001\332A\010resource\202\323\344\223\002\237\001\022G/v1/{resour" - + "ce=projects/*/locations/*/dataExchanges/*}:listSubscriptionsZT\022R/v1/{resource=pr" - + "ojects/*/locations/*/dataExchanges/*/listings/*}:listSubscriptions\022\345\001\n" - + "\022RevokeSubscription\022@.google.cloud.bigquery.analyt" - + "icshub.v1.RevokeSubscriptionRequest\032A.google.cloud.bigquery.analyticshub.v1.Revo" - + "keSubscriptionResponse\"J\332A\004name\202\323\344\223\002=\"8/" - + "v1/{name=projects/*/locations/*/subscriptions/*}:revoke:\001*\022\344\001\n" - + "\022DeleteSubscription\022@.google.cloud.bigquery.analyticshub.v" - + "1.DeleteSubscriptionRequest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1" - + "/v1/{name=projects/*/locations/*/subscriptions/*}\022\267\002\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resource=projects/" - + "*/locations/*/dataExchanges/*}:getIamPolicy:\001*ZR\"M/v1/{resource=projects/*/locat" - + "ions/*/dataExchanges/*/listings/*}:getIamPolicy:\001*ZG\"B/v1/{resource=projects/*/l" - + "ocations/*/subscriptions/*}:getIamPolicy:\001*\022\267\002\n" - + "\014SetIamPolicy\022\".google.iam.v1.Set" - + "IamPolicyRequest\032\025.google.iam.v1.Policy\"" - + "\353\001\202\323\344\223\002\344\001\"B/v1/{resource=projects/*/loca" - + "tions/*/dataExchanges/*}:setIamPolicy:\001*ZR\"M/v1/{resource=projects/*/locations/*" - + "/dataExchanges/*/listings/*}:setIamPolicy:\001*ZG\"B/v1/{resource=projects/*/locatio" - + "ns/*/subscriptions/*}:setIamPolicy:\001*\022\232\002\n" - + "\022TestIamPermissions\022(.google.iam.v1.Tes" - + "tIamPermissionsRequest\032).google.iam.v1.T" - + "estIamPermissionsResponse\"\256\001\202\323\344\223\002\247\001\"H/v1" - + "/{resource=projects/*/locations/*/dataExchanges/*}:testIamPermissions:\001*ZX\"S/v1/" - + "{resource=projects/*/locations/*/dataExchanges/*/listings/*}:testIamPermissions:" - + "\001*\032x\312A\033analyticshub.googleapis.com\322AWhtt" - + "ps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-plat", - "formB\364\005\n)com.google.cloud.bigquery.analy" - + "ticshub.v1B\021AnalyticsHubProtoP\001ZMcloud.g" - + "oogle.com/go/bigquery/analyticshub/apiv1" - + "/analyticshubpb;analyticshubpb\252\002%Google." - + "Cloud.BigQuery.AnalyticsHub.V1\312\002%Google\\" - + "Cloud\\BigQuery\\AnalyticsHub\\V1\352\002)Google:" - + ":Cloud::Bigquery::AnalyticsHub::V1\352AH\n\037b" - + "igquery.googleapis.com/Dataset\022%projects" - + "/{project}/datasets/{dataset}\352AU\n\035bigque" - + "ry.googleapis.com/Table\0224projects/{proje" - + "ct}/datasets/{dataset}/tables/{table}\352A@" - + "\n\033pubsub.googleapis.com/Topic\022!projects/" - + "{project}/topics/{topic}\352A[\n\037bigquery.go" - + "ogleapis.com/Routine\0228projects/{project}" - + "/datasets/{dataset}/routines/{routine}\352A" - + "E\n/servicemanagement.googleapis.com/Mana" - + "gedService\022\022services/{service}\352AZ\n5cloud" - + "commerceconsumerprocurement.googleapis.c" - + "om/Order\022!projects/{project}/orders/{ord" - + "er}b\006proto3" + + "\022DeleteDataExchange\022@.google.cloud.bigquery.analyti" + + "cshub.v1.DeleteDataExchangeRequest\032\026.goo" + + "gle.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v1/{" + + "name=projects/*/locations/*/dataExchanges/*}\022\326\001\n" + + "\014ListListings\022:.google.cloud.bigquery.analyticshub.v1.ListListingsReques" + + "t\032;.google.cloud.bigquery.analyticshub.v" + + "1.ListListingsResponse\"M\332A\006parent\202\323\344\223\002>\022" + + "\022*.google.cloud.bigquery.analyticshub.v1." + + "SubscribeListingRequest\032?.google.cloud.bigquery.analyticshub.v1.SubscribeListing" + + "Response\"X\332A\004name\202\323\344\223\002K\"F/v1/{name=proje" + + "cts/*/locations/*/dataExchanges/*/listings/*}:subscribe:\001*\022\200\002\n" + + "\025SubscribeDataExchange\022C.google.cloud.bigquery.analyticshu" + + "b.v1.SubscribeDataExchangeRequest\032\035.google.longrunning.Operation\"\202\001\312A2\n" + + "\035SubscribeDataExchangeResponse\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002@\";/v1/{name=projects/*/loca" + + "tions/*/dataExchanges/*}:subscribe:\001*\022\367\001\n" + + "\023RefreshSubscription\022A.google.cloud.bigquery.analyticshub.v1.RefreshSubscriptio" + + "nRequest\032\035.google.longrunning.Operation\"~\312A0\n" + + "\033RefreshSubscriptionResponse\022\021Opera" + + "tionMetadata\332A\004name\202\323\344\223\002>\"9/v1/{name=pro" + + "jects/*/locations/*/subscriptions/*}:refresh:\001*\022\307\001\n" + + "\017GetSubscription\022=.google.cloud.bigquery.analyticshub.v1.GetSubscript" + + "ionRequest\0323.google.cloud.bigquery.analy" + + "ticshub.v1.Subscription\"@\332A\004name\202\323\344\223\0023\0221" + + "/v1/{name=projects/*/locations/*/subscriptions/*}\022\332\001\n" + + "\021ListSubscriptions\022?.google.cloud.bigquery.analyticshub.v1.ListSubs" + + "criptionsRequest\032@.google.cloud.bigquery.analyticshub.v1.ListSubscriptionsRespon" + + "se\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/subscriptions\022\364\002\n" + + "\037ListSharedResourceSubscriptions\022M.google.clou" + + "d.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsRequest\032N.google.cloud" + + ".bigquery.analyticshub.v1.ListSharedReso" + + "urceSubscriptionsResponse\"\261\001\332A\010resource\202" + + "\323\344\223\002\237\001\022G/v1/{resource=projects/*/locatio" + + "ns/*/dataExchanges/*}:listSubscriptionsZT\022R/v1/{resource=projects/*/locations/*/" + + "dataExchanges/*/listings/*}:listSubscriptions\022\345\001\n" + + "\022RevokeSubscription\022@.google.cloud.bigquery.analyticshub.v1.RevokeSubsc" + + "riptionRequest\032A.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRespons" + + "e\"J\332A\004name\202\323\344\223\002=\"8/v1/{name=projects/*/l", + "ocations/*/subscriptions/*}:revoke:\001*\022\344\001" + + "\n\022DeleteSubscription\022@.google.cloud.bigq" + + "uery.analyticshub.v1.DeleteSubscriptionR" + + "equest\032\035.google.longrunning.Operation\"m\312" + + "A*\n\025google.protobuf.Empty\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\0023*1/v1/{name=projects/*/" + + "locations/*/subscriptions/*}\022\267\002\n\014GetIamP" + + "olicy\022\".google.iam.v1.GetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/" + + "{resource=projects/*/locations/*/dataExc" + + "hanges/*}:getIamPolicy:\001*ZR\"M/v1/{resour" + + "ce=projects/*/locations/*/dataExchanges/" + + "*/listings/*}:getIamPolicy:\001*ZG\"B/v1/{re" + + "source=projects/*/locations/*/subscripti" + + "ons/*}:getIamPolicy:\001*\022\267\002\n\014SetIamPolicy\022" + + "\".google.iam.v1.SetIamPolicyRequest\032\025.go" + + "ogle.iam.v1.Policy\"\353\001\202\323\344\223\002\344\001\"B/v1/{resou" + + "rce=projects/*/locations/*/dataExchanges" + + "/*}:setIamPolicy:\001*ZR\"M/v1/{resource=pro" + + "jects/*/locations/*/dataExchanges/*/list" + + "ings/*}:setIamPolicy:\001*ZG\"B/v1/{resource" + + "=projects/*/locations/*/subscriptions/*}" + + ":setIamPolicy:\001*\022\232\002\n\022TestIamPermissions\022" + + "(.google.iam.v1.TestIamPermissionsReques" + + "t\032).google.iam.v1.TestIamPermissionsResp" + + "onse\"\256\001\202\323\344\223\002\247\001\"H/v1/{resource=projects/*" + + "/locations/*/dataExchanges/*}:testIamPer" + + "missions:\001*ZX\"S/v1/{resource=projects/*/" + + "locations/*/dataExchanges/*/listings/*}:" + + "testIamPermissions:\001*\032x\312A\033analyticshub.g" + + "oogleapis.com\322AWhttps://www.googleapis.c" + + "om/auth/bigquery,https://www.googleapis." + + "com/auth/cloud-platformB\364\005\n)com.google.c" + + "loud.bigquery.analyticshub.v1B\021Analytics" + + "HubProtoP\001ZMcloud.google.com/go/bigquery" + + "/analyticshub/apiv1/analyticshubpb;analy" + + "ticshubpb\252\002%Google.Cloud.BigQuery.Analyt" + + "icsHub.V1\312\002%Google\\Cloud\\BigQuery\\Analyt" + + "icsHub\\V1\352\002)Google::Cloud::Bigquery::Ana" + + "lyticsHub::V1\352AH\n\037bigquery.googleapis.co" + + "m/Dataset\022%projects/{project}/datasets/{" + + "dataset}\352AU\n\035bigquery.googleapis.com/Tab" + + "le\0224projects/{project}/datasets/{dataset" + + "}/tables/{table}\352A@\n\033pubsub.googleapis.c" + + "om/Topic\022!projects/{project}/topics/{top" + + "ic}\352A[\n\037bigquery.googleapis.com/Routine\022" + + "8projects/{project}/datasets/{dataset}/r" + + "outines/{routine}\352AE\n/servicemanagement." + + "googleapis.com/ManagedService\022\022services/" + + "{service}\352AZ\n5cloudcommerceconsumerprocu" + + "rement.googleapis.com/Order\022!projects/{p" + + "roject}/orders/{order}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -807,7 +875,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RestrictedExportConfig", "DiscoveryType", "ResourceType", + "CommercialInfo", "LogLinkedDatasetQueryUserEmail", + "AllowOnlyMetadataSharing", "Source", }); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_descriptor = @@ -828,7 +898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_SelectedResource_descriptor, new java.lang.String[] { - "Table", "Resource", + "Table", "Routine", "Resource", }); internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_RestrictedExportPolicy_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_Listing_BigQueryDatasetSource_descriptor @@ -860,6 +930,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Enabled", "RestrictDirectTableAccess", "RestrictQueryResult", }); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor, + new java.lang.String[] { + "CloudMarketplace", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor, + new java.lang.String[] { + "Service", "CommercialState", + }); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_fieldAccessorTable = @@ -878,7 +968,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SubscriberContact", "LinkedResources", "ResourceType", + "CommercialInfo", "LogLinkedDatasetQueryUserEmail", + "DestinationDataset", "ResourceName", }); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedResource_descriptor = @@ -891,10 +983,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LinkedDataset", "LinkedPubsubSubscription", "Listing", "Reference", }); - internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedDatasetMapEntry_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor = internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor, + new java.lang.String[] { + "CloudMarketplace", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor, + new java.lang.String[] { + "Order", + }); + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedDatasetMapEntry_descriptor = + internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedDatasetMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_LinkedDatasetMapEntry_descriptor, @@ -1011,7 +1123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_DeleteListingRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "DeleteCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_SubscribeListingRequest_descriptor = getDescriptor().getMessageTypes().get(23); @@ -1107,7 +1219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "RevokeCommercial", }); internal_static_google_cloud_bigquery_analyticshub_v1_RevokeSubscriptionResponse_descriptor = getDescriptor().getMessageTypes().get(35); diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequest.java index 4bb3ad06e523..495a164b98bd 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource path of the data exchange.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource path of the data exchange.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -135,7 +135,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Required. The ID of the data exchange.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -161,7 +161,7 @@ public java.lang.String getDataExchangeId() { * *
    * Required. The ID of the data exchange.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -669,7 +669,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource path of the data exchange.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -695,7 +695,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource path of the data exchange.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -721,7 +721,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource path of the data exchange.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -746,7 +746,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource path of the data exchange.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -767,7 +767,7 @@ public Builder clearParent() { * *
      * Required. The parent resource path of the data exchange.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -795,7 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Required. The ID of the data exchange.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -820,7 +820,7 @@ public java.lang.String getDataExchangeId() { * *
      * Required. The ID of the data exchange.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -845,7 +845,7 @@ public com.google.protobuf.ByteString getDataExchangeIdBytes() { * *
      * Required. The ID of the data exchange.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -869,7 +869,7 @@ public Builder setDataExchangeId(java.lang.String value) { * *
      * Required. The ID of the data exchange.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -889,7 +889,7 @@ public Builder clearDataExchangeId() { * *
      * Required. The ID of the data exchange.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequestOrBuilder.java index 6c4df9548560..a87783bb5c13 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateDataExchangeRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface CreateDataExchangeRequestOrBuilder * *
    * Required. The parent resource path of the data exchange.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -45,7 +45,7 @@ public interface CreateDataExchangeRequestOrBuilder * *
    * Required. The parent resource path of the data exchange.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -61,7 +61,7 @@ public interface CreateDataExchangeRequestOrBuilder * *
    * Required. The ID of the data exchange.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -76,7 +76,7 @@ public interface CreateDataExchangeRequestOrBuilder * *
    * Required. The ID of the data exchange.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequest.java index f429f950f97d..899b1addc675 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -135,7 +135,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * Required. The ID of the listing to create.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -161,7 +161,7 @@ public java.lang.String getListingId() { * *
    * Required. The ID of the listing to create.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -662,7 +662,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -688,7 +688,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -714,7 +714,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -739,7 +739,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -760,7 +760,7 @@ public Builder clearParent() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -788,7 +788,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * Required. The ID of the listing to create.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -813,7 +813,7 @@ public java.lang.String getListingId() { * *
      * Required. The ID of the listing to create.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -838,7 +838,7 @@ public com.google.protobuf.ByteString getListingIdBytes() { * *
      * Required. The ID of the listing to create.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -862,7 +862,7 @@ public Builder setListingId(java.lang.String value) { * *
      * Required. The ID of the listing to create.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* @@ -882,7 +882,7 @@ public Builder clearListingId() { * *
      * Required. The ID of the listing to create.
-     * Must contain only ASCII letters, numbers (0-9), underscores (_).
+     * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Max length: 100 bytes.
      * 
* diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequestOrBuilder.java index ff829715a546..bc28f5413a45 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/CreateListingRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface CreateListingRequestOrBuilder * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -45,7 +45,7 @@ public interface CreateListingRequestOrBuilder * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -61,7 +61,7 @@ public interface CreateListingRequestOrBuilder * *
    * Required. The ID of the listing to create.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* @@ -76,7 +76,7 @@ public interface CreateListingRequestOrBuilder * *
    * Required. The ID of the listing to create.
-   * Must contain only ASCII letters, numbers (0-9), underscores (_).
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Max length: 100 bytes.
    * 
* diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchange.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchange.java index 4577b28b9f75..b330b522d7e0 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchange.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchange.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Output only. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -108,7 +108,7 @@ public java.lang.String getName() { * *
    * Output only. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -536,7 +536,6 @@ public com.google.cloud.bigquery.analyticshub.v1.DiscoveryType getDiscoveryType( *
    * Optional. By default, false.
    * If true, the DataExchange has an email sharing mandate enabled.
-   * Publishers can view the logged email of the subscriber.
    * 
* * @@ -556,7 +555,6 @@ public boolean hasLogLinkedDatasetQueryUserEmail() { *
    * Optional. By default, false.
    * If true, the DataExchange has an email sharing mandate enabled.
-   * Publishers can view the logged email of the subscriber.
    * 
* * @@ -1174,7 +1172,7 @@ public Builder mergeFrom( * *
      * Output only. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1198,7 +1196,7 @@ public java.lang.String getName() { * *
      * Output only. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1222,7 +1220,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1245,7 +1243,7 @@ public Builder setName(java.lang.String value) { * *
      * Output only. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1264,7 +1262,7 @@ public Builder clearName() { * *
      * Output only. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2262,7 +2260,6 @@ public Builder clearDiscoveryType() { *
      * Optional. By default, false.
      * If true, the DataExchange has an email sharing mandate enabled.
-     * Publishers can view the logged email of the subscriber.
      * 
* * @@ -2282,7 +2279,6 @@ public boolean hasLogLinkedDatasetQueryUserEmail() { *
      * Optional. By default, false.
      * If true, the DataExchange has an email sharing mandate enabled.
-     * Publishers can view the logged email of the subscriber.
      * 
* * @@ -2302,7 +2298,6 @@ public boolean getLogLinkedDatasetQueryUserEmail() { *
      * Optional. By default, false.
      * If true, the DataExchange has an email sharing mandate enabled.
-     * Publishers can view the logged email of the subscriber.
      * 
* * @@ -2326,7 +2321,6 @@ public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { *
      * Optional. By default, false.
      * If true, the DataExchange has an email sharing mandate enabled.
-     * Publishers can view the logged email of the subscriber.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeOrBuilder.java index 3726eb6610d6..7703ed4d8299 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DataExchangeOrBuilder.java @@ -29,7 +29,7 @@ public interface DataExchangeOrBuilder * *
    * Output only. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -43,7 +43,7 @@ public interface DataExchangeOrBuilder * *
    * Output only. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -303,7 +303,6 @@ public interface DataExchangeOrBuilder *
    * Optional. By default, false.
    * If true, the DataExchange has an email sharing mandate enabled.
-   * Publishers can view the logged email of the subscriber.
    * 
* * @@ -320,7 +319,6 @@ public interface DataExchangeOrBuilder *
    * Optional. By default, false.
    * If true, the DataExchange has an email sharing mandate enabled.
-   * Publishers can view the logged email of the subscriber.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequest.java index 2d8658ea9c52..a1e174e3335e 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The full name of the data exchange resource that you want to
-   * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. The full name of the data exchange resource that you want to
-   * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -482,7 +482,7 @@ public Builder mergeFrom( * *
      * Required. The full name of the data exchange resource that you want to
-     * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+     * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -508,7 +508,7 @@ public java.lang.String getName() { * *
      * Required. The full name of the data exchange resource that you want to
-     * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+     * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The full name of the data exchange resource that you want to
-     * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+     * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -559,7 +559,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The full name of the data exchange resource that you want to
-     * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+     * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -580,7 +580,7 @@ public Builder clearName() { * *
      * Required. The full name of the data exchange resource that you want to
-     * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+     * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequestOrBuilder.java index 22544e1b05e9..f8d463c0ee61 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteDataExchangeRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteDataExchangeRequestOrBuilder * *
    * Required. The full name of the data exchange resource that you want to
-   * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -45,7 +45,7 @@ public interface DeleteDataExchangeRequestOrBuilder * *
    * Required. The full name of the data exchange resource that you want to
-   * delete. For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * delete. For example, `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequest.java index 565c90cf96af..b3d5bdd516f1 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -123,6 +123,27 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DELETE_COMMERCIAL_FIELD_NUMBER = 2; + private boolean deleteCommercial_ = false; + + /** + * + * + *
+   * Optional. If the listing is commercial then this field must be set to true,
+   * otherwise a failure is thrown. This acts as a safety guard to avoid
+   * deleting commercial listings accidentally.
+   * 
+ * + * bool delete_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleteCommercial. + */ + @java.lang.Override + public boolean getDeleteCommercial() { + return deleteCommercial_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (deleteCommercial_ != false) { + output.writeBool(2, deleteCommercial_); + } getUnknownFields().writeTo(output); } @@ -152,6 +176,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (deleteCommercial_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, deleteCommercial_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +196,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.bigquery.analyticshub.v1.DeleteListingRequest) obj; if (!getName().equals(other.getName())) return false; + if (getDeleteCommercial() != other.getDeleteCommercial()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,6 +210,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DELETE_COMMERCIAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteCommercial()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -324,6 +354,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + deleteCommercial_ = false; return this; } @@ -365,6 +396,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deleteCommercial_ = deleteCommercial_; + } } @java.lang.Override @@ -419,6 +453,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.DeleteListing bitField0_ |= 0x00000001; onChanged(); } + if (other.getDeleteCommercial() != false) { + setDeleteCommercial(other.getDeleteCommercial()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -451,6 +488,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + deleteCommercial_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -477,7 +520,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the listing to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -503,7 +546,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the listing to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -529,7 +572,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the listing to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -554,7 +597,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the listing to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -575,7 +618,7 @@ public Builder clearName() { * *
      * Required. Resource name of the listing to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -596,6 +639,68 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean deleteCommercial_; + + /** + * + * + *
+     * Optional. If the listing is commercial then this field must be set to true,
+     * otherwise a failure is thrown. This acts as a safety guard to avoid
+     * deleting commercial listings accidentally.
+     * 
+ * + * bool delete_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleteCommercial. + */ + @java.lang.Override + public boolean getDeleteCommercial() { + return deleteCommercial_; + } + + /** + * + * + *
+     * Optional. If the listing is commercial then this field must be set to true,
+     * otherwise a failure is thrown. This acts as a safety guard to avoid
+     * deleting commercial listings accidentally.
+     * 
+ * + * bool delete_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The deleteCommercial to set. + * @return This builder for chaining. + */ + public Builder setDeleteCommercial(boolean value) { + + deleteCommercial_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If the listing is commercial then this field must be set to true,
+     * otherwise a failure is thrown. This acts as a safety guard to avoid
+     * deleting commercial listings accidentally.
+     * 
+ * + * bool delete_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDeleteCommercial() { + bitField0_ = (bitField0_ & ~0x00000002); + deleteCommercial_ = 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-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequestOrBuilder.java index bd6e9da780df..d3960688cf75 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteListingRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteListingRequestOrBuilder * *
    * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -45,7 +45,7 @@ public interface DeleteListingRequestOrBuilder * *
    * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -55,4 +55,19 @@ public interface DeleteListingRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If the listing is commercial then this field must be set to true,
+   * otherwise a failure is thrown. This acts as a safety guard to avoid
+   * deleting commercial listings accidentally.
+   * 
+ * + * bool delete_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The deleteCommercial. + */ + boolean getDeleteCommercial(); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequest.java index 872d735f8986..684c5b49395d 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the subscription to delete.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the subscription to delete.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -482,7 +482,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the subscription to delete.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -508,7 +508,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the subscription to delete.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the subscription to delete.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -559,7 +559,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the subscription to delete.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -580,7 +580,7 @@ public Builder clearName() { * *
      * Required. Resource name of the subscription to delete.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequestOrBuilder.java index c6f73db6bb8e..b9bdd2f3e579 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription to delete.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -45,7 +45,7 @@ public interface DeleteSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription to delete.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequest.java index 2eedf7a3e012..a12e7a91185a 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -478,7 +478,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -504,7 +504,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -530,7 +530,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -555,7 +555,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -576,7 +576,7 @@ public Builder clearName() { * *
      * Required. The resource name of the data exchange.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequestOrBuilder.java index 9afb580a51cc..1ba8e3933ef2 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetDataExchangeRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetDataExchangeRequestOrBuilder * *
    * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -45,7 +45,7 @@ public interface GetDataExchangeRequestOrBuilder * *
    * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequest.java index 29eb674cf9b3..4d99f16ad17f 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -474,7 +474,7 @@ public Builder mergeFrom( * *
      * Required. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -500,7 +500,7 @@ public java.lang.String getName() { * *
      * Required. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -526,7 +526,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -551,7 +551,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -572,7 +572,7 @@ public Builder clearName() { * *
      * Required. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequestOrBuilder.java index 368fa7872605..383ffe15cdd4 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetListingRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetListingRequestOrBuilder * *
    * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -45,7 +45,7 @@ public interface GetListingRequestOrBuilder * *
    * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequest.java index 2cda6b7372b7..3aedd61ed789 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the subscription.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the subscription.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -478,7 +478,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the subscription.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -504,7 +504,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the subscription.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -530,7 +530,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the subscription.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -555,7 +555,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the subscription.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -576,7 +576,7 @@ public Builder clearName() { * *
      * Required. Resource name of the subscription.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequestOrBuilder.java index 8428752b7238..0c353fa03a33 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/GetSubscriptionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -45,7 +45,7 @@ public interface GetSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequest.java index f6dc23dd0851..bd127ffcec55 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource path of the data exchanges.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -102,7 +102,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource path of the data exchanges.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -604,7 +604,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource path of the data exchanges.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -630,7 +630,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource path of the data exchanges.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -656,7 +656,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource path of the data exchanges.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -681,7 +681,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource path of the data exchanges.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * @@ -702,7 +702,7 @@ public Builder clearParent() { * *
      * Required. The parent resource path of the data exchanges.
-     * e.g. `projects/myproject/locations/US`.
+     * e.g. `projects/myproject/locations/us`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequestOrBuilder.java index 71a4e6382445..f76e30207174 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListDataExchangesRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListDataExchangesRequestOrBuilder * *
    * Required. The parent resource path of the data exchanges.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * @@ -45,7 +45,7 @@ public interface ListDataExchangesRequestOrBuilder * *
    * Required. The parent resource path of the data exchanges.
-   * e.g. `projects/myproject/locations/US`.
+   * e.g. `projects/myproject/locations/us`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequest.java index a779fede2cef..6fc04d912f58 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -102,7 +102,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -599,7 +599,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -625,7 +625,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -651,7 +651,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -676,7 +676,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * @@ -697,7 +697,7 @@ public Builder clearParent() { * *
      * Required. The parent resource path of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequestOrBuilder.java index d70fd194e956..fcf1480a278b 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListListingsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListListingsRequestOrBuilder * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * @@ -45,7 +45,7 @@ public interface ListListingsRequestOrBuilder * *
    * Required. The parent resource path of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequest.java index c321184d3b6b..fd73b059b7cf 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The organization resource path of the projects containing
-   * DataExchanges. e.g. `organizations/myorg/locations/US`.
+   * DataExchanges. e.g. `organizations/myorg/locations/us`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -101,7 +101,7 @@ public java.lang.String getOrganization() { * *
    * Required. The organization resource path of the projects containing
-   * DataExchanges. e.g. `organizations/myorg/locations/US`.
+   * DataExchanges. e.g. `organizations/myorg/locations/us`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -602,7 +602,7 @@ public Builder mergeFrom( * *
      * Required. The organization resource path of the projects containing
-     * DataExchanges. e.g. `organizations/myorg/locations/US`.
+     * DataExchanges. e.g. `organizations/myorg/locations/us`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -626,7 +626,7 @@ public java.lang.String getOrganization() { * *
      * Required. The organization resource path of the projects containing
-     * DataExchanges. e.g. `organizations/myorg/locations/US`.
+     * DataExchanges. e.g. `organizations/myorg/locations/us`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -650,7 +650,7 @@ public com.google.protobuf.ByteString getOrganizationBytes() { * *
      * Required. The organization resource path of the projects containing
-     * DataExchanges. e.g. `organizations/myorg/locations/US`.
+     * DataExchanges. e.g. `organizations/myorg/locations/us`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -673,7 +673,7 @@ public Builder setOrganization(java.lang.String value) { * *
      * Required. The organization resource path of the projects containing
-     * DataExchanges. e.g. `organizations/myorg/locations/US`.
+     * DataExchanges. e.g. `organizations/myorg/locations/us`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -692,7 +692,7 @@ public Builder clearOrganization() { * *
      * Required. The organization resource path of the projects containing
-     * DataExchanges. e.g. `organizations/myorg/locations/US`.
+     * DataExchanges. e.g. `organizations/myorg/locations/us`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequestOrBuilder.java index ae501b4d293c..ca9225e1337c 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListOrgDataExchangesRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListOrgDataExchangesRequestOrBuilder * *
    * Required. The organization resource path of the projects containing
-   * DataExchanges. e.g. `organizations/myorg/locations/US`.
+   * DataExchanges. e.g. `organizations/myorg/locations/us`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,7 +43,7 @@ public interface ListOrgDataExchangesRequestOrBuilder * *
    * Required. The organization resource path of the projects containing
-   * DataExchanges. e.g. `organizations/myorg/locations/US`.
+   * DataExchanges. e.g. `organizations/myorg/locations/us`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequest.java index 3291dfa75f08..0b6b039e6b0f 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequest.java @@ -80,8 +80,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. Resource name of the requested target. This resource may be
    * either a Listing or a DataExchange. e.g.
-   * projects/123/locations/US/dataExchanges/456 OR e.g.
-   * projects/123/locations/US/dataExchanges/456/listings/789
+   * projects/123/locations/us/dataExchanges/456 OR e.g.
+   * projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * @@ -109,8 +109,8 @@ public java.lang.String getResource() { *
    * Required. Resource name of the requested target. This resource may be
    * either a Listing or a DataExchange. e.g.
-   * projects/123/locations/US/dataExchanges/456 OR e.g.
-   * projects/123/locations/US/dataExchanges/456/listings/789
+   * projects/123/locations/us/dataExchanges/456 OR e.g.
+   * projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * @@ -670,8 +670,8 @@ public Builder mergeFrom( *
      * Required. Resource name of the requested target. This resource may be
      * either a Listing or a DataExchange. e.g.
-     * projects/123/locations/US/dataExchanges/456 OR e.g.
-     * projects/123/locations/US/dataExchanges/456/listings/789
+     * projects/123/locations/us/dataExchanges/456 OR e.g.
+     * projects/123/locations/us/dataExchanges/456/listings/789
      * 
* * @@ -698,8 +698,8 @@ public java.lang.String getResource() { *
      * Required. Resource name of the requested target. This resource may be
      * either a Listing or a DataExchange. e.g.
-     * projects/123/locations/US/dataExchanges/456 OR e.g.
-     * projects/123/locations/US/dataExchanges/456/listings/789
+     * projects/123/locations/us/dataExchanges/456 OR e.g.
+     * projects/123/locations/us/dataExchanges/456/listings/789
      * 
* * @@ -726,8 +726,8 @@ public com.google.protobuf.ByteString getResourceBytes() { *
      * Required. Resource name of the requested target. This resource may be
      * either a Listing or a DataExchange. e.g.
-     * projects/123/locations/US/dataExchanges/456 OR e.g.
-     * projects/123/locations/US/dataExchanges/456/listings/789
+     * projects/123/locations/us/dataExchanges/456 OR e.g.
+     * projects/123/locations/us/dataExchanges/456/listings/789
      * 
* * @@ -753,8 +753,8 @@ public Builder setResource(java.lang.String value) { *
      * Required. Resource name of the requested target. This resource may be
      * either a Listing or a DataExchange. e.g.
-     * projects/123/locations/US/dataExchanges/456 OR e.g.
-     * projects/123/locations/US/dataExchanges/456/listings/789
+     * projects/123/locations/us/dataExchanges/456 OR e.g.
+     * projects/123/locations/us/dataExchanges/456/listings/789
      * 
* * @@ -776,8 +776,8 @@ public Builder clearResource() { *
      * Required. Resource name of the requested target. This resource may be
      * either a Listing or a DataExchange. e.g.
-     * projects/123/locations/US/dataExchanges/456 OR e.g.
-     * projects/123/locations/US/dataExchanges/456/listings/789
+     * projects/123/locations/us/dataExchanges/456 OR e.g.
+     * projects/123/locations/us/dataExchanges/456/listings/789
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequestOrBuilder.java index a54c806a4a3b..e61df45fe839 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSharedResourceSubscriptionsRequestOrBuilder.java @@ -30,8 +30,8 @@ public interface ListSharedResourceSubscriptionsRequestOrBuilder *
    * Required. Resource name of the requested target. This resource may be
    * either a Listing or a DataExchange. e.g.
-   * projects/123/locations/US/dataExchanges/456 OR e.g.
-   * projects/123/locations/US/dataExchanges/456/listings/789
+   * projects/123/locations/us/dataExchanges/456 OR e.g.
+   * projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * @@ -48,8 +48,8 @@ public interface ListSharedResourceSubscriptionsRequestOrBuilder *
    * Required. Resource name of the requested target. This resource may be
    * either a Listing or a DataExchange. e.g.
-   * projects/123/locations/US/dataExchanges/456 OR e.g.
-   * projects/123/locations/US/dataExchanges/456/listings/789
+   * projects/123/locations/us/dataExchanges/456 OR e.g.
+   * projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequest.java index 959c3cc23760..383f9e9083f0 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource path of the subscription.
-   * e.g. projects/myproject/locations/US
+   * e.g. projects/myproject/locations/us
    * 
* * @@ -103,7 +103,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource path of the subscription.
-   * e.g. projects/myproject/locations/US
+   * e.g. projects/myproject/locations/us
    * 
* * @@ -137,8 +137,8 @@ public com.google.protobuf.ByteString getParentBytes() { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -146,9 +146,9 @@ public com.google.protobuf.ByteString getParentBytes() { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -175,8 +175,8 @@ public java.lang.String getFilter() { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -184,9 +184,9 @@ public java.lang.String getFilter() { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -707,7 +707,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource path of the subscription.
-     * e.g. projects/myproject/locations/US
+     * e.g. projects/myproject/locations/us
      * 
* * @@ -733,7 +733,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource path of the subscription.
-     * e.g. projects/myproject/locations/US
+     * e.g. projects/myproject/locations/us
      * 
* * @@ -759,7 +759,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource path of the subscription.
-     * e.g. projects/myproject/locations/US
+     * e.g. projects/myproject/locations/us
      * 
* * @@ -784,7 +784,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource path of the subscription.
-     * e.g. projects/myproject/locations/US
+     * e.g. projects/myproject/locations/us
      * 
* * @@ -805,7 +805,7 @@ public Builder clearParent() { * *
      * Required. The parent resource path of the subscription.
-     * e.g. projects/myproject/locations/US
+     * e.g. projects/myproject/locations/us
      * 
* * @@ -835,8 +835,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -844,9 +844,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -872,8 +872,8 @@ public java.lang.String getFilter() { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -881,9 +881,9 @@ public java.lang.String getFilter() { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -909,8 +909,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -918,9 +918,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -945,8 +945,8 @@ public Builder setFilter(java.lang.String value) { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -954,9 +954,9 @@ public Builder setFilter(java.lang.String value) { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -977,8 +977,8 @@ public Builder clearFilter() { * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -986,9 +986,9 @@ public Builder clearFilter() { * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequestOrBuilder.java index b93400a7ee29..d501e1fa9522 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListSubscriptionsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListSubscriptionsRequestOrBuilder * *
    * Required. The parent resource path of the subscription.
-   * e.g. projects/myproject/locations/US
+   * e.g. projects/myproject/locations/us
    * 
* * @@ -45,7 +45,7 @@ public interface ListSubscriptionsRequestOrBuilder * *
    * Required. The parent resource path of the subscription.
-   * e.g. projects/myproject/locations/US
+   * e.g. projects/myproject/locations/us
    * 
* * @@ -63,8 +63,8 @@ public interface ListSubscriptionsRequestOrBuilder * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -72,9 +72,9 @@ public interface ListSubscriptionsRequestOrBuilder * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; @@ -90,8 +90,8 @@ public interface ListSubscriptionsRequestOrBuilder * An expression for filtering the results of the request. Eligible * fields for filtering are: * - * * `listing` - * * `data_exchange` + * + `listing` + * + `data_exchange` * * Alternatively, a literal wrapped in double quotes may be provided. * This will be checked for an exact match against both fields above. @@ -99,9 +99,9 @@ public interface ListSubscriptionsRequestOrBuilder * In all cases, the full Data Exchange or Listing resource name must * be provided. Some example of using filters: * - * * data_exchange="projects/myproject/locations/us/dataExchanges/123" - * * listing="projects/123/locations/us/dataExchanges/456/listings/789" - * * "projects/myproject/locations/us/dataExchanges/123" + * + data_exchange="projects/myproject/locations/us/dataExchanges/123" + * + listing="projects/123/locations/us/dataExchanges/456/listings/789" + * + "projects/myproject/locations/us/dataExchanges/123" * * * string filter = 2; diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java index a73268a57926..cf0aa22181b4 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Listing.java @@ -728,6 +728,60 @@ public interface SelectedResourceOrBuilder */ com.google.protobuf.ByteString getTableBytes(); + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the routine field is set. + */ + boolean hasRoutine(); + + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The routine. + */ + java.lang.String getRoutine(); + + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for routine. + */ + com.google.protobuf.ByteString getRoutineBytes(); + com.google.cloud.bigquery.analyticshub.v1.Listing.BigQueryDatasetSource.SelectedResource .ResourceCase getResourceCase(); @@ -789,6 +843,7 @@ public enum ResourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TABLE(1), + ROUTINE(2), RESOURCE_NOT_SET(0); private final int value; @@ -810,6 +865,8 @@ public static ResourceCase forNumber(int value) { switch (value) { case 1: return TABLE; + case 2: + return ROUTINE; case 0: return RESOURCE_NOT_SET; default: @@ -914,6 +971,94 @@ public com.google.protobuf.ByteString getTableBytes() { } } + public static final int ROUTINE_FIELD_NUMBER = 2; + + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the routine field is set. + */ + public boolean hasRoutine() { + return resourceCase_ == 2; + } + + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The routine. + */ + public java.lang.String getRoutine() { + java.lang.Object ref = ""; + if (resourceCase_ == 2) { + ref = resource_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resourceCase_ == 2) { + resource_ = s; + } + return s; + } + } + + /** + * + * + *
+       * Optional. Format:
+       * For routine:
+       * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+       * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+       * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for routine. + */ + public com.google.protobuf.ByteString getRoutineBytes() { + java.lang.Object ref = ""; + if (resourceCase_ == 2) { + ref = resource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceCase_ == 2) { + resource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -931,6 +1076,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } + if (resourceCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); + } getUnknownFields().writeTo(output); } @@ -943,6 +1091,9 @@ public int getSerializedSize() { if (resourceCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } + if (resourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -970,6 +1121,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getTable().equals(other.getTable())) return false; break; + case 2: + if (!getRoutine().equals(other.getRoutine())) return false; + break; case 0: default: } @@ -989,6 +1143,10 @@ public int hashCode() { hash = (37 * hash) + TABLE_FIELD_NUMBER; hash = (53 * hash) + getTable().hashCode(); break; + case 2: + hash = (37 * hash) + ROUTINE_FIELD_NUMBER; + hash = (53 * hash) + getRoutine().hashCode(); + break; case 0: default: } @@ -1286,6 +1444,13 @@ public Builder mergeFrom( onChanged(); break; } + case ROUTINE: + { + resourceCase_ = 2; + resource_ = other.resource_; + onChanged(); + break; + } case RESOURCE_NOT_SET: { break; @@ -1324,6 +1489,13 @@ public Builder mergeFrom( resource_ = s; break; } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + resourceCase_ = 2; + resource_ = s; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1526,6 +1698,175 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the routine field is set. + */ + @java.lang.Override + public boolean hasRoutine() { + return resourceCase_ == 2; + } + + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The routine. + */ + @java.lang.Override + public java.lang.String getRoutine() { + java.lang.Object ref = ""; + if (resourceCase_ == 2) { + ref = resource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resourceCase_ == 2) { + resource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for routine. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoutineBytes() { + java.lang.Object ref = ""; + if (resourceCase_ == 2) { + ref = resource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceCase_ == 2) { + resource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The routine to set. + * @return This builder for chaining. + */ + public Builder setRoutine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceCase_ = 2; + resource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRoutine() { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. Format:
+         * For routine:
+         * `projects/{projectId}/datasets/{datasetId}/routines/{routineId}`
+         * Example:"projects/test_project/datasets/test_dataset/routines/test_routine"
+         * 
+ * + * + * string routine = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for routine to set. + * @return This builder for chaining. + */ + public Builder setRoutineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceCase_ = 2; + resource_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6729,20 +7070,2147 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int sourceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object source_; + public interface CommercialInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) + com.google.protobuf.MessageOrBuilder { - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BIGQUERY_DATASET(6), - PUBSUB_TOPIC(16), - SOURCE_NOT_SET(0); - private final int value; + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. + */ + boolean hasCloudMarketplace(); + + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo + getCloudMarketplace(); + + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder(); + } + + /** + * + * + *
+   * Commercial info contains the information about the commercial data products
+   * associated with the listing.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo} + */ + public static final class CommercialInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) + CommercialInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CommercialInfo.newBuilder() to construct. + private CommercialInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommercialInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommercialInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder.class); + } + + public interface GoogleCloudMarketplaceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the service field is set. + */ + boolean hasService(); + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + java.lang.String getService(); + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + com.google.protobuf.ByteString getServiceBytes(); + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialState field is set. + */ + boolean hasCommercialState(); + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for commercialState. + */ + int getCommercialStateValue(); + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialState. + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo + .CommercialState + getCommercialState(); + } + + /** + * + * + *
+     * Specifies the details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo} + */ + public static final class GoogleCloudMarketplaceInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo) + GoogleCloudMarketplaceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GoogleCloudMarketplaceInfo.newBuilder() to construct. + private GoogleCloudMarketplaceInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleCloudMarketplaceInfo() { + service_ = ""; + commercialState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleCloudMarketplaceInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder.class); + } + + /** + * + * + *
+       * Indicates whether this commercial access is currently active.
+       * 
+ * + * Protobuf enum {@code + * google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState} + */ + public enum CommercialState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+         * Commercialization is incomplete and cannot be used.
+         * 
+ * + * COMMERCIAL_STATE_UNSPECIFIED = 0; + */ + COMMERCIAL_STATE_UNSPECIFIED(0), + /** + * + * + *
+         * Commercialization has been initialized.
+         * 
+ * + * ONBOARDING = 1; + */ + ONBOARDING(1), + /** + * + * + *
+         * Commercialization is complete and available for use.
+         * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+         * Commercialization is incomplete and cannot be used.
+         * 
+ * + * COMMERCIAL_STATE_UNSPECIFIED = 0; + */ + public static final int COMMERCIAL_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+         * Commercialization has been initialized.
+         * 
+ * + * ONBOARDING = 1; + */ + public static final int ONBOARDING_VALUE = 1; + + /** + * + * + *
+         * Commercialization is complete and available for use.
+         * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_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 CommercialState 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 CommercialState forNumber(int value) { + switch (value) { + case 0: + return COMMERCIAL_STATE_UNSPECIFIED; + case 1: + return ONBOARDING; + case 2: + return ACTIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CommercialState findValueByNumber(int number) { + return CommercialState.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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CommercialState[] VALUES = values(); + + public static CommercialState 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 CommercialState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState) + } + + private int bitField0_; + public static final int SERVICE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + @java.lang.Override + public java.lang.String getService() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } + } + + /** + * + * + *
+       * Output only. Resource name of the commercial service associated with
+       * the Marketplace Data Product. e.g. example.com
+       * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMERCIAL_STATE_FIELD_NUMBER = 3; + private int commercialState_ = 0; + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialState field is set. + */ + @java.lang.Override + public boolean hasCommercialState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for commercialState. + */ + @java.lang.Override + public int getCommercialStateValue() { + return commercialState_; + } + + /** + * + * + *
+       * Output only. Commercial state of the Marketplace Data Product.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState + getCommercialState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo + .CommercialState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState.forNumber(commercialState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState.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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, commercialState_); + } + 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, service_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, commercialState_); + } + 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo + other = + (com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo) + obj; + + if (hasService() != other.hasService()) return false; + if (hasService()) { + if (!getService().equals(other.getService())) return false; + } + if (hasCommercialState() != other.hasCommercialState()) return false; + if (hasCommercialState()) { + if (commercialState_ != other.commercialState_) 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 (hasService()) { + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + } + if (hasCommercialState()) { + hash = (37 * hash) + COMMERCIAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + commercialState_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseDelimitedFrom( + java.io.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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + 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 details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo) + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + service_ = ""; + commercialState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + build() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + result = + new com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commercialState_ = commercialState_; + 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance()) return this; + if (other.hasService()) { + service_ = other.service_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCommercialState()) { + setCommercialState(other.getCommercialState()); + } + 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: + { + service_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + commercialState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object service_ = ""; + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the service field is set. + */ + public boolean hasService() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The service. + */ + public java.lang.String getService() { + java.lang.Object ref = service_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + service_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for service. + */ + public com.google.protobuf.ByteString getServiceBytes() { + java.lang.Object ref = service_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + service_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The service to set. + * @return This builder for chaining. + */ + public Builder setService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearService() { + service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Resource name of the commercial service associated with
+         * the Marketplace Data Product. e.g. example.com
+         * 
+ * + * + * optional string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for service to set. + * @return This builder for chaining. + */ + public Builder setServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int commercialState_ = 0; + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialState field is set. + */ + @java.lang.Override + public boolean hasCommercialState() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for commercialState. + */ + @java.lang.Override + public int getCommercialStateValue() { + return commercialState_; + } + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for commercialState to set. + * @return This builder for chaining. + */ + public Builder setCommercialStateValue(int value) { + commercialState_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialState. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState + getCommercialState() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState + result = + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState.forNumber(commercialState_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The commercialState to set. + * @return This builder for chaining. + */ + public Builder setCommercialState( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.CommercialState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + commercialState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+         * Output only. Commercial state of the Marketplace Data Product.
+         * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo.CommercialState commercial_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCommercialState() { + bitField0_ = (bitField0_ & ~0x00000002); + commercialState_ = 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.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo) + private static final com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleCloudMarketplaceInfo 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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CLOUD_MARKETPLACE_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + cloudMarketplace_; + + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. + */ + @java.lang.Override + public boolean hasCloudMarketplace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + getCloudMarketplace() { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + + /** + * + * + *
+     * Output only. Details of the Marketplace Data Product associated with the
+     * Listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder() { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + + 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, getCloudMarketplace()); + } + 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, getCloudMarketplace()); + } + 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.bigquery.analyticshub.v1.Listing.CommercialInfo)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo other = + (com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) obj; + + if (hasCloudMarketplace() != other.hasCloudMarketplace()) return false; + if (hasCloudMarketplace()) { + if (!getCloudMarketplace().equals(other.getCloudMarketplace())) 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 (hasCloudMarketplace()) { + hash = (37 * hash) + CLOUD_MARKETPLACE_FIELD_NUMBER; + hash = (53 * hash) + getCloudMarketplace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo 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.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo 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.bigquery.analyticshub.v1.Listing.CommercialInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + parseDelimitedFrom( + java.io.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.bigquery.analyticshub.v1.Listing.CommercialInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo 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.bigquery.analyticshub.v1.Listing.CommercialInfo 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; + } + + /** + * + * + *
+     * Commercial info contains the information about the commercial data products
+     * associated with the listing.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCloudMarketplaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudMarketplace_ = null; + if (cloudMarketplaceBuilder_ != null) { + cloudMarketplaceBuilder_.dispose(); + cloudMarketplaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Listing_CommercialInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo build() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo result = + new com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudMarketplace_ = + cloudMarketplaceBuilder_ == null + ? cloudMarketplace_ + : cloudMarketplaceBuilder_.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.bigquery.analyticshub.v1.Listing.CommercialInfo) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .getDefaultInstance()) return this; + if (other.hasCloudMarketplace()) { + mergeCloudMarketplace(other.getCloudMarketplace()); + } + 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( + getCloudMarketplaceFieldBuilder().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.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + cloudMarketplace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder> + cloudMarketplaceBuilder_; + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. + */ + public boolean hasCloudMarketplace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + getCloudMarketplace() { + if (cloudMarketplaceBuilder_ == null) { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } else { + return cloudMarketplaceBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + value) { + if (cloudMarketplaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudMarketplace_ = value; + } else { + cloudMarketplaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder + builderForValue) { + if (cloudMarketplaceBuilder_ == null) { + cloudMarketplace_ = builderForValue.build(); + } else { + cloudMarketplaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo + value) { + if (cloudMarketplaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cloudMarketplace_ != null + && cloudMarketplace_ + != com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance()) { + getCloudMarketplaceBuilder().mergeFrom(value); + } else { + cloudMarketplace_ = value; + } + } else { + cloudMarketplaceBuilder_.mergeFrom(value); + } + if (cloudMarketplace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloudMarketplace() { + bitField0_ = (bitField0_ & ~0x00000001); + cloudMarketplace_ = null; + if (cloudMarketplaceBuilder_ != null) { + cloudMarketplaceBuilder_.dispose(); + cloudMarketplaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder + getCloudMarketplaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCloudMarketplaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder() { + if (cloudMarketplaceBuilder_ != null) { + return cloudMarketplaceBuilder_.getMessageOrBuilder(); + } else { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + } + + /** + * + * + *
+       * Output only. Details of the Marketplace Data Product associated with the
+       * Listing.
+       * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder> + getCloudMarketplaceFieldBuilder() { + if (cloudMarketplaceBuilder_ == null) { + cloudMarketplaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder>( + getCloudMarketplace(), getParentForChildren(), isClean()); + cloudMarketplace_ = null; + } + return cloudMarketplaceBuilder_; + } + + @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.bigquery.analyticshub.v1.Listing.CommercialInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo) + private static final com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommercialInfo 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.bigquery.analyticshub.v1.Listing.CommercialInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIGQUERY_DATASET(6), + PUBSUB_TOPIC(16), + SOURCE_NOT_SET(0); + private final int value; private SourceCase(int value) { this.value = value; @@ -6912,7 +9380,7 @@ public com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource getPu * *
    * Output only. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6937,7 +9405,7 @@ public java.lang.String getName() { * *
    * Output only. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -7698,22 +10166,85 @@ public int getResourceTypeValue() { * * *
-   * Output only. Listing shared asset type.
+   * Output only. Listing shared asset type.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resourceType. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType() { + com.google.cloud.bigquery.analyticshub.v1.SharedResourceType result = + com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.forNumber(resourceType_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.UNRECOGNIZED + : result; + } + + public static final int COMMERCIAL_INFO_FIELD_NUMBER = 17; + private com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercialInfo_; + + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
+   * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialInfo field is set. + */ + @java.lang.Override + public boolean hasCommercialInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
+   * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo getCommercialInfo() { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.getDefaultInstance() + : commercialInfo_; + } + + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
    * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The resourceType. */ @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType() { - com.google.cloud.bigquery.analyticshub.v1.SharedResourceType result = - com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.forNumber(resourceType_); - return result == null - ? com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.UNRECOGNIZED - : result; + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder + getCommercialInfoOrBuilder() { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.getDefaultInstance() + : commercialInfo_; } public static final int LOG_LINKED_DATASET_QUERY_USER_EMAIL_FIELD_NUMBER = 18; @@ -7735,7 +10266,7 @@ public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceT */ @java.lang.Override public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -7757,6 +10288,45 @@ public boolean getLogLinkedDatasetQueryUserEmail() { return logLinkedDatasetQueryUserEmail_; } + public static final int ALLOW_ONLY_METADATA_SHARING_FIELD_NUMBER = 19; + private boolean allowOnlyMetadataSharing_ = false; + + /** + * + * + *
+   * Optional. If true, the listing is only available to get the resource
+   * metadata. Listing is non subscribable.
+   * 
+ * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowOnlyMetadataSharing field is set. + */ + @java.lang.Override + public boolean hasAllowOnlyMetadataSharing() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. If true, the listing is only available to get the resource
+   * metadata. Listing is non subscribable.
+   * 
+ * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowOnlyMetadataSharing. + */ + @java.lang.Override + public boolean getAllowOnlyMetadataSharing() { + return allowOnlyMetadataSharing_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7831,8 +10401,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 16, (com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource) source_); } if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(17, getCommercialInfo()); + } + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(18, logLinkedDatasetQueryUserEmail_); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(19, allowOnlyMetadataSharing_); + } getUnknownFields().writeTo(output); } @@ -7909,10 +10485,16 @@ public int getSerializedSize() { 16, (com.google.cloud.bigquery.analyticshub.v1.Listing.PubSubTopicSource) source_); } if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getCommercialInfo()); + } + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 18, logLinkedDatasetQueryUserEmail_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, allowOnlyMetadataSharing_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7955,12 +10537,20 @@ public boolean equals(final java.lang.Object obj) { if (discoveryType_ != other.discoveryType_) return false; } if (resourceType_ != other.resourceType_) return false; + if (hasCommercialInfo() != other.hasCommercialInfo()) return false; + if (hasCommercialInfo()) { + if (!getCommercialInfo().equals(other.getCommercialInfo())) return false; + } if (hasLogLinkedDatasetQueryUserEmail() != other.hasLogLinkedDatasetQueryUserEmail()) return false; if (hasLogLinkedDatasetQueryUserEmail()) { if (getLogLinkedDatasetQueryUserEmail() != other.getLogLinkedDatasetQueryUserEmail()) return false; } + if (hasAllowOnlyMetadataSharing() != other.hasAllowOnlyMetadataSharing()) return false; + if (hasAllowOnlyMetadataSharing()) { + if (getAllowOnlyMetadataSharing() != other.getAllowOnlyMetadataSharing()) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 6: @@ -8021,12 +10611,20 @@ public int hashCode() { } hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; + if (hasCommercialInfo()) { + hash = (37 * hash) + COMMERCIAL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCommercialInfo().hashCode(); + } if (hasLogLinkedDatasetQueryUserEmail()) { hash = (37 * hash) + LOG_LINKED_DATASET_QUERY_USER_EMAIL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogLinkedDatasetQueryUserEmail()); } + if (hasAllowOnlyMetadataSharing()) { + hash = (37 * hash) + ALLOW_ONLY_METADATA_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowOnlyMetadataSharing()); + } switch (sourceCase_) { case 6: hash = (37 * hash) + BIGQUERY_DATASET_FIELD_NUMBER; @@ -8186,6 +10784,7 @@ private void maybeForceBuilderInitialization() { getDataProviderFieldBuilder(); getPublisherFieldBuilder(); getRestrictedExportConfigFieldBuilder(); + getCommercialInfoFieldBuilder(); } } @@ -8226,7 +10825,13 @@ public Builder clear() { } discoveryType_ = 0; resourceType_ = 0; + commercialInfo_ = null; + if (commercialInfoBuilder_ != null) { + commercialInfoBuilder_.dispose(); + commercialInfoBuilder_ = null; + } logLinkedDatasetQueryUserEmail_ = false; + allowOnlyMetadataSharing_ = false; sourceCase_ = 0; source_ = null; return this; @@ -8325,9 +10930,18 @@ private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.Listing res result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; + result.commercialInfo_ = + commercialInfoBuilder_ == null ? commercialInfo_ : commercialInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.allowOnlyMetadataSharing_ = allowOnlyMetadataSharing_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -8449,9 +11063,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.Listing other if (other.resourceType_ != 0) { setResourceTypeValue(other.getResourceTypeValue()); } + if (other.hasCommercialInfo()) { + mergeCommercialInfo(other.getCommercialInfo()); + } if (other.hasLogLinkedDatasetQueryUserEmail()) { setLogLinkedDatasetQueryUserEmail(other.getLogLinkedDatasetQueryUserEmail()); } + if (other.hasAllowOnlyMetadataSharing()) { + setAllowOnlyMetadataSharing(other.getAllowOnlyMetadataSharing()); + } switch (other.getSourceCase()) { case BIGQUERY_DATASET: { @@ -8604,12 +11224,24 @@ public Builder mergeFrom( sourceCase_ = 16; break; } // case 130 + case 138: + { + input.readMessage(getCommercialInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 case 144: { logLinkedDatasetQueryUserEmail_ = input.readBool(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 144 + case 152: + { + allowOnlyMetadataSharing_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9139,7 +11771,7 @@ public Builder clearPubsubTopic() { * *
      * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9163,7 +11795,7 @@ public java.lang.String getName() { * *
      * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9187,7 +11819,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9210,7 +11842,7 @@ public Builder setName(java.lang.String value) { * *
      * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9229,7 +11861,7 @@ public Builder clearName() { * *
      * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -11189,6 +13821,234 @@ public Builder clearResourceType() { return this; } + private com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercialInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder> + commercialInfoBuilder_; + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialInfo field is set. + */ + public boolean hasCommercialInfo() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo getCommercialInfo() { + if (commercialInfoBuilder_ == null) { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.getDefaultInstance() + : commercialInfo_; + } else { + return commercialInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo value) { + if (commercialInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commercialInfo_ = value; + } else { + commercialInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder builderForValue) { + if (commercialInfoBuilder_ == null) { + commercialInfo_ = builderForValue.build(); + } else { + commercialInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo value) { + if (commercialInfoBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && commercialInfo_ != null + && commercialInfo_ + != com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo + .getDefaultInstance()) { + getCommercialInfoBuilder().mergeFrom(value); + } else { + commercialInfo_ = value; + } + } else { + commercialInfoBuilder_.mergeFrom(value); + } + if (commercialInfo_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCommercialInfo() { + bitField0_ = (bitField0_ & ~0x00010000); + commercialInfo_ = null; + if (commercialInfoBuilder_ != null) { + commercialInfoBuilder_.dispose(); + commercialInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder + getCommercialInfoBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getCommercialInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder + getCommercialInfoOrBuilder() { + if (commercialInfoBuilder_ != null) { + return commercialInfoBuilder_.getMessageOrBuilder(); + } else { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.getDefaultInstance() + : commercialInfo_; + } + } + + /** + * + * + *
+     * Output only. Commercial info contains the information about the commercial
+     * data products associated with the listing.
+     * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder> + getCommercialInfoFieldBuilder() { + if (commercialInfoBuilder_ == null) { + commercialInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder>( + getCommercialInfo(), getParentForChildren(), isClean()); + commercialInfo_ = null; + } + return commercialInfoBuilder_; + } + private boolean logLinkedDatasetQueryUserEmail_; /** @@ -11207,7 +14067,7 @@ public Builder clearResourceType() { */ @java.lang.Override public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -11247,7 +14107,7 @@ public boolean getLogLinkedDatasetQueryUserEmail() { public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { logLinkedDatasetQueryUserEmail_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11267,12 +14127,96 @@ public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { * @return This builder for chaining. */ public Builder clearLogLinkedDatasetQueryUserEmail() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); logLinkedDatasetQueryUserEmail_ = false; onChanged(); return this; } + private boolean allowOnlyMetadataSharing_; + + /** + * + * + *
+     * Optional. If true, the listing is only available to get the resource
+     * metadata. Listing is non subscribable.
+     * 
+ * + * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowOnlyMetadataSharing field is set. + */ + @java.lang.Override + public boolean hasAllowOnlyMetadataSharing() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Optional. If true, the listing is only available to get the resource
+     * metadata. Listing is non subscribable.
+     * 
+ * + * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowOnlyMetadataSharing. + */ + @java.lang.Override + public boolean getAllowOnlyMetadataSharing() { + return allowOnlyMetadataSharing_; + } + + /** + * + * + *
+     * Optional. If true, the listing is only available to get the resource
+     * metadata. Listing is non subscribable.
+     * 
+ * + * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowOnlyMetadataSharing to set. + * @return This builder for chaining. + */ + public Builder setAllowOnlyMetadataSharing(boolean value) { + + allowOnlyMetadataSharing_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, the listing is only available to get the resource
+     * metadata. Listing is non subscribable.
+     * 
+ * + * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowOnlyMetadataSharing() { + bitField0_ = (bitField0_ & ~0x00040000); + allowOnlyMetadataSharing_ = 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-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java index 5ed51816173f..266039d67184 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/ListingOrBuilder.java @@ -114,7 +114,7 @@ public interface ListingOrBuilder * *
    * Output only. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -128,7 +128,7 @@ public interface ListingOrBuilder * *
    * Output only. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -621,6 +621,53 @@ public interface ListingOrBuilder */ com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType(); + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
+   * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialInfo field is set. + */ + boolean hasCommercialInfo(); + + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
+   * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo getCommercialInfo(); + + /** + * + * + *
+   * Output only. Commercial info contains the information about the commercial
+   * data products associated with the listing.
+   * 
+ * + * + * optional .google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfo commercial_info = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Listing.CommercialInfoOrBuilder + getCommercialInfoOrBuilder(); + /** * * @@ -653,5 +700,35 @@ public interface ListingOrBuilder */ boolean getLogLinkedDatasetQueryUserEmail(); + /** + * + * + *
+   * Optional. If true, the listing is only available to get the resource
+   * metadata. Listing is non subscribable.
+   * 
+ * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the allowOnlyMetadataSharing field is set. + */ + boolean hasAllowOnlyMetadataSharing(); + + /** + * + * + *
+   * Optional. If true, the listing is only available to get the resource
+   * metadata. Listing is non subscribable.
+   * 
+ * + * optional bool allow_only_metadata_sharing = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The allowOnlyMetadataSharing. + */ + boolean getAllowOnlyMetadataSharing(); + com.google.cloud.bigquery.analyticshub.v1.Listing.SourceCase getSourceCase(); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequest.java index 128b1adcece5..6ba2696c3cb6 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the Subscription to refresh.
-   * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+   * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the Subscription to refresh.
-   * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+   * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
    * 
* * @@ -482,7 +482,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the Subscription to refresh.
-     * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+     * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
      * 
* * @@ -508,7 +508,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the Subscription to refresh.
-     * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+     * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
      * 
* * @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the Subscription to refresh.
-     * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+     * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
      * 
* * @@ -559,7 +559,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the Subscription to refresh.
-     * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+     * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
      * 
* * @@ -580,7 +580,7 @@ public Builder clearName() { * *
      * Required. Resource name of the Subscription to refresh.
-     * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+     * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequestOrBuilder.java index f95559cc2e01..bb1047901dc2 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RefreshSubscriptionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface RefreshSubscriptionRequestOrBuilder * *
    * Required. Resource name of the Subscription to refresh.
-   * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+   * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
    * 
* * @@ -45,7 +45,7 @@ public interface RefreshSubscriptionRequestOrBuilder * *
    * Required. Resource name of the Subscription to refresh.
-   * e.g. `projects/subscriberproject/locations/US/subscriptions/123`
+   * e.g. `projects/subscriberproject/locations/us/subscriptions/123`
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequest.java index edef371d89bd..20a5c84bf875 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequest.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the subscription to revoke.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the subscription to revoke.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -123,6 +123,27 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int REVOKE_COMMERCIAL_FIELD_NUMBER = 2; + private boolean revokeCommercial_ = false; + + /** + * + * + *
+   * Optional. If the subscription is commercial then this field must be set to
+   * true, otherwise a failure is thrown. This acts as a safety guard to avoid
+   * revoking commercial subscriptions accidentally.
+   * 
+ * + * bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The revokeCommercial. + */ + @java.lang.Override + public boolean getRevokeCommercial() { + return revokeCommercial_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (revokeCommercial_ != false) { + output.writeBool(2, revokeCommercial_); + } getUnknownFields().writeTo(output); } @@ -152,6 +176,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (revokeCommercial_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, revokeCommercial_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +196,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest) obj; if (!getName().equals(other.getName())) return false; + if (getRevokeCommercial() != other.getRevokeCommercial()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,6 +210,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVOKE_COMMERCIAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRevokeCommercial()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -326,6 +356,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + revokeCommercial_ = false; return this; } @@ -368,6 +399,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revokeCommercial_ = revokeCommercial_; + } } @java.lang.Override @@ -424,6 +458,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.getRevokeCommercial() != false) { + setRevokeCommercial(other.getRevokeCommercial()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +493,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + revokeCommercial_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -482,7 +525,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the subscription to revoke.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -508,7 +551,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the subscription to revoke.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -534,7 +577,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the subscription to revoke.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -559,7 +602,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the subscription to revoke.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -580,7 +623,7 @@ public Builder clearName() { * *
      * Required. Resource name of the subscription to revoke.
-     * e.g. projects/123/locations/US/subscriptions/456
+     * e.g. projects/123/locations/us/subscriptions/456
      * 
* * @@ -601,6 +644,68 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean revokeCommercial_; + + /** + * + * + *
+     * Optional. If the subscription is commercial then this field must be set to
+     * true, otherwise a failure is thrown. This acts as a safety guard to avoid
+     * revoking commercial subscriptions accidentally.
+     * 
+ * + * bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The revokeCommercial. + */ + @java.lang.Override + public boolean getRevokeCommercial() { + return revokeCommercial_; + } + + /** + * + * + *
+     * Optional. If the subscription is commercial then this field must be set to
+     * true, otherwise a failure is thrown. This acts as a safety guard to avoid
+     * revoking commercial subscriptions accidentally.
+     * 
+ * + * bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The revokeCommercial to set. + * @return This builder for chaining. + */ + public Builder setRevokeCommercial(boolean value) { + + revokeCommercial_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If the subscription is commercial then this field must be set to
+     * true, otherwise a failure is thrown. This acts as a safety guard to avoid
+     * revoking commercial subscriptions accidentally.
+     * 
+ * + * bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRevokeCommercial() { + bitField0_ = (bitField0_ & ~0x00000002); + revokeCommercial_ = 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-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequestOrBuilder.java index 377778ee5528..2761b48294f3 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/RevokeSubscriptionRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface RevokeSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription to revoke.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -45,7 +45,7 @@ public interface RevokeSubscriptionRequestOrBuilder * *
    * Required. Resource name of the subscription to revoke.
-   * e.g. projects/123/locations/US/subscriptions/456
+   * e.g. projects/123/locations/us/subscriptions/456
    * 
* * @@ -55,4 +55,19 @@ public interface RevokeSubscriptionRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If the subscription is commercial then this field must be set to
+   * true, otherwise a failure is thrown. This acts as a safety guard to avoid
+   * revoking commercial subscriptions accidentally.
+   * 
+ * + * bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The revokeCommercial. + */ + boolean getRevokeCommercial(); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequest.java index 104d75d24fc0..384196dc9a2c 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the Data Exchange.
-   * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+   * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
    * 
* * @@ -105,7 +105,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the Data Exchange.
-   * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+   * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
    * 
* * @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The parent resource path of the Subscription.
-   * e.g. `projects/subscriberproject/locations/US`
+   * e.g. `projects/subscriberproject/locations/us`
    * 
* * @@ -164,7 +164,7 @@ public java.lang.String getDestination() { * *
    * Required. The parent resource path of the Subscription.
-   * e.g. `projects/subscriberproject/locations/US`
+   * e.g. `projects/subscriberproject/locations/us`
    * 
* * @@ -833,7 +833,7 @@ public Builder mergeFrom( * *
      * Required. Resource name of the Data Exchange.
-     * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+     * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
      * 
* * @@ -859,7 +859,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the Data Exchange.
-     * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+     * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
      * 
* * @@ -885,7 +885,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the Data Exchange.
-     * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+     * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
      * 
* * @@ -910,7 +910,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the Data Exchange.
-     * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+     * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
      * 
* * @@ -931,7 +931,7 @@ public Builder clearName() { * *
      * Required. Resource name of the Data Exchange.
-     * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+     * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
      * 
* * @@ -959,7 +959,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The parent resource path of the Subscription.
-     * e.g. `projects/subscriberproject/locations/US`
+     * e.g. `projects/subscriberproject/locations/us`
      * 
* * @@ -985,7 +985,7 @@ public java.lang.String getDestination() { * *
      * Required. The parent resource path of the Subscription.
-     * e.g. `projects/subscriberproject/locations/US`
+     * e.g. `projects/subscriberproject/locations/us`
      * 
* * @@ -1011,7 +1011,7 @@ public com.google.protobuf.ByteString getDestinationBytes() { * *
      * Required. The parent resource path of the Subscription.
-     * e.g. `projects/subscriberproject/locations/US`
+     * e.g. `projects/subscriberproject/locations/us`
      * 
* * @@ -1036,7 +1036,7 @@ public Builder setDestination(java.lang.String value) { * *
      * Required. The parent resource path of the Subscription.
-     * e.g. `projects/subscriberproject/locations/US`
+     * e.g. `projects/subscriberproject/locations/us`
      * 
* * @@ -1057,7 +1057,7 @@ public Builder clearDestination() { * *
      * Required. The parent resource path of the Subscription.
-     * e.g. `projects/subscriberproject/locations/US`
+     * e.g. `projects/subscriberproject/locations/us`
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequestOrBuilder.java index e0b89d05ef02..51c7dfd09285 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeDataExchangeRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface SubscribeDataExchangeRequestOrBuilder * *
    * Required. Resource name of the Data Exchange.
-   * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+   * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
    * 
* * @@ -45,7 +45,7 @@ public interface SubscribeDataExchangeRequestOrBuilder * *
    * Required. Resource name of the Data Exchange.
-   * e.g. `projects/publisherproject/locations/US/dataExchanges/123`
+   * e.g. `projects/publisherproject/locations/us/dataExchanges/123`
    * 
* * @@ -61,7 +61,7 @@ public interface SubscribeDataExchangeRequestOrBuilder * *
    * Required. The parent resource path of the Subscription.
-   * e.g. `projects/subscriberproject/locations/US`
+   * e.g. `projects/subscriberproject/locations/us`
    * 
* * @@ -77,7 +77,7 @@ public interface SubscribeDataExchangeRequestOrBuilder * *
    * Required. The parent resource path of the Subscription.
-   * e.g. `projects/subscriberproject/locations/US`
+   * e.g. `projects/subscriberproject/locations/us`
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequest.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequest.java index 0f5f9c0f5013..67807977ae13 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequest.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequest.java @@ -252,7 +252,7 @@ public boolean hasDestinationPubsubSubscription() { * *
    * Required. Resource name of the listing that you want to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -279,7 +279,7 @@ public java.lang.String getName() { * *
    * Required. Resource name of the listing that you want to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -1273,7 +1273,7 @@ public Builder clearDestinationPubsubSubscription() { * *
      * Required. Resource name of the listing that you want to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -1299,7 +1299,7 @@ public java.lang.String getName() { * *
      * Required. Resource name of the listing that you want to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -1325,7 +1325,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the listing that you want to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -1350,7 +1350,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the listing that you want to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * @@ -1371,7 +1371,7 @@ public Builder clearName() { * *
      * Required. Resource name of the listing that you want to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
      * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequestOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequestOrBuilder.java index 7d9c43a61fb2..abcb83fa9a52 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequestOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscribeListingRequestOrBuilder.java @@ -121,7 +121,7 @@ public interface SubscribeListingRequestOrBuilder * *
    * Required. Resource name of the listing that you want to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * @@ -137,7 +137,7 @@ public interface SubscribeListingRequestOrBuilder * *
    * Required. Resource name of the listing that you want to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`.
    * 
* * diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Subscription.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Subscription.java index fc11f31c1e31..3b311610ca0d 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Subscription.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/Subscription.java @@ -1624,223 +1624,1818 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int resourceNameCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object resourceName_; - - public enum ResourceNameCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LISTING(5), - DATA_EXCHANGE(6), - RESOURCENAME_NOT_SET(0); - private final int value; - - private ResourceNameCase(int value) { - this.value = value; - } + public interface CommercialInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) + com.google.protobuf.MessageOrBuilder { /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. */ - @java.lang.Deprecated - public static ResourceNameCase valueOf(int value) { - return forNumber(value); - } - - public static ResourceNameCase forNumber(int value) { - switch (value) { - case 5: - return LISTING; - case 6: - return DATA_EXCHANGE; - case 0: - return RESOURCENAME_NOT_SET; - default: - return null; - } - } + boolean hasCloudMarketplace(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo + getCloudMarketplace(); - public ResourceNameCase getResourceNameCase() { - return ResourceNameCase.forNumber(resourceNameCase_); + /** + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder(); } - public static final int LISTING_FIELD_NUMBER = 5; - /** * * *
-   * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * Commercial info metadata for this subscription.
    * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the listing field is set. + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo} */ - public boolean hasListing() { - return resourceNameCase_ == 5; - } + public static final class CommercialInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) + CommercialInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
-   * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-   * 
- * - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The listing. - */ - public java.lang.String getListing() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 5) { - ref = resourceName_; + // Use CommercialInfo.newBuilder() to construct. + private CommercialInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - if (ref instanceof java.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 (resourceNameCase_ == 5) { - resourceName_ = s; - } - return s; + + private CommercialInfo() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommercialInfo(); } - } - /** - * - * - *
-   * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-   * 
- * - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for listing. - */ - public com.google.protobuf.ByteString getListingBytes() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 5) { - ref = resourceName_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor; } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (resourceNameCase_ == 5) { - resourceName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder.class); } - } - public static final int DATA_EXCHANGE_FIELD_NUMBER = 6; + public interface GoogleCloudMarketplaceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
-   * 
- * - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the dataExchange field is set. - */ - public boolean hasDataExchange() { - return resourceNameCase_ == 6; - } + /** + * + * + *
+       * Resource name of the Marketplace Order.
+       * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The order. + */ + java.lang.String getOrder(); - /** - * - * - *
-   * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
-   * 
- * - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The dataExchange. - */ - public java.lang.String getDataExchange() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 6) { - ref = resourceName_; + /** + * + * + *
+       * Resource name of the Marketplace Order.
+       * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for order. + */ + com.google.protobuf.ByteString getOrderBytes(); } - if (ref instanceof java.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 (resourceNameCase_ == 6) { - resourceName_ = s; + + /** + * + * + *
+     * Cloud Marketplace commercial metadata for this subscription.
+     * 
+ * + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo} + */ + public static final class GoogleCloudMarketplaceInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo) + GoogleCloudMarketplaceInfoOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GoogleCloudMarketplaceInfo.newBuilder() to construct. + private GoogleCloudMarketplaceInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return s; - } - } - /** - * - * - *
-   * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
-   * 
- * - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for dataExchange. - */ - public com.google.protobuf.ByteString getDataExchangeBytes() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 6) { - ref = resourceName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (resourceNameCase_ == 6) { - resourceName_ = b; + private GoogleCloudMarketplaceInfo() { + order_ = ""; } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int NAME_FIELD_NUMBER = 1; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleCloudMarketplaceInfo(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } - /** - * - * - *
-   * Output only. The resource name of the subscription.
-   * e.g. `projects/myproject/locations/US/subscriptions/123`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder.class); + } + + public static final int ORDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object order_ = ""; + + /** + * + * + *
+       * Resource name of the Marketplace Order.
+       * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The order. + */ + @java.lang.Override + public java.lang.String getOrder() { + java.lang.Object ref = order_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + order_ = s; + return s; + } + } + + /** + * + * + *
+       * Resource name of the Marketplace Order.
+       * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for order. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = 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(order_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, order_); + } + 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(order_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, order_); + } + 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + other = + (com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo) + obj; + + if (!getOrder().equals(other.getOrder())) 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) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrder().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseDelimitedFrom( + java.io.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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + 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; + } + + /** + * + * + *
+       * Cloud Marketplace commercial metadata for this subscription.
+       * 
+ * + * Protobuf type {@code + * google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo) + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder.class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + order_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_GoogleCloudMarketplaceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + build() { + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + result = + new com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.order_ = order_; + } + } + + @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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance()) return this; + if (!other.getOrder().isEmpty()) { + order_ = other.order_; + 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: + { + order_ = 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 order_ = ""; + + /** + * + * + *
+         * Resource name of the Marketplace Order.
+         * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The order. + */ + public java.lang.String getOrder() { + java.lang.Object ref = order_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + order_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Resource name of the Marketplace Order.
+         * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for order. + */ + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Resource name of the Marketplace Order.
+         * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The order to set. + * @return This builder for chaining. + */ + public Builder setOrder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Resource name of the Marketplace Order.
+         * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearOrder() { + order_ = getDefaultInstance().getOrder(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Resource name of the Marketplace Order.
+         * 
+ * + * string order = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for order to set. + * @return This builder for chaining. + */ + public Builder setOrderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + order_ = 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.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo) + private static final com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleCloudMarketplaceInfo 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CLOUD_MARKETPLACE_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + cloudMarketplace_; + + /** + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. + */ + @java.lang.Override + public boolean hasCloudMarketplace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + getCloudMarketplace() { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + + /** + * + * + *
+     * Output only. This is set when the subscription is commercialised via
+     * Cloud Marketplace.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder() { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + + 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, getCloudMarketplace()); + } + 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, getCloudMarketplace()); + } + 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.bigquery.analyticshub.v1.Subscription.CommercialInfo)) { + return super.equals(obj); + } + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo other = + (com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) obj; + + if (hasCloudMarketplace() != other.hasCloudMarketplace()) return false; + if (hasCloudMarketplace()) { + if (!getCloudMarketplace().equals(other.getCloudMarketplace())) 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 (hasCloudMarketplace()) { + hash = (37 * hash) + CLOUD_MARKETPLACE_FIELD_NUMBER; + hash = (53 * hash) + getCloudMarketplace().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo 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.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + parseDelimitedFrom( + java.io.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.bigquery.analyticshub.v1.Subscription.CommercialInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo 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.bigquery.analyticshub.v1.Subscription.CommercialInfo 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; + } + + /** + * + * + *
+     * Commercial info metadata for this subscription.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.class, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCloudMarketplaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cloudMarketplace_ = null; + if (cloudMarketplaceBuilder_ != null) { + cloudMarketplaceBuilder_.dispose(); + cloudMarketplaceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubProto + .internal_static_google_cloud_bigquery_analyticshub_v1_Subscription_CommercialInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + getDefaultInstanceForType() { + return com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo build() { + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo buildPartial() { + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo result = + new com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cloudMarketplace_ = + cloudMarketplaceBuilder_ == null + ? cloudMarketplace_ + : cloudMarketplaceBuilder_.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.bigquery.analyticshub.v1.Subscription.CommercialInfo) { + return mergeFrom( + (com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo other) { + if (other + == com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .getDefaultInstance()) return this; + if (other.hasCloudMarketplace()) { + mergeCloudMarketplace(other.getCloudMarketplace()); + } + 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( + getCloudMarketplaceFieldBuilder().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.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + cloudMarketplace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder> + cloudMarketplaceBuilder_; + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudMarketplace field is set. + */ + public boolean hasCloudMarketplace() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudMarketplace. + */ + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + getCloudMarketplace() { + if (cloudMarketplaceBuilder_ == null) { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } else { + return cloudMarketplaceBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + value) { + if (cloudMarketplaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudMarketplace_ = value; + } else { + cloudMarketplaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder + builderForValue) { + if (cloudMarketplaceBuilder_ == null) { + cloudMarketplace_ = builderForValue.build(); + } else { + cloudMarketplaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCloudMarketplace( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo + value) { + if (cloudMarketplaceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cloudMarketplace_ != null + && cloudMarketplace_ + != com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance()) { + getCloudMarketplaceBuilder().mergeFrom(value); + } else { + cloudMarketplace_ = value; + } + } else { + cloudMarketplaceBuilder_.mergeFrom(value); + } + if (cloudMarketplace_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCloudMarketplace() { + bitField0_ = (bitField0_ & ~0x00000001); + cloudMarketplace_ = null; + if (cloudMarketplaceBuilder_ != null) { + cloudMarketplaceBuilder_.dispose(); + cloudMarketplaceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder + getCloudMarketplaceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCloudMarketplaceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder + getCloudMarketplaceOrBuilder() { + if (cloudMarketplaceBuilder_ != null) { + return cloudMarketplaceBuilder_.getMessageOrBuilder(); + } else { + return cloudMarketplace_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.getDefaultInstance() + : cloudMarketplace_; + } + } + + /** + * + * + *
+       * Output only. This is set when the subscription is commercialised via
+       * Cloud Marketplace.
+       * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.GoogleCloudMarketplaceInfo cloud_marketplace = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder> + getCloudMarketplaceFieldBuilder() { + if (cloudMarketplaceBuilder_ == null) { + cloudMarketplaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .GoogleCloudMarketplaceInfoOrBuilder>( + getCloudMarketplace(), getParentForChildren(), isClean()); + cloudMarketplace_ = null; + } + return cloudMarketplaceBuilder_; + } + + @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.bigquery.analyticshub.v1.Subscription.CommercialInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo) + private static final com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo(); + } + + public static com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommercialInfo 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.bigquery.analyticshub.v1.Subscription.CommercialInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int resourceNameCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resourceName_; + + public enum ResourceNameCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LISTING(5), + DATA_EXCHANGE(6), + RESOURCENAME_NOT_SET(0); + private final int value; + + private ResourceNameCase(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 ResourceNameCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceNameCase forNumber(int value) { + switch (value) { + case 5: + return LISTING; + case 6: + return DATA_EXCHANGE; + case 0: + return RESOURCENAME_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceNameCase getResourceNameCase() { + return ResourceNameCase.forNumber(resourceNameCase_); + } + + public static final int LISTING_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Output only. Resource name of the source Listing.
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+   * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the listing field is set. + */ + public boolean hasListing() { + return resourceNameCase_ == 5; + } + + /** + * + * + *
+   * Output only. Resource name of the source Listing.
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+   * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The listing. + */ + public java.lang.String getListing() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 5) { + ref = resourceName_; + } + if (ref instanceof java.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 (resourceNameCase_ == 5) { + resourceName_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Resource name of the source Listing.
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+   * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for listing. + */ + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 5) { + ref = resourceName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceNameCase_ == 5) { + resourceName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_EXCHANGE_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Output only. Resource name of the source Data Exchange.
+   * e.g. projects/123/locations/us/dataExchanges/456
+   * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the dataExchange field is set. + */ + public boolean hasDataExchange() { + return resourceNameCase_ == 6; + } + + /** + * + * + *
+   * Output only. Resource name of the source Data Exchange.
+   * e.g. projects/123/locations/us/dataExchanges/456
+   * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataExchange. + */ + public java.lang.String getDataExchange() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 6) { + ref = resourceName_; + } + if (ref instanceof java.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 (resourceNameCase_ == 6) { + resourceName_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Output only. Resource name of the source Data Exchange.
+   * e.g. projects/123/locations/us/dataExchanges/456
+   * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataExchange. + */ + public com.google.protobuf.ByteString getDataExchangeBytes() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 6) { + ref = resourceName_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceNameCase_ == 6) { + resourceName_ = 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_ = ""; + + /** + * + * + *
+   * Output only. The resource name of the subscription.
+   * e.g. `projects/myproject/locations/us/subscriptions/123`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -1862,7 +3457,7 @@ public java.lang.String getName() { * *
    * Output only. The resource name of the subscription.
-   * e.g. `projects/myproject/locations/US/subscriptions/123`.
+   * e.g. `projects/myproject/locations/us/subscriptions/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2194,7 +3789,7 @@ public int getLinkedDatasetMapCount() { * *
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -2228,7 +3823,7 @@ public boolean containsLinkedDatasetMap(java.lang.String key) {
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -2252,7 +3847,7 @@ public boolean containsLinkedDatasetMap(java.lang.String key) {
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -2284,7 +3879,7 @@ public boolean containsLinkedDatasetMap(java.lang.String key) {
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -2503,6 +4098,69 @@ public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceT
         : result;
   }
 
+  public static final int COMMERCIAL_INFO_FIELD_NUMBER = 13;
+  private com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercialInfo_;
+
+  /**
+   *
+   *
+   * 
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialInfo field is set. + */ + @java.lang.Override + public boolean hasCommercialInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo getCommercialInfo() { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.getDefaultInstance() + : commercialInfo_; + } + + /** + * + * + *
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder + getCommercialInfoOrBuilder() { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.getDefaultInstance() + : commercialInfo_; + } + public static final int LOG_LINKED_DATASET_QUERY_USER_EMAIL_FIELD_NUMBER = 14; private boolean logLinkedDatasetQueryUserEmail_ = false; @@ -2523,7 +4181,7 @@ public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceT */ @java.lang.Override public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -2546,6 +4204,66 @@ public boolean getLogLinkedDatasetQueryUserEmail() { return logLinkedDatasetQueryUserEmail_; } + public static final int DESTINATION_DATASET_FIELD_NUMBER = 15; + private com.google.cloud.bigquery.analyticshub.v1.DestinationDataset destinationDataset_; + + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationDataset field is set. + */ + @java.lang.Override + public boolean hasDestinationDataset() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationDataset. + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.DestinationDataset getDestinationDataset() { + return destinationDataset_ == null + ? com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.getDefaultInstance() + : destinationDataset_; + } + + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder() { + return destinationDataset_ == null + ? com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.getDefaultInstance() + : destinationDataset_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2601,8 +4319,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeEnum(12, resourceType_); } if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getCommercialInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(14, logLinkedDatasetQueryUserEmail_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getDestinationDataset()); + } getUnknownFields().writeTo(output); } @@ -2666,10 +4390,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, resourceType_); } if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCommercialInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 14, logLinkedDatasetQueryUserEmail_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getDestinationDataset()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2702,12 +4432,20 @@ public boolean equals(final java.lang.Object obj) { if (!getSubscriberContact().equals(other.getSubscriberContact())) return false; if (!getLinkedResourcesList().equals(other.getLinkedResourcesList())) return false; if (resourceType_ != other.resourceType_) return false; + if (hasCommercialInfo() != other.hasCommercialInfo()) return false; + if (hasCommercialInfo()) { + if (!getCommercialInfo().equals(other.getCommercialInfo())) return false; + } if (hasLogLinkedDatasetQueryUserEmail() != other.hasLogLinkedDatasetQueryUserEmail()) return false; if (hasLogLinkedDatasetQueryUserEmail()) { if (getLogLinkedDatasetQueryUserEmail() != other.getLogLinkedDatasetQueryUserEmail()) return false; } + if (hasDestinationDataset() != other.hasDestinationDataset()) return false; + if (hasDestinationDataset()) { + if (!getDestinationDataset().equals(other.getDestinationDataset())) return false; + } if (!getResourceNameCase().equals(other.getResourceNameCase())) return false; switch (resourceNameCase_) { case 5: @@ -2758,12 +4496,20 @@ public int hashCode() { } hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + resourceType_; + if (hasCommercialInfo()) { + hash = (37 * hash) + COMMERCIAL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCommercialInfo().hashCode(); + } if (hasLogLinkedDatasetQueryUserEmail()) { hash = (37 * hash) + LOG_LINKED_DATASET_QUERY_USER_EMAIL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogLinkedDatasetQueryUserEmail()); } + if (hasDestinationDataset()) { + hash = (37 * hash) + DESTINATION_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDestinationDataset().hashCode(); + } switch (resourceNameCase_) { case 5: hash = (37 * hash) + LISTING_FIELD_NUMBER; @@ -2945,6 +4691,8 @@ private void maybeForceBuilderInitialization() { getCreationTimeFieldBuilder(); getLastModifyTimeFieldBuilder(); getLinkedResourcesFieldBuilder(); + getCommercialInfoFieldBuilder(); + getDestinationDatasetFieldBuilder(); } } @@ -2976,7 +4724,17 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000400); resourceType_ = 0; + commercialInfo_ = null; + if (commercialInfoBuilder_ != null) { + commercialInfoBuilder_.dispose(); + commercialInfoBuilder_ = null; + } logLinkedDatasetQueryUserEmail_ = false; + destinationDataset_ = null; + if (destinationDatasetBuilder_ != null) { + destinationDatasetBuilder_.dispose(); + destinationDatasetBuilder_ = null; + } resourceNameCase_ = 0; resourceName_ = null; return this; @@ -3015,394 +4773,694 @@ public com.google.cloud.bigquery.analyticshub.v1.Subscription buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.analyticshub.v1.Subscription result) { - if (linkedResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - linkedResources_ = java.util.Collections.unmodifiableList(linkedResources_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.linkedResources_ = linkedResources_; + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.analyticshub.v1.Subscription result) { + if (linkedResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + linkedResources_ = java.util.Collections.unmodifiableList(linkedResources_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.linkedResources_ = linkedResources_; + } else { + result.linkedResources_ = linkedResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.Subscription result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.creationTime_ = + creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.lastModifyTime_ = + lastModifyTimeBuilder_ == null ? lastModifyTime_ : lastModifyTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationDisplayName_ = organizationDisplayName_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.linkedDatasetMap_ = + internalGetLinkedDatasetMap().build(LinkedDatasetMapDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.subscriberContact_ = subscriberContact_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.commercialInfo_ = + commercialInfoBuilder_ == null ? commercialInfo_ : commercialInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.destinationDataset_ = + destinationDatasetBuilder_ == null + ? destinationDataset_ + : destinationDatasetBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.bigquery.analyticshub.v1.Subscription result) { + result.resourceNameCase_ = resourceNameCase_; + result.resourceName_ = this.resourceName_; + } + + @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.bigquery.analyticshub.v1.Subscription) { + return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.Subscription) other); } else { - result.linkedResources_ = linkedResourcesBuilder_.build(); + super.mergeFrom(other); + return this; } } - private void buildPartial0(com.google.cloud.bigquery.analyticshub.v1.Subscription result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; + public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.Subscription other) { + if (other == com.google.cloud.bigquery.analyticshub.v1.Subscription.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.creationTime_ = - creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + if (other.hasCreationTime()) { + mergeCreationTime(other.getCreationTime()); } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.lastModifyTime_ = - lastModifyTimeBuilder_ == null ? lastModifyTime_ : lastModifyTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + if (other.hasLastModifyTime()) { + mergeLastModifyTime(other.getLastModifyTime()); } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.organizationId_ = organizationId_; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000020; + onChanged(); } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.organizationDisplayName_ = organizationDisplayName_; + if (!other.getOrganizationDisplayName().isEmpty()) { + organizationDisplayName_ = other.organizationDisplayName_; + bitField0_ |= 0x00000040; + onChanged(); } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.state_ = state_; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.linkedDatasetMap_ = - internalGetLinkedDatasetMap().build(LinkedDatasetMapDefaultEntryHolder.defaultEntry); + internalGetMutableLinkedDatasetMap().mergeFrom(other.internalGetLinkedDatasetMap()); + bitField0_ |= 0x00000100; + if (!other.getSubscriberContact().isEmpty()) { + subscriberContact_ = other.subscriberContact_; + bitField0_ |= 0x00000200; + onChanged(); } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.subscriberContact_ = subscriberContact_; + if (linkedResourcesBuilder_ == null) { + if (!other.linkedResources_.isEmpty()) { + if (linkedResources_.isEmpty()) { + linkedResources_ = other.linkedResources_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureLinkedResourcesIsMutable(); + linkedResources_.addAll(other.linkedResources_); + } + onChanged(); + } + } else { + if (!other.linkedResources_.isEmpty()) { + if (linkedResourcesBuilder_.isEmpty()) { + linkedResourcesBuilder_.dispose(); + linkedResourcesBuilder_ = null; + linkedResources_ = other.linkedResources_; + bitField0_ = (bitField0_ & ~0x00000400); + linkedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLinkedResourcesFieldBuilder() + : null; + } else { + linkedResourcesBuilder_.addAllMessages(other.linkedResources_); + } + } } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.resourceType_ = resourceType_; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.logLinkedDatasetQueryUserEmail_ = logLinkedDatasetQueryUserEmail_; - to_bitField0_ |= 0x00000004; + if (other.hasCommercialInfo()) { + mergeCommercialInfo(other.getCommercialInfo()); } - result.bitField0_ |= to_bitField0_; + if (other.hasLogLinkedDatasetQueryUserEmail()) { + setLogLinkedDatasetQueryUserEmail(other.getLogLinkedDatasetQueryUserEmail()); + } + if (other.hasDestinationDataset()) { + mergeDestinationDataset(other.getDestinationDataset()); + } + switch (other.getResourceNameCase()) { + case LISTING: + { + resourceNameCase_ = 5; + resourceName_ = other.resourceName_; + onChanged(); + break; + } + case DATA_EXCHANGE: + { + resourceNameCase_ = 6; + resourceName_ = other.resourceName_; + onChanged(); + break; + } + case RESOURCENAME_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - private void buildPartialOneofs(com.google.cloud.bigquery.analyticshub.v1.Subscription result) { - result.resourceNameCase_ = resourceNameCase_; - result.resourceName_ = this.resourceName_; + @java.lang.Override + public final boolean isInitialized() { + return true; } @java.lang.Override - public Builder clone() { - return super.clone(); + 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_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage(getLastModifyTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + resourceNameCase_ = 5; + resourceName_ = s; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + resourceNameCase_ = 6; + resourceName_ = s; + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + linkedDatasetMap__ = + input.readMessage( + LinkedDatasetMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLinkedDatasetMap() + .ensureBuilderMap() + .put(linkedDatasetMap__.getKey(), linkedDatasetMap__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + subscriberContact_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + organizationDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 82 + case 90: + { + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource m = + input.readMessage( + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource + .parser(), + extensionRegistry); + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + linkedResources_.add(m); + } else { + linkedResourcesBuilder_.addMessage(m); + } + break; + } // case 90 + case 96: + { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: + { + input.readMessage(getCommercialInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + logLinkedDatasetQueryUserEmail_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: + { + input.readMessage( + getDestinationDatasetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + private int resourceNameCase_ = 0; + private java.lang.Object resourceName_; - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public ResourceNameCase getResourceNameCase() { + return ResourceNameCase.forNumber(resourceNameCase_); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public Builder clearResourceName() { + resourceNameCase_ = 0; + resourceName_ = null; + 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); - } + private int bitField0_; + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the listing field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasListing() { + return resourceNameCase_ == 5; } + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The listing. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.analyticshub.v1.Subscription) { - return mergeFrom((com.google.cloud.bigquery.analyticshub.v1.Subscription) other); + public java.lang.String getListing() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 5) { + ref = resourceName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resourceNameCase_ == 5) { + resourceName_ = s; + } + return s; } else { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - public Builder mergeFrom(com.google.cloud.bigquery.analyticshub.v1.Subscription other) { - if (other == com.google.cloud.bigquery.analyticshub.v1.Subscription.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasCreationTime()) { - mergeCreationTime(other.getCreationTime()); - } - if (other.hasLastModifyTime()) { - mergeLastModifyTime(other.getLastModifyTime()); - } - if (!other.getOrganizationId().isEmpty()) { - organizationId_ = other.organizationId_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getOrganizationDisplayName().isEmpty()) { - organizationDisplayName_ = other.organizationDisplayName_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - internalGetMutableLinkedDatasetMap().mergeFrom(other.internalGetLinkedDatasetMap()); - bitField0_ |= 0x00000100; - if (!other.getSubscriberContact().isEmpty()) { - subscriberContact_ = other.subscriberContact_; - bitField0_ |= 0x00000200; - onChanged(); + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for listing. + */ + @java.lang.Override + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 5) { + ref = resourceName_; } - if (linkedResourcesBuilder_ == null) { - if (!other.linkedResources_.isEmpty()) { - if (linkedResources_.isEmpty()) { - linkedResources_ = other.linkedResources_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureLinkedResourcesIsMutable(); - linkedResources_.addAll(other.linkedResources_); - } - onChanged(); + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceNameCase_ == 5) { + resourceName_ = b; } + return b; } else { - if (!other.linkedResources_.isEmpty()) { - if (linkedResourcesBuilder_.isEmpty()) { - linkedResourcesBuilder_.dispose(); - linkedResourcesBuilder_ = null; - linkedResources_ = other.linkedResources_; - bitField0_ = (bitField0_ & ~0x00000400); - linkedResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLinkedResourcesFieldBuilder() - : null; - } else { - linkedResourcesBuilder_.addAllMessages(other.linkedResources_); - } - } + return (com.google.protobuf.ByteString) ref; } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); + } + + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The listing to set. + * @return This builder for chaining. + */ + public Builder setListing(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (other.hasLogLinkedDatasetQueryUserEmail()) { - setLogLinkedDatasetQueryUserEmail(other.getLogLinkedDatasetQueryUserEmail()); + resourceNameCase_ = 5; + resourceName_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearListing() { + if (resourceNameCase_ == 5) { + resourceNameCase_ = 0; + resourceName_ = null; + onChanged(); } - switch (other.getResourceNameCase()) { - case LISTING: - { - resourceNameCase_ = 5; - resourceName_ = other.resourceName_; - onChanged(); - break; - } - case DATA_EXCHANGE: - { - resourceNameCase_ = 6; - resourceName_ = other.resourceName_; - onChanged(); - break; - } - case RESOURCENAME_NOT_SET: - { - break; - } + return this; + } + + /** + * + * + *
+     * Output only. Resource name of the source Listing.
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * 
+ * + * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for listing to set. + * @return This builder for chaining. + */ + public Builder setListingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + checkByteStringIsUtf8(value); + resourceNameCase_ = 5; + resourceName_ = value; onChanged(); return this; } + /** + * + * + *
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
+     * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the dataExchange field is set. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public boolean hasDataExchange() { + return resourceNameCase_ == 6; } + /** + * + * + *
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
+     * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataExchange. + */ @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(); + public java.lang.String getDataExchange() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 6) { + ref = resourceName_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resourceNameCase_ == 6) { + resourceName_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 18 - case 26: - { - input.readMessage(getLastModifyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - organizationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - resourceNameCase_ = 5; - resourceName_ = s; - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - resourceNameCase_ = 6; - resourceName_ = s; - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - linkedDatasetMap__ = - input.readMessage( - LinkedDatasetMapDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLinkedDatasetMap() - .ensureBuilderMap() - .put(linkedDatasetMap__.getKey(), linkedDatasetMap__.getValue()); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - subscriberContact_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 82: - { - organizationDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 82 - case 90: - { - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource m = - input.readMessage( - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource - .parser(), - extensionRegistry); - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - linkedResources_.add(m); - } else { - linkedResourcesBuilder_.addMessage(m); - } - break; - } // case 90 - case 96: - { - resourceType_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 112: - { - logLinkedDatasetQueryUserEmail_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 112 - 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 resourceNameCase_ = 0; - private java.lang.Object resourceName_; - - public ResourceNameCase getResourceNameCase() { - return ResourceNameCase.forNumber(resourceNameCase_); + /** + * + * + *
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
+     * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataExchange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataExchangeBytes() { + java.lang.Object ref = ""; + if (resourceNameCase_ == 6) { + ref = resourceName_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resourceNameCase_ == 6) { + resourceName_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public Builder clearResourceName() { - resourceNameCase_ = 0; - resourceName_ = null; + /** + * + * + *
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
+     * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataExchange to set. + * @return This builder for chaining. + */ + public Builder setDataExchange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceNameCase_ = 6; + resourceName_ = value; onChanged(); return this; } - private int bitField0_; + /** + * + * + *
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
+     * 
+ * + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataExchange() { + if (resourceNameCase_ == 6) { + resourceNameCase_ = 0; + resourceName_ = null; + onChanged(); + } + return this; + } /** * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. Resource name of the source Data Exchange.
+     * e.g. projects/123/locations/us/dataExchanges/456
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return Whether the listing field is set. + * @param value The bytes for dataExchange to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean hasListing() { - return resourceNameCase_ == 5; + public Builder setDataExchangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNameCase_ = 6; + resourceName_ = value; + onChanged(); + return this; } + private java.lang.Object name_ = ""; + /** * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. The resource name of the subscription.
+     * e.g. `projects/myproject/locations/us/subscriptions/123`.
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The listing. + * @return The name. */ - @java.lang.Override - public java.lang.String getListing() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 5) { - ref = resourceName_; - } + 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(); - if (resourceNameCase_ == 5) { - resourceName_ = s; - } + name_ = s; return s; } else { return (java.lang.String) ref; @@ -3413,26 +5471,20 @@ public java.lang.String getListing() { * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. The resource name of the subscription.
+     * e.g. `projects/myproject/locations/us/subscriptions/123`.
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for listing. + * @return The bytes for name. */ - @java.lang.Override - public com.google.protobuf.ByteString getListingBytes() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 5) { - ref = resourceName_; - } + 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); - if (resourceNameCase_ == 5) { - resourceName_ = b; - } + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3443,21 +5495,21 @@ public com.google.protobuf.ByteString getListingBytes() { * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. The resource name of the subscription.
+     * e.g. `projects/myproject/locations/us/subscriptions/123`.
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The listing to set. + * @param value The name to set. * @return This builder for chaining. */ - public Builder setListing(java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - resourceNameCase_ = 5; - resourceName_ = value; + name_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3466,20 +5518,18 @@ public Builder setListing(java.lang.String value) { * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. The resource name of the subscription.
+     * e.g. `projects/myproject/locations/us/subscriptions/123`.
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearListing() { - if (resourceNameCase_ == 5) { - resourceNameCase_ = 0; - resourceName_ = null; - onChanged(); - } + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } @@ -3487,122 +5537,168 @@ public Builder clearListing() { * * *
-     * Output only. Resource name of the source Listing.
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+     * Output only. The resource name of the subscription.
+     * e.g. `projects/myproject/locations/us/subscriptions/123`.
      * 
* - * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for listing to set. + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setListingBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resourceNameCase_ = 5; - resourceName_ = value; + name_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } + private com.google.protobuf.Timestamp creationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + creationTimeBuilder_; + /** * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the dataExchange field is set. + * @return Whether the creationTime field is set. */ - @java.lang.Override - public boolean hasDataExchange() { - return resourceNameCase_ == 6; + public boolean hasCreationTime() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The dataExchange. + * @return The creationTime. */ - @java.lang.Override - public java.lang.String getDataExchange() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 6) { - ref = resourceName_; + public com.google.protobuf.Timestamp getCreationTime() { + if (creationTimeBuilder_ == null) { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; + } else { + return creationTimeBuilder_.getMessage(); } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resourceNameCase_ == 6) { - resourceName_ = s; + } + + /** + * + * + *
+     * Output only. Timestamp when the subscription was created.
+     * 
+ * + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return s; + creationTime_ = value; } else { - return (java.lang.String) ref; + creationTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for dataExchange. + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getDataExchangeBytes() { - java.lang.Object ref = ""; - if (resourceNameCase_ == 6) { - ref = resourceName_; + public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (creationTimeBuilder_ == null) { + creationTime_ = builderForValue.build(); + } else { + creationTimeBuilder_.setMessage(builderForValue.build()); } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (resourceNameCase_ == 6) { - resourceName_ = b; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the subscription was created.
+     * 
+ * + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { + if (creationTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && creationTime_ != null + && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); + } else { + creationTime_ = value; } - return b; } else { - return (com.google.protobuf.ByteString) ref; + creationTimeBuilder_.mergeFrom(value); + } + if (creationTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + return this; } /** * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The dataExchange to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDataExchange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearCreationTime() { + bitField0_ = (bitField0_ & ~0x00000008); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); + creationTimeBuilder_ = null; } - resourceNameCase_ = 6; - resourceName_ = value; onChanged(); return this; } @@ -3611,94 +5707,112 @@ public Builder setDataExchange(java.lang.String value) { * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreationTimeFieldBuilder().getBuilder(); + } + + /** * - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when the subscription was created.
+     * 
+ * + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDataExchange() { - if (resourceNameCase_ == 6) { - resourceNameCase_ = 0; - resourceName_ = null; - onChanged(); + public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { + if (creationTimeBuilder_ != null) { + return creationTimeBuilder_.getMessageOrBuilder(); + } else { + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; } - return this; } /** * * *
-     * Output only. Resource name of the source Data Exchange.
-     * e.g. projects/123/locations/US/dataExchanges/456
+     * Output only. Timestamp when the subscription was created.
      * 
* - * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for dataExchange to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDataExchangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreationTimeFieldBuilder() { + if (creationTimeBuilder_ == null) { + creationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreationTime(), getParentForChildren(), isClean()); + creationTime_ = null; } - checkByteStringIsUtf8(value); - resourceNameCase_ = 6; - resourceName_ = value; - onChanged(); - return this; + return creationTimeBuilder_; } - private java.lang.Object name_ = ""; + private com.google.protobuf.Timestamp lastModifyTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastModifyTimeBuilder_; /** * * *
-     * Output only. The resource name of the subscription.
-     * e.g. `projects/myproject/locations/US/subscriptions/123`.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return Whether the lastModifyTime 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 hasLastModifyTime() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Output only. The resource name of the subscription.
-     * e.g. `projects/myproject/locations/US/subscriptions/123`.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for name. + * @return The lastModifyTime. */ - 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 getLastModifyTime() { + if (lastModifyTimeBuilder_ == null) { + return lastModifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifyTime_; } else { - return (com.google.protobuf.ByteString) ref; + return lastModifyTimeBuilder_.getMessage(); } } @@ -3706,21 +5820,23 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name of the subscription.
-     * e.g. `projects/myproject/locations/US/subscriptions/123`.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setLastModifyTime(com.google.protobuf.Timestamp value) { + if (lastModifyTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastModifyTime_ = value; + } else { + lastModifyTimeBuilder_.setMessage(value); } - name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3729,17 +5845,20 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name of the subscription.
-     * e.g. `projects/myproject/locations/US/subscriptions/123`.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder setLastModifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastModifyTimeBuilder_ == null) { + lastModifyTime_ = builderForValue.build(); + } else { + lastModifyTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3748,70 +5867,89 @@ public Builder clearName() { * * *
-     * Output only. The resource name of the subscription.
-     * e.g. `projects/myproject/locations/US/subscriptions/123`.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastModifyTime(com.google.protobuf.Timestamp value) { + if (lastModifyTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && lastModifyTime_ != null + && lastModifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastModifyTimeBuilder().mergeFrom(value); + } else { + lastModifyTime_ = value; + } + } else { + lastModifyTimeBuilder_.mergeFrom(value); + } + if (lastModifyTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+     * Output only. Timestamp when the subscription was last modified.
+     * 
+ * + * + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearLastModifyTime() { + bitField0_ = (bitField0_ & ~0x00000010); + lastModifyTime_ = null; + if (lastModifyTimeBuilder_ != null) { + lastModifyTimeBuilder_.dispose(); + lastModifyTimeBuilder_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000004; onChanged(); return this; } - private com.google.protobuf.Timestamp creationTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - creationTimeBuilder_; - /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the creationTime field is set. */ - public boolean hasCreationTime() { - return ((bitField0_ & 0x00000008) != 0); + public com.google.protobuf.Timestamp.Builder getLastModifyTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getLastModifyTimeFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The creationTime. */ - public com.google.protobuf.Timestamp getCreationTime() { - if (creationTimeBuilder_ == null) { - return creationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : creationTime_; + public com.google.protobuf.TimestampOrBuilder getLastModifyTimeOrBuilder() { + if (lastModifyTimeBuilder_ != null) { + return lastModifyTimeBuilder_.getMessageOrBuilder(); } else { - return creationTimeBuilder_.getMessage(); + return lastModifyTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastModifyTime_; } } @@ -3819,97 +5957,96 @@ public com.google.protobuf.Timestamp getCreationTime() { * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Timestamp when the subscription was last modified.
      * 
* * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreationTime(com.google.protobuf.Timestamp value) { - if (creationTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - creationTime_ = value; - } else { - creationTimeBuilder_.setMessage(value); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastModifyTimeFieldBuilder() { + if (lastModifyTimeBuilder_ == null) { + lastModifyTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastModifyTime(), getParentForChildren(), isClean()); + lastModifyTime_ = null; } - bitField0_ |= 0x00000008; - onChanged(); - return this; + return lastModifyTimeBuilder_; } + private java.lang.Object organizationId_ = ""; + /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Organization of the project this subscription belongs to.
      * 
* - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The organizationId. */ - public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (creationTimeBuilder_ == null) { - creationTime_ = builderForValue.build(); + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; } else { - creationTimeBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField0_ |= 0x00000008; - onChanged(); - return this; } /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Organization of the project this subscription belongs to.
      * 
* - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for organizationId. */ - public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { - if (creationTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && creationTime_ != null - && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreationTimeBuilder().mergeFrom(value); - } else { - creationTime_ = value; - } + public com.google.protobuf.ByteString getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organizationId_ = b; + return b; } else { - creationTimeBuilder_.mergeFrom(value); - } - if (creationTime_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Organization of the project this subscription belongs to.
      * 
* - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The organizationId to set. + * @return This builder for chaining. */ - public Builder clearCreationTime() { - bitField0_ = (bitField0_ & ~0x00000008); - creationTime_ = null; - if (creationTimeBuilder_ != null) { - creationTimeBuilder_.dispose(); - creationTimeBuilder_ = null; + public Builder setOrganizationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3918,112 +6055,90 @@ public Builder clearCreationTime() { * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Organization of the project this subscription belongs to.
      * 
* - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { - bitField0_ |= 0x00000008; + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); - return getCreationTimeFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Output only. Timestamp when the subscription was created.
+     * Output only. Organization of the project this subscription belongs to.
      * 
* - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { - if (creationTimeBuilder_ != null) { - return creationTimeBuilder_.getMessageOrBuilder(); - } else { - return creationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : creationTime_; - } - } - - /** - * - * - *
-     * Output only. Timestamp when the subscription was created.
-     * 
+ * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * .google.protobuf.Timestamp creation_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * @param value The bytes for organizationId 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> - getCreationTimeFieldBuilder() { - if (creationTimeBuilder_ == null) { - creationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreationTime(), getParentForChildren(), isClean()); - creationTime_ = null; + public Builder setOrganizationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return creationTimeBuilder_; + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - private com.google.protobuf.Timestamp lastModifyTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastModifyTimeBuilder_; + private java.lang.Object organizationDisplayName_ = ""; /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Display name of the project of this subscription.
      * 
* - * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the lastModifyTime field is set. + * @return The organizationDisplayName. */ - public boolean hasLastModifyTime() { - return ((bitField0_ & 0x00000010) != 0); + public java.lang.String getOrganizationDisplayName() { + java.lang.Object ref = organizationDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Display name of the project of this subscription.
      * 
* - * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The lastModifyTime. + * @return The bytes for organizationDisplayName. */ - public com.google.protobuf.Timestamp getLastModifyTime() { - if (lastModifyTimeBuilder_ == null) { - return lastModifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastModifyTime_; + public com.google.protobuf.ByteString getOrganizationDisplayNameBytes() { + java.lang.Object ref = organizationDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organizationDisplayName_ = b; + return b; } else { - return lastModifyTimeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -4031,23 +6146,21 @@ public com.google.protobuf.Timestamp getLastModifyTime() { * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Display name of the project of this subscription.
      * 
* - * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The organizationDisplayName to set. + * @return This builder for chaining. */ - public Builder setLastModifyTime(com.google.protobuf.Timestamp value) { - if (lastModifyTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastModifyTime_ = value; - } else { - lastModifyTimeBuilder_.setMessage(value); + public Builder setOrganizationDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000010; + organizationDisplayName_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4056,20 +6169,17 @@ public Builder setLastModifyTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Display name of the project of this subscription.
      * 
* - * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder setLastModifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastModifyTimeBuilder_ == null) { - lastModifyTime_ = builderForValue.build(); - } else { - lastModifyTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; + public Builder clearOrganizationDisplayName() { + organizationDisplayName_ = getDefaultInstance().getOrganizationDisplayName(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4078,301 +6188,390 @@ public Builder setLastModifyTime(com.google.protobuf.Timestamp.Builder builderFo * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Display name of the project of this subscription.
      * 
* - * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes for organizationDisplayName to set. + * @return This builder for chaining. */ - public Builder mergeLastModifyTime(com.google.protobuf.Timestamp value) { - if (lastModifyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && lastModifyTime_ != null - && lastModifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLastModifyTimeBuilder().mergeFrom(value); - } else { - lastModifyTime_ = value; - } - } else { - lastModifyTimeBuilder_.mergeFrom(value); - } - if (lastModifyTime_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + public Builder setOrganizationDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationDisplayName_ = value; + bitField0_ |= 0x00000040; + onChanged(); return this; } + private int state_ = 0; + /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Current state of the subscription.
      * 
* * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for state. */ - public Builder clearLastModifyTime() { - bitField0_ = (bitField0_ & ~0x00000010); - lastModifyTime_ = null; - if (lastModifyTimeBuilder_ != null) { - lastModifyTimeBuilder_.dispose(); - lastModifyTimeBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public int getStateValue() { + return state_; } /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Current state of the subscription.
      * 
* * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getLastModifyTimeBuilder() { - bitField0_ |= 0x00000010; + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; onChanged(); - return getLastModifyTimeFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Current state of the subscription.
      * 
* * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The state. */ - public com.google.protobuf.TimestampOrBuilder getLastModifyTimeOrBuilder() { - if (lastModifyTimeBuilder_ != null) { - return lastModifyTimeBuilder_.getMessageOrBuilder(); - } else { - return lastModifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastModifyTime_; - } + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.State getState() { + com.google.cloud.bigquery.analyticshub.v1.Subscription.State result = + com.google.cloud.bigquery.analyticshub.v1.Subscription.State.forNumber(state_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.State.UNRECOGNIZED + : result; } /** * * *
-     * Output only. Timestamp when the subscription was last modified.
+     * Output only. Current state of the subscription.
      * 
* * - * .google.protobuf.Timestamp last_modify_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The state 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> - getLastModifyTimeFieldBuilder() { - if (lastModifyTimeBuilder_ == null) { - lastModifyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastModifyTime(), getParentForChildren(), isClean()); - lastModifyTime_ = null; + public Builder setState(com.google.cloud.bigquery.analyticshub.v1.Subscription.State value) { + if (value == null) { + throw new NullPointerException(); } - return lastModifyTimeBuilder_; + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; } - private java.lang.Object organizationId_ = ""; - /** * * *
-     * Output only. Organization of the project this subscription belongs to.
+     * Output only. Current state of the subscription.
      * 
* - * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The organizationId. + * @return This builder for chaining. */ - public java.lang.String getOrganizationId() { - java.lang.Object ref = organizationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - organizationId_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private static final class LinkedDatasetMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> { + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource build( + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder val) { + if (val instanceof com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) { + return (com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) val; + } + return ((com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + defaultEntry() { + return LinkedDatasetMapDefaultEntryHolder.defaultEntry; } } + ; - /** - * - * - *
-     * Output only. Organization of the project this subscription belongs to.
-     * 
- * - * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for organizationId. - */ - public com.google.protobuf.ByteString getOrganizationIdBytes() { - java.lang.Object ref = organizationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - organizationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private static final LinkedDatasetMapConverter linkedDatasetMapConverter = + new LinkedDatasetMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> + linkedDatasetMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> + internalGetLinkedDatasetMap() { + if (linkedDatasetMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(linkedDatasetMapConverter); + } + return linkedDatasetMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> + internalGetMutableLinkedDatasetMap() { + if (linkedDatasetMap_ == null) { + linkedDatasetMap_ = new com.google.protobuf.MapFieldBuilder<>(linkedDatasetMapConverter); } + bitField0_ |= 0x00000100; + onChanged(); + return linkedDatasetMap_; + } + + public int getLinkedDatasetMapCount() { + return internalGetLinkedDatasetMap().ensureBuilderMap().size(); } /** * * *
-     * Output only. Organization of the project this subscription belongs to.
-     * 
+ * Output only. Map of listing resource names to associated linked resource, + * e.g. projects/123/locations/us/dataExchanges/456/listings/789 + * -> + * projects/123/datasets/my_dataset * - * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * For listing-level subscriptions, this is a map of size 1. + * Only contains values if state == STATE_ACTIVE. + *
* - * @param value The organizationId to set. - * @return This builder for chaining. + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOrganizationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public boolean containsLinkedDatasetMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - organizationId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + return internalGetLinkedDatasetMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getLinkedDatasetMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + getLinkedDatasetMap() { + return getLinkedDatasetMapMap(); } /** * * *
-     * Output only. Organization of the project this subscription belongs to.
-     * 
+ * Output only. Map of listing resource names to associated linked resource, + * e.g. projects/123/locations/us/dataExchanges/456/listings/789 + * -> + * projects/123/datasets/my_dataset * - * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * For listing-level subscriptions, this is a map of size 1. + * Only contains values if state == STATE_ACTIVE. + *
* - * @return This builder for chaining. + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearOrganizationId() { - organizationId_ = getDefaultInstance().getOrganizationId(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + getLinkedDatasetMapMap() { + return internalGetLinkedDatasetMap().getImmutableMap(); } /** * * *
-     * Output only. Organization of the project this subscription belongs to.
-     * 
+ * Output only. Map of listing resource names to associated linked resource, + * e.g. projects/123/locations/us/dataExchanges/456/listings/789 + * -> + * projects/123/datasets/my_dataset * - * string organization_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * For listing-level subscriptions, this is a map of size 1. + * Only contains values if state == STATE_ACTIVE. + *
* - * @param value The bytes for organizationId to set. - * @return This builder for chaining. + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOrganizationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - organizationId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; + @java.lang.Override + public /* nullable */ com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource + getLinkedDatasetMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + map = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); + return map.containsKey(key) ? linkedDatasetMapConverter.build(map.get(key)) : defaultValue; } - private java.lang.Object organizationDisplayName_ = ""; - /** * * *
-     * Output only. Display name of the project of this subscription.
+     * Output only. Map of listing resource names to associated linked resource,
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * ->
+     * projects/123/datasets/my_dataset
+     *
+     * For listing-level subscriptions, this is a map of size 1.
+     * Only contains values if state == STATE_ACTIVE.
      * 
* - * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The organizationDisplayName. */ - public java.lang.String getOrganizationDisplayName() { - java.lang.Object ref = organizationDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - organizationDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource + getLinkedDatasetMapOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + map = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return linkedDatasetMapConverter.build(map.get(key)); + } + + public Builder clearLinkedDatasetMap() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableLinkedDatasetMap().clear(); + return this; } /** * * *
-     * Output only. Display name of the project of this subscription.
+     * Output only. Map of listing resource names to associated linked resource,
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * ->
+     * projects/123/datasets/my_dataset
+     *
+     * For listing-level subscriptions, this is a map of size 1.
+     * Only contains values if state == STATE_ACTIVE.
      * 
* - * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The bytes for organizationDisplayName. */ - public com.google.protobuf.ByteString getOrganizationDisplayNameBytes() { - java.lang.Object ref = organizationDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - organizationDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder removeLinkedDatasetMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableLinkedDatasetMap().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + getMutableLinkedDatasetMap() { + bitField0_ |= 0x00000100; + return internalGetMutableLinkedDatasetMap().ensureMessageMap(); } /** * * *
-     * Output only. Display name of the project of this subscription.
+     * Output only. Map of listing resource names to associated linked resource,
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * ->
+     * projects/123/datasets/my_dataset
+     *
+     * For listing-level subscriptions, this is a map of size 1.
+     * Only contains values if state == STATE_ACTIVE.
      * 
* - * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The organizationDisplayName to set. - * @return This builder for chaining. */ - public Builder setOrganizationDisplayName(java.lang.String value) { + public Builder putLinkedDatasetMap( + java.lang.String key, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException(); + throw new NullPointerException("map value"); } - organizationDisplayName_ = value; - bitField0_ |= 0x00000040; - onChanged(); + internalGetMutableLinkedDatasetMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000100; return this; } @@ -4380,18 +6579,34 @@ public Builder setOrganizationDisplayName(java.lang.String value) { * * *
-     * Output only. Display name of the project of this subscription.
+     * Output only. Map of listing resource names to associated linked resource,
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * ->
+     * projects/123/datasets/my_dataset
+     *
+     * For listing-level subscriptions, this is a map of size 1.
+     * Only contains values if state == STATE_ACTIVE.
      * 
* - * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearOrganizationDisplayName() { - organizationDisplayName_ = getDefaultInstance().getOrganizationDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); + public Builder putAllLinkedDatasetMap( + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableLinkedDatasetMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -4399,109 +6614,124 @@ public Builder clearOrganizationDisplayName() { * * *
-     * Output only. Display name of the project of this subscription.
+     * Output only. Map of listing resource names to associated linked resource,
+     * e.g. projects/123/locations/us/dataExchanges/456/listings/789
+     * ->
+     * projects/123/datasets/my_dataset
+     *
+     * For listing-level subscriptions, this is a map of size 1.
+     * Only contains values if state == STATE_ACTIVE.
      * 
* - * string organization_display_name = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The bytes for organizationDisplayName to set. - * @return This builder for chaining. */ - public Builder setOrganizationDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + putLinkedDatasetMapBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + builderMap = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.newBuilder(); + builderMap.put(key, entry); } - checkByteStringIsUtf8(value); - organizationDisplayName_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + if (entry instanceof com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) { + entry = + ((com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder) entry; } - private int state_ = 0; + private java.lang.Object subscriberContact_ = ""; /** * * *
-     * Output only. Current state of the subscription.
+     * Output only. Email of the subscriber.
      * 
* - * - * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The enum numeric value on the wire for state. + * @return The subscriberContact. */ - @java.lang.Override - public int getStateValue() { - return state_; + public java.lang.String getSubscriberContact() { + java.lang.Object ref = subscriberContact_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriberContact_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. Current state of the subscription.
+     * Output only. Email of the subscriber.
      * 
* - * - * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * @return The bytes for subscriberContact. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; + public com.google.protobuf.ByteString getSubscriberContactBytes() { + java.lang.Object ref = subscriberContact_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriberContact_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. Current state of the subscription.
+     * Output only. Email of the subscriber.
      * 
* - * - * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The state. + * @param value The subscriberContact to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Subscription.State getState() { - com.google.cloud.bigquery.analyticshub.v1.Subscription.State result = - com.google.cloud.bigquery.analyticshub.v1.Subscription.State.forNumber(state_); - return result == null - ? com.google.cloud.bigquery.analyticshub.v1.Subscription.State.UNRECOGNIZED - : result; + public Builder setSubscriberContact(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscriberContact_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Output only. Current state of the subscription.
+     * Output only. Email of the subscriber.
      * 
* - * - * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.bigquery.analyticshub.v1.Subscription.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - state_ = value.getNumber(); + public Builder clearSubscriberContact() { + subscriberContact_ = getDefaultInstance().getSubscriberContact(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4510,214 +6740,130 @@ public Builder setState(com.google.cloud.bigquery.analyticshub.v1.Subscription.S * * *
-     * Output only. Current state of the subscription.
+     * Output only. Email of the subscriber.
      * 
* - * - * .google.cloud.bigquery.analyticshub.v1.Subscription.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * @param value The bytes for subscriberContact to set. * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); - state_ = 0; + public Builder setSubscriberContactBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscriberContact_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private static final class LinkedDatasetMapConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> { - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource build( - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder val) { - if (val instanceof com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) { - return (com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) val; - } - return ((com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder) val) - .build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - defaultEntry() { - return LinkedDatasetMapDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final LinkedDatasetMapConverter linkedDatasetMapConverter = - new LinkedDatasetMapConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> - linkedDatasetMap_; + private java.util.List + linkedResources_ = java.util.Collections.emptyList(); - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> - internalGetLinkedDatasetMap() { - if (linkedDatasetMap_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(linkedDatasetMapConverter); + private void ensureLinkedResourcesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + linkedResources_ = + new java.util.ArrayList< + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource>( + linkedResources_); + bitField0_ |= 0x00000400; } - return linkedDatasetMap_; } - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder, + private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> - internalGetMutableLinkedDatasetMap() { - if (linkedDatasetMap_ == null) { - linkedDatasetMap_ = new com.google.protobuf.MapFieldBuilder<>(linkedDatasetMapConverter); - } - bitField0_ |= 0x00000100; - onChanged(); - return linkedDatasetMap_; - } - - public int getLinkedDatasetMapCount() { - return internalGetLinkedDatasetMap().ensureBuilderMap().size(); - } + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + linkedResourcesBuilder_; /** * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public boolean containsLinkedDatasetMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public java.util.List + getLinkedResourcesList() { + if (linkedResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(linkedResources_); + } else { + return linkedResourcesBuilder_.getMessageList(); } - return internalGetLinkedDatasetMap().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getLinkedDatasetMapMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - getLinkedDatasetMap() { - return getLinkedDatasetMapMap(); } /** * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - getLinkedDatasetMapMap() { - return internalGetLinkedDatasetMap().getImmutableMap(); + public int getLinkedResourcesCount() { + if (linkedResourcesBuilder_ == null) { + return linkedResources_.size(); + } else { + return linkedResourcesBuilder_.getCount(); + } } /** * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource - getLinkedDatasetMapOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource getLinkedResources( + int index) { + if (linkedResourcesBuilder_ == null) { + return linkedResources_.get(index); + } else { + return linkedResourcesBuilder_.getMessage(index); } - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - map = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); - return map.containsKey(key) ? linkedDatasetMapConverter.build(map.get(key)) : defaultValue; } /** * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource - getLinkedDatasetMapOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - map = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setLinkedResources( + int index, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { + if (linkedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkedResourcesIsMutable(); + linkedResources_.set(index, value); + onChanged(); + } else { + linkedResourcesBuilder_.setMessage(index, value); } - return linkedDatasetMapConverter.build(map.get(key)); - } - - public Builder clearLinkedDatasetMap() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableLinkedDatasetMap().clear(); return this; } @@ -4725,64 +6871,52 @@ public Builder clearLinkedDatasetMap() { * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeLinkedDatasetMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setLinkedResources( + int index, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + builderForValue) { + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + linkedResources_.set(index, builderForValue.build()); + onChanged(); + } else { + linkedResourcesBuilder_.setMessage(index, builderForValue.build()); } - internalGetMutableLinkedDatasetMap().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - getMutableLinkedDatasetMap() { - bitField0_ |= 0x00000100; - return internalGetMutableLinkedDatasetMap().ensureMessageMap(); + return this; } /** * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putLinkedDatasetMap( - java.lang.String key, + public Builder addLinkedResources( com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + if (linkedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkedResourcesIsMutable(); + linkedResources_.add(value); + onChanged(); + } else { + linkedResourcesBuilder_.addMessage(value); } - internalGetMutableLinkedDatasetMap().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000100; return this; } @@ -4790,34 +6924,26 @@ public Builder putLinkedDatasetMap( * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllLinkedDatasetMap( - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - values) { - for (java.util.Map.Entry< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { + public Builder addLinkedResources( + int index, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { + if (linkedResourcesBuilder_ == null) { + if (value == null) { throw new NullPointerException(); } + ensureLinkedResourcesIsMutable(); + linkedResources_.add(index, value); + onChanged(); + } else { + linkedResourcesBuilder_.addMessage(index, value); } - internalGetMutableLinkedDatasetMap().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000100; return this; } @@ -4825,107 +6951,99 @@ public Builder putAllLinkedDatasetMap( * * *
-     * Output only. Map of listing resource names to associated linked resource,
-     * e.g. projects/123/locations/US/dataExchanges/456/listings/789
-     * ->
-     * projects/123/datasets/my_dataset
-     *
-     * For listing-level subscriptions, this is a map of size 1.
-     * Only contains values if state == STATE_ACTIVE.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* * - * map<string, .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> linked_dataset_map = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - putLinkedDatasetMapBuilderIfAbsent(java.lang.String key) { - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - builderMap = internalGetMutableLinkedDatasetMap().ensureBuilderMap(); - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder entry = - builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) { - entry = - ((com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource) entry) - .toBuilder(); - builderMap.put(key, entry); + public Builder addLinkedResources( + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + builderForValue) { + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + linkedResources_.add(builderForValue.build()); + onChanged(); + } else { + linkedResourcesBuilder_.addMessage(builderForValue.build()); } - return (com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder) entry; + return this; } - private java.lang.Object subscriberContact_ = ""; - /** * * *
-     * Output only. Email of the subscriber.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* - * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subscriberContact. + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getSubscriberContact() { - java.lang.Object ref = subscriberContact_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subscriberContact_ = s; - return s; + public Builder addLinkedResources( + int index, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + builderForValue) { + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + linkedResources_.add(index, builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + linkedResourcesBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Output only. Email of the subscriber.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* - * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subscriberContact. + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getSubscriberContactBytes() { - java.lang.Object ref = subscriberContact_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subscriberContact_ = b; - return b; + public Builder addAllLinkedResources( + java.lang.Iterable< + ? extends com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> + values) { + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedResources_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + linkedResourcesBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * Output only. Email of the subscriber.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* - * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The subscriberContact to set. - * @return This builder for chaining. + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubscriberContact(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearLinkedResources() { + if (linkedResourcesBuilder_ == null) { + linkedResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + linkedResourcesBuilder_.clear(); } - subscriberContact_ = value; - bitField0_ |= 0x00000200; - onChanged(); return this; } @@ -4933,17 +7051,22 @@ public Builder setSubscriberContact(java.lang.String value) { * * *
-     * Output only. Email of the subscriber.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* - * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearSubscriberContact() { - subscriberContact_ = getDefaultInstance().getSubscriberContact(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); + public Builder removeLinkedResources(int index) { + if (linkedResourcesBuilder_ == null) { + ensureLinkedResourcesIsMutable(); + linkedResources_.remove(index); + onChanged(); + } else { + linkedResourcesBuilder_.remove(index); + } return this; } @@ -4951,43 +7074,39 @@ public Builder clearSubscriberContact() { * * *
-     * Output only. Email of the subscriber.
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
      * 
* - * string subscriber_contact = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for subscriberContact to set. - * @return This builder for chaining. + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSubscriberContactBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - subscriberContact_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + getLinkedResourcesBuilder(int index) { + return getLinkedResourcesFieldBuilder().getBuilder(index); } - private java.util.List - linkedResources_ = java.util.Collections.emptyList(); - - private void ensureLinkedResourcesIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - linkedResources_ = - new java.util.ArrayList< - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource>( - linkedResources_); - bitField0_ |= 0x00000400; + /** + * + * + *
+     * Output only. Linked resources created in the subscription. Only contains
+     * values if state = STATE_ACTIVE.
+     * 
+ * + * + * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder + getLinkedResourcesOrBuilder(int index) { + if (linkedResourcesBuilder_ == null) { + return linkedResources_.get(index); + } else { + return linkedResourcesBuilder_.getMessageOrBuilder(index); } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - linkedResourcesBuilder_; + } /** * @@ -5001,12 +7120,14 @@ private void ensureLinkedResourcesIsMutable() { * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ - public java.util.List - getLinkedResourcesList() { - if (linkedResourcesBuilder_ == null) { - return java.util.Collections.unmodifiableList(linkedResources_); + public java.util.List< + ? extends + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + getLinkedResourcesOrBuilderList() { + if (linkedResourcesBuilder_ != null) { + return linkedResourcesBuilder_.getMessageOrBuilderList(); } else { - return linkedResourcesBuilder_.getMessageList(); + return java.util.Collections.unmodifiableList(linkedResources_); } } @@ -5022,12 +7143,12 @@ private void ensureLinkedResourcesIsMutable() { * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ - public int getLinkedResourcesCount() { - if (linkedResourcesBuilder_ == null) { - return linkedResources_.size(); - } else { - return linkedResourcesBuilder_.getCount(); - } + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + addLinkedResourcesBuilder() { + return getLinkedResourcesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource + .getDefaultInstance()); } /** @@ -5042,13 +7163,13 @@ public int getLinkedResourcesCount() { * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource getLinkedResources( - int index) { - if (linkedResourcesBuilder_ == null) { - return linkedResources_.get(index); - } else { - return linkedResourcesBuilder_.getMessage(index); - } + public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder + addLinkedResourcesBuilder(int index) { + return getLinkedResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource + .getDefaultInstance()); } /** @@ -5063,71 +7184,70 @@ public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource get * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
*/ - public Builder setLinkedResources( - int index, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { + public java.util.List< + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> + getLinkedResourcesBuilderList() { + return getLinkedResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> + getLinkedResourcesFieldBuilder() { if (linkedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkedResourcesIsMutable(); - linkedResources_.set(index, value); - onChanged(); - } else { - linkedResourcesBuilder_.setMessage(index, value); + linkedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder>( + linkedResources_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + linkedResources_ = null; } - return this; + return linkedResourcesBuilder_; } + private int resourceType_ = 0; + /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. Listing shared asset type.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The enum numeric value on the wire for resourceType. */ - public Builder setLinkedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - builderForValue) { - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - linkedResources_.set(index, builderForValue.build()); - onChanged(); - } else { - linkedResourcesBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public int getResourceTypeValue() { + return resourceType_; } /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. Listing shared asset type.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. */ - public Builder addLinkedResources( - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { - if (linkedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkedResourcesIsMutable(); - linkedResources_.add(value); - onChanged(); - } else { - linkedResourcesBuilder_.addMessage(value); - } + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000800; + onChanged(); return this; } @@ -5135,26 +7255,46 @@ public Builder addLinkedResources( * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. Listing shared asset type.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The resourceType. */ - public Builder addLinkedResources( - int index, com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource value) { - if (linkedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkedResourcesIsMutable(); - linkedResources_.add(index, value); - onChanged(); - } else { - linkedResourcesBuilder_.addMessage(index, value); + @java.lang.Override + public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType() { + com.google.cloud.bigquery.analyticshub.v1.SharedResourceType result = + com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.forNumber(resourceType_); + return result == null + ? com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Listing shared asset type.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + com.google.cloud.bigquery.analyticshub.v1.SharedResourceType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000800; + resourceType_ = value.getNumber(); + onChanged(); return this; } @@ -5162,76 +7302,97 @@ public Builder addLinkedResources( * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. Listing shared asset type.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder addLinkedResources( - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - builderForValue) { - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - linkedResources_.add(builderForValue.build()); - onChanged(); - } else { - linkedResourcesBuilder_.addMessage(builderForValue.build()); - } + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000800); + resourceType_ = 0; + onChanged(); return this; } + private com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercialInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder> + commercialInfoBuilder_; + /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the commercialInfo field is set. */ - public Builder addLinkedResources( - int index, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - builderForValue) { - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - linkedResources_.add(index, builderForValue.build()); - onChanged(); + public boolean hasCommercialInfo() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + getCommercialInfo() { + if (commercialInfoBuilder_ == null) { + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .getDefaultInstance() + : commercialInfo_; } else { - linkedResourcesBuilder_.addMessage(index, builderForValue.build()); + return commercialInfoBuilder_.getMessage(); } - return this; } /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllLinkedResources( - java.lang.Iterable< - ? extends com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource> - values) { - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedResources_); - onChanged(); + public Builder setCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo value) { + if (commercialInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + commercialInfo_ = value; } else { - linkedResourcesBuilder_.addAllMessages(values); + commercialInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -5239,21 +7400,57 @@ public Builder addAllLinkedResources( * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearLinkedResources() { - if (linkedResourcesBuilder_ == null) { - linkedResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public Builder setCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder + builderForValue) { + if (commercialInfoBuilder_ == null) { + commercialInfo_ = builderForValue.build(); + } else { + commercialInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCommercialInfo( + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo value) { + if (commercialInfoBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && commercialInfo_ != null + && commercialInfo_ + != com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .getDefaultInstance()) { + getCommercialInfoBuilder().mergeFrom(value); + } else { + commercialInfo_ = value; + } } else { - linkedResourcesBuilder_.clear(); + commercialInfoBuilder_.mergeFrom(value); + } + if (commercialInfo_ != null) { + bitField0_ |= 0x00001000; + onChanged(); } return this; } @@ -5262,22 +7459,22 @@ public Builder clearLinkedResources() { * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeLinkedResources(int index) { - if (linkedResourcesBuilder_ == null) { - ensureLinkedResourcesIsMutable(); - linkedResources_.remove(index); - onChanged(); - } else { - linkedResourcesBuilder_.remove(index); + public Builder clearCommercialInfo() { + bitField0_ = (bitField0_ & ~0x00001000); + commercialInfo_ = null; + if (commercialInfoBuilder_ != null) { + commercialInfoBuilder_.dispose(); + commercialInfoBuilder_ = null; } + onChanged(); return this; } @@ -5285,37 +7482,42 @@ public Builder removeLinkedResources(int index) { * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - getLinkedResourcesBuilder(int index) { - return getLinkedResourcesFieldBuilder().getBuilder(index); + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder + getCommercialInfoBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getCommercialInfoFieldBuilder().getBuilder(); } /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder - getLinkedResourcesOrBuilder(int index) { - if (linkedResourcesBuilder_ == null) { - return linkedResources_.get(index); + public com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder + getCommercialInfoOrBuilder() { + if (commercialInfoBuilder_ != null) { + return commercialInfoBuilder_.getMessageOrBuilder(); } else { - return linkedResourcesBuilder_.getMessageOrBuilder(index); + return commercialInfo_ == null + ? com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo + .getDefaultInstance() + : commercialInfo_; } } @@ -5323,188 +7525,188 @@ public Builder removeLinkedResources(int index) { * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. This is set if this is a commercial subscription i.e. if this
+     * subscription was created from subscribing to a commercial listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List< - ? extends - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - getLinkedResourcesOrBuilderList() { - if (linkedResourcesBuilder_ != null) { - return linkedResourcesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(linkedResources_); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder> + getCommercialInfoFieldBuilder() { + if (commercialInfoBuilder_ == null) { + commercialInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo.Builder, + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder>( + getCommercialInfo(), getParentForChildren(), isClean()); + commercialInfo_ = null; } + return commercialInfoBuilder_; } + private boolean logLinkedDatasetQueryUserEmail_; + /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. By default, false.
+     * If true, the Subscriber agreed to the email sharing mandate
+     * that is enabled for DataExchange/Listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the logLinkedDatasetQueryUserEmail field is set. */ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - addLinkedResourcesBuilder() { - return getLinkedResourcesFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource - .getDefaultInstance()); + @java.lang.Override + public boolean hasLogLinkedDatasetQueryUserEmail() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. By default, false.
+     * If true, the Subscriber agreed to the email sharing mandate
+     * that is enabled for DataExchange/Listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The logLinkedDatasetQueryUserEmail. */ - public com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder - addLinkedResourcesBuilder(int index) { - return getLinkedResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource - .getDefaultInstance()); + @java.lang.Override + public boolean getLogLinkedDatasetQueryUserEmail() { + return logLinkedDatasetQueryUserEmail_; } /** * * *
-     * Output only. Linked resources created in the subscription. Only contains
-     * values if state = STATE_ACTIVE.
+     * Output only. By default, false.
+     * If true, the Subscriber agreed to the email sharing mandate
+     * that is enabled for DataExchange/Listing.
      * 
* * - * repeated .google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource linked_resources = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The logLinkedDatasetQueryUserEmail to set. + * @return This builder for chaining. */ - public java.util.List< - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder> - getLinkedResourcesBuilderList() { - return getLinkedResourcesFieldBuilder().getBuilderList(); - } + public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder> - getLinkedResourcesFieldBuilder() { - if (linkedResourcesBuilder_ == null) { - linkedResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource.Builder, - com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResourceOrBuilder>( - linkedResources_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - linkedResources_ = null; - } - return linkedResourcesBuilder_; + logLinkedDatasetQueryUserEmail_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; } - private int resourceType_ = 0; - /** * * *
-     * Output only. Listing shared asset type.
+     * Output only. By default, false.
+     * If true, the Subscriber agreed to the email sharing mandate
+     * that is enabled for DataExchange/Listing.
      * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The enum numeric value on the wire for resourceType. + * @return This builder for chaining. */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; + public Builder clearLogLinkedDatasetQueryUserEmail() { + bitField0_ = (bitField0_ & ~0x00002000); + logLinkedDatasetQueryUserEmail_ = false; + onChanged(); + return this; } + private com.google.cloud.bigquery.analyticshub.v1.DestinationDataset destinationDataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset, + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.Builder, + com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder> + destinationDatasetBuilder_; + /** * * *
-     * Output only. Listing shared asset type.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. + * @return Whether the destinationDataset field is set. */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + public boolean hasDestinationDataset() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
-     * Output only. Listing shared asset type.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The resourceType. + * @return The destinationDataset. */ - @java.lang.Override - public com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType() { - com.google.cloud.bigquery.analyticshub.v1.SharedResourceType result = - com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.forNumber(resourceType_); - return result == null - ? com.google.cloud.bigquery.analyticshub.v1.SharedResourceType.UNRECOGNIZED - : result; + public com.google.cloud.bigquery.analyticshub.v1.DestinationDataset getDestinationDataset() { + if (destinationDatasetBuilder_ == null) { + return destinationDataset_ == null + ? com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.getDefaultInstance() + : destinationDataset_; + } else { + return destinationDatasetBuilder_.getMessage(); + } } /** * * *
-     * Output only. Listing shared asset type.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The resourceType to set. - * @return This builder for chaining. */ - public Builder setResourceType( - com.google.cloud.bigquery.analyticshub.v1.SharedResourceType value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDestinationDataset( + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset value) { + if (destinationDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationDataset_ = value; + } else { + destinationDatasetBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; - resourceType_ = value.getNumber(); + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5513,108 +7715,146 @@ public Builder setResourceType( * * *
-     * Output only. Listing shared asset type.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * .google.cloud.bigquery.analyticshub.v1.SharedResourceType resource_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00000800); - resourceType_ = 0; + public Builder setDestinationDataset( + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.Builder builderForValue) { + if (destinationDatasetBuilder_ == null) { + destinationDataset_ = builderForValue.build(); + } else { + destinationDatasetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; onChanged(); return this; } - private boolean logLinkedDatasetQueryUserEmail_; - /** * * *
-     * Output only. By default, false.
-     * If true, the Subscriber agreed to the email sharing mandate
-     * that is enabled for DataExchange/Listing.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the logLinkedDatasetQueryUserEmail field is set. */ - @java.lang.Override - public boolean hasLogLinkedDatasetQueryUserEmail() { - return ((bitField0_ & 0x00001000) != 0); + public Builder mergeDestinationDataset( + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset value) { + if (destinationDatasetBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && destinationDataset_ != null + && destinationDataset_ + != com.google.cloud.bigquery.analyticshub.v1.DestinationDataset + .getDefaultInstance()) { + getDestinationDatasetBuilder().mergeFrom(value); + } else { + destinationDataset_ = value; + } + } else { + destinationDatasetBuilder_.mergeFrom(value); + } + if (destinationDataset_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; } /** * * *
-     * Output only. By default, false.
-     * If true, the Subscriber agreed to the email sharing mandate
-     * that is enabled for DataExchange/Listing.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The logLinkedDatasetQueryUserEmail. */ - @java.lang.Override - public boolean getLogLinkedDatasetQueryUserEmail() { - return logLinkedDatasetQueryUserEmail_; + public Builder clearDestinationDataset() { + bitField0_ = (bitField0_ & ~0x00004000); + destinationDataset_ = null; + if (destinationDatasetBuilder_ != null) { + destinationDatasetBuilder_.dispose(); + destinationDatasetBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Output only. By default, false.
-     * If true, the Subscriber agreed to the email sharing mandate
-     * that is enabled for DataExchange/Listing.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The logLinkedDatasetQueryUserEmail to set. - * @return This builder for chaining. */ - public Builder setLogLinkedDatasetQueryUserEmail(boolean value) { - - logLinkedDatasetQueryUserEmail_ = value; - bitField0_ |= 0x00001000; + public com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.Builder + getDestinationDatasetBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return this; + return getDestinationDatasetFieldBuilder().getBuilder(); } /** * * *
-     * Output only. By default, false.
-     * If true, the Subscriber agreed to the email sharing mandate
-     * that is enabled for DataExchange/Listing.
+     * Optional. BigQuery destination dataset to create for the subscriber.
      * 
* * - * optional bool log_linked_dataset_query_user_email = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder() { + if (destinationDatasetBuilder_ != null) { + return destinationDatasetBuilder_.getMessageOrBuilder(); + } else { + return destinationDataset_ == null + ? com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.getDefaultInstance() + : destinationDataset_; + } + } + + /** * - * @return This builder for chaining. + * + *
+     * Optional. BigQuery destination dataset to create for the subscriber.
+     * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearLogLinkedDatasetQueryUserEmail() { - bitField0_ = (bitField0_ & ~0x00001000); - logLinkedDatasetQueryUserEmail_ = false; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset, + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.Builder, + com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder> + getDestinationDatasetFieldBuilder() { + if (destinationDatasetBuilder_ == null) { + destinationDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset, + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset.Builder, + com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder>( + getDestinationDataset(), getParentForChildren(), isClean()); + destinationDataset_ = null; + } + return destinationDatasetBuilder_; } @java.lang.Override diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionOrBuilder.java b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionOrBuilder.java index 7929dd0176fc..82fdeb4b79de 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionOrBuilder.java +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/java/com/google/cloud/bigquery/analyticshub/v1/SubscriptionOrBuilder.java @@ -29,7 +29,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -43,7 +43,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -57,7 +57,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Listing.
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * 
* * string listing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -71,7 +71,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
+   * e.g. projects/123/locations/us/dataExchanges/456
    * 
* * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -85,7 +85,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
+   * e.g. projects/123/locations/us/dataExchanges/456
    * 
* * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -99,7 +99,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Resource name of the source Data Exchange.
-   * e.g. projects/123/locations/US/dataExchanges/456
+   * e.g. projects/123/locations/us/dataExchanges/456
    * 
* * string data_exchange = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -113,7 +113,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. The resource name of the subscription.
-   * e.g. `projects/myproject/locations/US/subscriptions/123`.
+   * e.g. `projects/myproject/locations/us/subscriptions/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -127,7 +127,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. The resource name of the subscription.
-   * e.g. `projects/myproject/locations/US/subscriptions/123`.
+   * e.g. `projects/myproject/locations/us/subscriptions/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -311,7 +311,7 @@ public interface SubscriptionOrBuilder * *
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -330,7 +330,7 @@ public interface SubscriptionOrBuilder
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -355,7 +355,7 @@ public interface SubscriptionOrBuilder
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -376,7 +376,7 @@ public interface SubscriptionOrBuilder
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -400,7 +400,7 @@ public interface SubscriptionOrBuilder
    *
    * 
    * Output only. Map of listing resource names to associated linked resource,
-   * e.g. projects/123/locations/US/dataExchanges/456/listings/789
+   * e.g. projects/123/locations/us/dataExchanges/456/listings/789
    * ->
    * projects/123/datasets/my_dataset
    *
@@ -546,6 +546,53 @@ com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource getLinkedR
    */
   com.google.cloud.bigquery.analyticshub.v1.SharedResourceType getResourceType();
 
+  /**
+   *
+   *
+   * 
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the commercialInfo field is set. + */ + boolean hasCommercialInfo(); + + /** + * + * + *
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The commercialInfo. + */ + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo getCommercialInfo(); + + /** + * + * + *
+   * Output only. This is set if this is a commercial subscription i.e. if this
+   * subscription was created from subscribing to a commercial listing.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfo commercial_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.Subscription.CommercialInfoOrBuilder + getCommercialInfoOrBuilder(); + /** * * @@ -580,5 +627,49 @@ com.google.cloud.bigquery.analyticshub.v1.Subscription.LinkedResource getLinkedR */ boolean getLogLinkedDatasetQueryUserEmail(); + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the destinationDataset field is set. + */ + boolean hasDestinationDataset(); + + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The destinationDataset. + */ + com.google.cloud.bigquery.analyticshub.v1.DestinationDataset getDestinationDataset(); + + /** + * + * + *
+   * Optional. BigQuery destination dataset to create for the subscriber.
+   * 
+ * + * + * .google.cloud.bigquery.analyticshub.v1.DestinationDataset destination_dataset = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.analyticshub.v1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder(); + com.google.cloud.bigquery.analyticshub.v1.Subscription.ResourceNameCase getResourceNameCase(); } diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto index 8577275e7558..8573b7ed921e 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/src/main/proto/google/cloud/bigquery/analyticshub/v1/analyticshub.proto @@ -184,8 +184,10 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Creates a Subscription to a Data Clean Room. This is a long-running - // operation as it will create one or more linked datasets. + // Creates a Subscription to a Data Clean Room. This is a + // long-running operation as it will create one or more linked datasets. + // Throws a Bad Request error if the Data Exchange does not contain any + // listings. rpc SubscribeDataExchange(SubscribeDataExchangeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -353,7 +355,7 @@ message DataExchange { }; // Output only. The resource name of the data exchange. - // e.g. `projects/myproject/locations/US/dataExchanges/123`. + // e.g. `projects/myproject/locations/us/dataExchanges/123`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name of the data exchange. The display @@ -398,7 +400,6 @@ message DataExchange { // Optional. By default, false. // If true, the DataExchange has an email sharing mandate enabled. - // Publishers can view the logged email of the subscriber. optional bool log_linked_dataset_query_user_email = 10 [(google.api.field_behavior) = OPTIONAL]; } @@ -533,6 +534,17 @@ message Listing { type: "bigquery.googleapis.com/Table" } ]; + + // Optional. Format: + // For routine: + // `projects/{projectId}/datasets/{datasetId}/routines/{routineId}` + // Example:"projects/test_project/datasets/test_dataset/routines/test_routine" + string routine = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "bigquery.googleapis.com/Routine" + } + ]; } } @@ -606,6 +618,44 @@ message Listing { bool restrict_query_result = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Commercial info contains the information about the commercial data products + // associated with the listing. + message CommercialInfo { + // Specifies the details of the Marketplace Data Product associated with the + // Listing. + message GoogleCloudMarketplaceInfo { + // Indicates whether this commercial access is currently active. + enum CommercialState { + // Commercialization is incomplete and cannot be used. + COMMERCIAL_STATE_UNSPECIFIED = 0; + + // Commercialization has been initialized. + ONBOARDING = 1; + + // Commercialization is complete and available for use. + ACTIVE = 2; + } + + // Output only. Resource name of the commercial service associated with + // the Marketplace Data Product. e.g. example.com + optional string service = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "servicemanagement.googleapis.com/ManagedService" + } + ]; + + // Output only. Commercial state of the Marketplace Data Product. + optional CommercialState commercial_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Details of the Marketplace Data Product associated with the + // Listing. + optional GoogleCloudMarketplaceInfo cloud_marketplace = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // State of the listing. enum State { // Default value. This value is unused. @@ -669,7 +719,7 @@ message Listing { } // Output only. The resource name of the listing. - // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456` + // e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name of the listing. The display name must @@ -729,10 +779,20 @@ message Listing { SharedResourceType resource_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Commercial info contains the information about the commercial + // data products associated with the listing. + optional CommercialInfo commercial_info = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. By default, false. // If true, the Listing has an email sharing mandate enabled. optional bool log_linked_dataset_query_user_email = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the listing is only available to get the resource + // metadata. Listing is non subscribable. + optional bool allow_only_metadata_sharing = 19 + [(google.api.field_behavior) = OPTIONAL]; } // A subscription represents a subscribers' access to a particular set of @@ -761,6 +821,22 @@ message Subscription { string listing = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Commercial info metadata for this subscription. + message CommercialInfo { + // Cloud Marketplace commercial metadata for this subscription. + message GoogleCloudMarketplaceInfo { + // Resource name of the Marketplace Order. + string order = 1 [(google.api.resource_reference) = { + type: "cloudcommerceconsumerprocurement.googleapis.com/Order" + }]; + } + + // Output only. This is set when the subscription is commercialised via + // Cloud Marketplace. + GoogleCloudMarketplaceInfo cloud_marketplace = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // State of the subscription. enum State { // Default value. This value is unused. @@ -780,16 +856,16 @@ message Subscription { oneof resource_name { // Output only. Resource name of the source Listing. - // e.g. projects/123/locations/US/dataExchanges/456/listings/789 + // e.g. projects/123/locations/us/dataExchanges/456/listings/789 string listing = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Resource name of the source Data Exchange. - // e.g. projects/123/locations/US/dataExchanges/456 + // e.g. projects/123/locations/us/dataExchanges/456 string data_exchange = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. The resource name of the subscription. - // e.g. `projects/myproject/locations/US/subscriptions/123`. + // e.g. `projects/myproject/locations/us/subscriptions/123`. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp when the subscription was created. @@ -811,7 +887,7 @@ message Subscription { State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Map of listing resource names to associated linked resource, - // e.g. projects/123/locations/US/dataExchanges/456/listings/789 + // e.g. projects/123/locations/us/dataExchanges/456/listings/789 // -> // projects/123/datasets/my_dataset // @@ -832,17 +908,26 @@ message Subscription { SharedResourceType resource_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. This is set if this is a commercial subscription i.e. if this + // subscription was created from subscribing to a commercial listing. + CommercialInfo commercial_info = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. By default, false. // If true, the Subscriber agreed to the email sharing mandate // that is enabled for DataExchange/Listing. optional bool log_linked_dataset_query_user_email = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. BigQuery destination dataset to create for the subscriber. + DestinationDataset destination_dataset = 15 + [(google.api.field_behavior) = OPTIONAL]; } // Message for requesting the list of data exchanges. message ListDataExchangesRequest { // Required. The parent resource path of the data exchanges. - // e.g. `projects/myproject/locations/US`. + // e.g. `projects/myproject/locations/us`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -872,7 +957,7 @@ message ListDataExchangesResponse { // organization and location. message ListOrgDataExchangesRequest { // Required. The organization resource path of the projects containing - // DataExchanges. e.g. `organizations/myorg/locations/US`. + // DataExchanges. e.g. `organizations/myorg/locations/us`. string organization = 1 [(google.api.field_behavior) = REQUIRED]; // The maximum number of results to return in a single response page. Leverage @@ -897,7 +982,7 @@ message ListOrgDataExchangesResponse { // Message for getting a data exchange. message GetDataExchangeRequest { // Required. The resource name of the data exchange. - // e.g. `projects/myproject/locations/US/dataExchanges/123`. + // e.g. `projects/myproject/locations/us/dataExchanges/123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -909,7 +994,7 @@ message GetDataExchangeRequest { // Message for creating a data exchange. message CreateDataExchangeRequest { // Required. The parent resource path of the data exchange. - // e.g. `projects/myproject/locations/US`. + // e.g. `projects/myproject/locations/us`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -918,7 +1003,7 @@ message CreateDataExchangeRequest { ]; // Required. The ID of the data exchange. - // Must contain only ASCII letters, numbers (0-9), underscores (_). + // Must contain only Unicode letters, numbers (0-9), underscores (_). // Max length: 100 bytes. string data_exchange_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -941,7 +1026,7 @@ message UpdateDataExchangeRequest { // Message for deleting a data exchange. message DeleteDataExchangeRequest { // Required. The full name of the data exchange resource that you want to - // delete. For example, `projects/myproject/locations/US/dataExchanges/123`. + // delete. For example, `projects/myproject/locations/us/dataExchanges/123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -953,7 +1038,7 @@ message DeleteDataExchangeRequest { // Message for requesting the list of listings. message ListListingsRequest { // Required. The parent resource path of the listing. - // e.g. `projects/myproject/locations/US/dataExchanges/123`. + // e.g. `projects/myproject/locations/us/dataExchanges/123`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -982,7 +1067,7 @@ message ListListingsResponse { // Message for getting a listing. message GetListingRequest { // Required. The resource name of the listing. - // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. + // e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -994,7 +1079,7 @@ message GetListingRequest { // Message for creating a listing. message CreateListingRequest { // Required. The parent resource path of the listing. - // e.g. `projects/myproject/locations/US/dataExchanges/123`. + // e.g. `projects/myproject/locations/us/dataExchanges/123`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1003,7 +1088,7 @@ message CreateListingRequest { ]; // Required. The ID of the listing to create. - // Must contain only ASCII letters, numbers (0-9), underscores (_). + // Must contain only Unicode letters, numbers (0-9), underscores (_). // Max length: 100 bytes. string listing_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1026,13 +1111,18 @@ message UpdateListingRequest { // Message for deleting a listing. message DeleteListingRequest { // Required. Resource name of the listing to delete. - // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. + // e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "analyticshub.googleapis.com/Listing" } ]; + + // Optional. If the listing is commercial then this field must be set to true, + // otherwise a failure is thrown. This acts as a safety guard to avoid + // deleting commercial listings accidentally. + bool delete_commercial = 2 [(google.api.field_behavior) = OPTIONAL]; } // Message for subscribing to a listing. @@ -1050,7 +1140,7 @@ message SubscribeListingRequest { } // Required. Resource name of the listing that you want to subscribe to. - // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. + // e.g. `projects/myproject/locations/us/dataExchanges/123/listings/456`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1068,7 +1158,7 @@ message SubscribeListingResponse { // Message for subscribing to a Data Exchange. message SubscribeDataExchangeRequest { // Required. Resource name of the Data Exchange. - // e.g. `projects/publisherproject/locations/US/dataExchanges/123` + // e.g. `projects/publisherproject/locations/us/dataExchanges/123` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1077,7 +1167,7 @@ message SubscribeDataExchangeRequest { ]; // Required. The parent resource path of the Subscription. - // e.g. `projects/subscriberproject/locations/US` + // e.g. `projects/subscriberproject/locations/us` string destination = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1106,7 +1196,7 @@ message SubscribeDataExchangeResponse { // Message for refreshing a subscription. message RefreshSubscriptionRequest { // Required. Resource name of the Subscription to refresh. - // e.g. `projects/subscriberproject/locations/US/subscriptions/123` + // e.g. `projects/subscriberproject/locations/us/subscriptions/123` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1124,7 +1214,7 @@ message RefreshSubscriptionResponse { // Message for getting a subscription. message GetSubscriptionRequest { // Required. Resource name of the subscription. - // e.g. projects/123/locations/US/subscriptions/456 + // e.g. projects/123/locations/us/subscriptions/456 string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1136,7 +1226,7 @@ message GetSubscriptionRequest { // Message for listing subscriptions. message ListSubscriptionsRequest { // Required. The parent resource path of the subscription. - // e.g. projects/myproject/locations/US + // e.g. projects/myproject/locations/us string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1147,8 +1237,8 @@ message ListSubscriptionsRequest { // An expression for filtering the results of the request. Eligible // fields for filtering are: // - // * `listing` - // * `data_exchange` + // + `listing` + // + `data_exchange` // // Alternatively, a literal wrapped in double quotes may be provided. // This will be checked for an exact match against both fields above. @@ -1156,9 +1246,9 @@ message ListSubscriptionsRequest { // In all cases, the full Data Exchange or Listing resource name must // be provided. Some example of using filters: // - // * data_exchange="projects/myproject/locations/us/dataExchanges/123" - // * listing="projects/123/locations/us/dataExchanges/456/listings/789" - // * "projects/myproject/locations/us/dataExchanges/123" + // + data_exchange="projects/myproject/locations/us/dataExchanges/123" + // + listing="projects/123/locations/us/dataExchanges/456/listings/789" + // + "projects/myproject/locations/us/dataExchanges/123" string filter = 2; // The maximum number of results to return in a single response page. @@ -1181,8 +1271,8 @@ message ListSubscriptionsResponse { message ListSharedResourceSubscriptionsRequest { // Required. Resource name of the requested target. This resource may be // either a Listing or a DataExchange. e.g. - // projects/123/locations/US/dataExchanges/456 OR e.g. - // projects/123/locations/US/dataExchanges/456/listings/789 + // projects/123/locations/us/dataExchanges/456 OR e.g. + // projects/123/locations/us/dataExchanges/456/listings/789 string resource = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "*" } @@ -1211,13 +1301,18 @@ message ListSharedResourceSubscriptionsResponse { // Message for revoking a subscription. message RevokeSubscriptionRequest { // Required. Resource name of the subscription to revoke. - // e.g. projects/123/locations/US/subscriptions/456 + // e.g. projects/123/locations/us/subscriptions/456 string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "analyticshub.googleapis.com/Subscription" } ]; + + // Optional. If the subscription is commercial then this field must be set to + // true, otherwise a failure is thrown. This acts as a safety guard to avoid + // revoking commercial subscriptions accidentally. + bool revoke_commercial = 2 [(google.api.field_behavior) = OPTIONAL]; } // Message for response when you revoke a subscription. @@ -1227,7 +1322,7 @@ message RevokeSubscriptionResponse {} // Message for deleting a subscription. message DeleteSubscriptionRequest { // Required. Resource name of the subscription to delete. - // e.g. projects/123/locations/US/subscriptions/456 + // e.g. projects/123/locations/us/subscriptions/456 string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/AsyncDeleteListing.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/AsyncDeleteListing.java index bcfb43b8dc87..bb9fc791591c 100644 --- a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/AsyncDeleteListing.java +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/AsyncDeleteListing.java @@ -41,6 +41,7 @@ public static void asyncDeleteListing() throws Exception { .setName( ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]") .toString()) + .setDeleteCommercial(true) .build(); ApiFuture future = analyticsHubServiceClient.deleteListingCallable().futureCall(request); diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/SyncDeleteListing.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/SyncDeleteListing.java index 77a8df7121c5..aa1048c44112 100644 --- a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/SyncDeleteListing.java +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/deletelisting/SyncDeleteListing.java @@ -40,6 +40,7 @@ public static void syncDeleteListing() throws Exception { .setName( ListingName.of("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]") .toString()) + .setDeleteCommercial(true) .build(); analyticsHubServiceClient.deleteListing(request); } diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/AsyncRevokeSubscription.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/AsyncRevokeSubscription.java index f3b754e7087d..b8aa7c184ea3 100644 --- a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/AsyncRevokeSubscription.java +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/AsyncRevokeSubscription.java @@ -39,6 +39,7 @@ public static void asyncRevokeSubscription() throws Exception { RevokeSubscriptionRequest request = RevokeSubscriptionRequest.newBuilder() .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setRevokeCommercial(true) .build(); ApiFuture future = analyticsHubServiceClient.revokeSubscriptionCallable().futureCall(request); diff --git a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/SyncRevokeSubscription.java b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/SyncRevokeSubscription.java index 259753f0726b..a039cc75a00b 100644 --- a/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/SyncRevokeSubscription.java +++ b/java-analyticshub/samples/snippets/generated/com/google/cloud/bigquery/analyticshub/v1/analyticshubservice/revokesubscription/SyncRevokeSubscription.java @@ -38,6 +38,7 @@ public static void syncRevokeSubscription() throws Exception { RevokeSubscriptionRequest request = RevokeSubscriptionRequest.newBuilder() .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setRevokeCommercial(true) .build(); RevokeSubscriptionResponse response = analyticsHubServiceClient.revokeSubscription(request); } diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 24d41af2aab1..04a89760180b 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.61.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.62.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 dab547fd1621..e50f405af984 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.61.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.62.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 b9d8141220a9..5d92bc0ce25c 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.59.0 + 26.60.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.61.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.62.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 fc2b54e837bf..a7c745ec29bf 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.59.0 + 26.60.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.14.0' +implementation 'com.google.cloud:google-cloud-apihub:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.14.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.15.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 7935f7495550..0c7fd57aa853 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.59.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.60.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 037cc9e2d6cf..089f98d93edd 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.61.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.62.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 bbbd22c3a21c..db9fc0759e87 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.59.0 + 26.60.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.25.0' +implementation 'com.google.cloud:google-cloud-apphub:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.26.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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.26.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 4eb413c08dce..9fcb09a3a4c6 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.59.0 + 26.60.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.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.65.0' +implementation 'com.google.area120:google-area120-tables:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.65.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "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.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/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-artifact-registry/README.md b/java-artifact-registry/README.md index 68819ee9d3f4..206c38de8e94 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.59.0 + 26.60.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.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.60.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.61.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-asset/README.md b/java-asset/README.md index 3f9086d3e966..e9bb919631d7 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.59.0 + 26.60.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.65.0 + 3.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.65.0' +implementation 'com.google.cloud:google-cloud-asset:3.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.66.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-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.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-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java index f3f0b16f9447..0b55bf8502d1 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequest.java @@ -305,7 +305,7 @@ public com.google.protobuf.ByteString getResourceBytes() { *
    * Required. Name of the Google Cloud folder or organization to reparent the
    * target resource. The analysis will be performed against hypothetically
-   * moving the resource to this specified desitination parent. This can only be
+   * moving the resource to this specified destination parent. This can only be
    * a folder number (such as "folders/123") or an organization number (such as
    * "organizations/123").
    * 
@@ -335,7 +335,7 @@ public java.lang.String getDestinationParent() { *
    * Required. Name of the Google Cloud folder or organization to reparent the
    * target resource. The analysis will be performed against hypothetically
-   * moving the resource to this specified desitination parent. This can only be
+   * moving the resource to this specified destination parent. This can only be
    * a folder number (such as "folders/123") or an organization number (such as
    * "organizations/123").
    * 
@@ -936,7 +936,7 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { *
      * Required. Name of the Google Cloud folder or organization to reparent the
      * target resource. The analysis will be performed against hypothetically
-     * moving the resource to this specified desitination parent. This can only be
+     * moving the resource to this specified destination parent. This can only be
      * a folder number (such as "folders/123") or an organization number (such as
      * "organizations/123").
      * 
@@ -965,7 +965,7 @@ public java.lang.String getDestinationParent() { *
      * Required. Name of the Google Cloud folder or organization to reparent the
      * target resource. The analysis will be performed against hypothetically
-     * moving the resource to this specified desitination parent. This can only be
+     * moving the resource to this specified destination parent. This can only be
      * a folder number (such as "folders/123") or an organization number (such as
      * "organizations/123").
      * 
@@ -994,7 +994,7 @@ public com.google.protobuf.ByteString getDestinationParentBytes() { *
      * Required. Name of the Google Cloud folder or organization to reparent the
      * target resource. The analysis will be performed against hypothetically
-     * moving the resource to this specified desitination parent. This can only be
+     * moving the resource to this specified destination parent. This can only be
      * a folder number (such as "folders/123") or an organization number (such as
      * "organizations/123").
      * 
@@ -1022,7 +1022,7 @@ public Builder setDestinationParent(java.lang.String value) { *
      * Required. Name of the Google Cloud folder or organization to reparent the
      * target resource. The analysis will be performed against hypothetically
-     * moving the resource to this specified desitination parent. This can only be
+     * moving the resource to this specified destination parent. This can only be
      * a folder number (such as "folders/123") or an organization number (such as
      * "organizations/123").
      * 
@@ -1046,7 +1046,7 @@ public Builder clearDestinationParent() { *
      * Required. Name of the Google Cloud folder or organization to reparent the
      * target resource. The analysis will be performed against hypothetically
-     * moving the resource to this specified desitination parent. This can only be
+     * moving the resource to this specified destination parent. This can only be
      * a folder number (such as "folders/123") or an organization number (such as
      * "organizations/123").
      * 
diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java index 7d143d6c8932..a9aa2174a9a0 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveRequestOrBuilder.java @@ -66,7 +66,7 @@ public interface AnalyzeMoveRequestOrBuilder *
    * Required. Name of the Google Cloud folder or organization to reparent the
    * target resource. The analysis will be performed against hypothetically
-   * moving the resource to this specified desitination parent. This can only be
+   * moving the resource to this specified destination parent. This can only be
    * a folder number (such as "folders/123") or an organization number (such as
    * "organizations/123").
    * 
@@ -85,7 +85,7 @@ public interface AnalyzeMoveRequestOrBuilder *
    * Required. Name of the Google Cloud folder or organization to reparent the
    * target resource. The analysis will be performed against hypothetically
-   * moving the resource to this specified desitination parent. This can only be
+   * moving the resource to this specified destination parent. This can only be
    * a folder number (such as "folders/123") or an organization number (such as
    * "organizations/123").
    * 
diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java index 3a15dd50ddd3..5ce83a545304 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfig.java @@ -1041,7 +1041,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { * *
        * The time when the request is received. If specified as partition key,
-       * the result table(s) is partitoned by the RequestTime column, an
+       * the result table(s) is partitioned by the RequestTime column, an
        * additional timestamp column representing when the request was received.
        * 
* @@ -1068,7 +1068,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { * *
        * The time when the request is received. If specified as partition key,
-       * the result table(s) is partitoned by the RequestTime column, an
+       * the result table(s) is partitioned by the RequestTime column, an
        * additional timestamp column representing when the request was received.
        * 
* diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java index 92c7d1ca98d5..25f0b9c36315 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResult.java @@ -2170,7 +2170,7 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -2202,7 +2202,7 @@ public java.lang.String getProject() { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -3372,7 +3372,7 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -3403,7 +3403,7 @@ public java.lang.String getProject() { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -3434,7 +3434,7 @@ public com.google.protobuf.ByteString getProjectBytes() { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -3464,7 +3464,7 @@ public Builder setProject(java.lang.String value) { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -3490,7 +3490,7 @@ public Builder clearProject() { * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java index 3cc795154e1c..7b0e188aa562 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java @@ -112,7 +112,7 @@ public interface IamPolicySearchResultOrBuilder * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * @@ -133,7 +133,7 @@ public interface IamPolicySearchResultOrBuilder * form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource * (like VM instance, Cloud Storage bucket), the project field will indicate * the project that contains the resource. If an IAM policy is set on a folder - * or orgnization, this field will be empty. + * or organization, this field will be empty. * * To search against the `project`: * diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java index 48dad37cd2b4..44814d16e1ee 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpec.java @@ -93,7 +93,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { * *
      * The time when the snapshot is taken. If specified as partition key, the
-     * result table(s) is partitoned by the additional timestamp column,
+     * result table(s) is partitioned by the additional timestamp column,
      * readTime. If [read_time] in ExportAssetsRequest is specified, the
      * readTime column's value will be the same as it. Otherwise, its value will
      * be the current time that is used to take the snapshot.
@@ -107,7 +107,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
      *
      * 
      * The time when the request is received and started to be processed. If
-     * specified as partition key, the result table(s) is partitoned by the
+     * specified as partition key, the result table(s) is partitioned by the
      * requestTime column, an additional timestamp column representing when the
      * request was received.
      * 
@@ -134,7 +134,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum { * *
      * The time when the snapshot is taken. If specified as partition key, the
-     * result table(s) is partitoned by the additional timestamp column,
+     * result table(s) is partitioned by the additional timestamp column,
      * readTime. If [read_time] in ExportAssetsRequest is specified, the
      * readTime column's value will be the same as it. Otherwise, its value will
      * be the current time that is used to take the snapshot.
@@ -149,7 +149,7 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
      *
      * 
      * The time when the request is received and started to be processed. If
-     * specified as partition key, the result table(s) is partitoned by the
+     * specified as partition key, the result table(s) is partitioned by the
      * requestTime column, an additional timestamp column representing when the
      * request was received.
      * 
diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto index e618e9f9932b..dead69cab5ec 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto +++ b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto @@ -799,14 +799,14 @@ message PartitionSpec { PARTITION_KEY_UNSPECIFIED = 0; // The time when the snapshot is taken. If specified as partition key, the - // result table(s) is partitoned by the additional timestamp column, + // result table(s) is partitioned by the additional timestamp column, // readTime. If [read_time] in ExportAssetsRequest is specified, the // readTime column's value will be the same as it. Otherwise, its value will // be the current time that is used to take the snapshot. READ_TIME = 1; // The time when the request is received and started to be processed. If - // specified as partition key, the result table(s) is partitoned by the + // specified as partition key, the result table(s) is partitioned by the // requestTime column, an additional timestamp column representing when the // request was received. REQUEST_TIME = 2; @@ -1524,7 +1524,7 @@ message IamPolicyAnalysisOutputConfig { PARTITION_KEY_UNSPECIFIED = 0; // The time when the request is received. If specified as partition key, - // the result table(s) is partitoned by the RequestTime column, an + // the result table(s) is partitioned by the RequestTime column, an // additional timestamp column representing when the request was received. REQUEST_TIME = 1; } @@ -1819,7 +1819,7 @@ message AnalyzeMoveRequest { // Required. Name of the Google Cloud folder or organization to reparent the // target resource. The analysis will be performed against hypothetically - // moving the resource to this specified desitination parent. This can only be + // moving the resource to this specified destination parent. This can only be // a folder number (such as "folders/123") or an organization number (such as // "organizations/123"). string destination_parent = 2 [ diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto index 7813c1ee93ff..bb0d9f96f5d2 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto +++ b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto @@ -835,7 +835,7 @@ message IamPolicySearchResult { // form of projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource // (like VM instance, Cloud Storage bucket), the project field will indicate // the project that contains the resource. If an IAM policy is set on a folder - // or orgnization, this field will be empty. + // or organization, this field will be empty. // // To search against the `project`: // diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 8884aaac41c5..983e9b81c8e6 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.61.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.62.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 076e26934b31..7f46089e2599 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.61.0' +implementation 'com.google.cloud:google-cloud-automl:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.62.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 4c0a03da81b5..1e49802ce37c 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.59.0 + 26.60.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.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.20.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.21.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.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/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-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index fafe22c8bfbd..893cf7dbea01 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.59.0 + 26.60.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.61.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.62.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 f6dfeb7bded6..22c4f8c5c243 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.59.0 + 26.60.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.61.0' +implementation 'com.google.cloud:google-cloud-batch:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.62.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-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 7c7e219a9583..992e8c99e198 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.59.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.60.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 d108c53e2f3f..55540788164e 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.59.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.60.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 b7c3e9b27f45..9e9dd2c9a714 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.59.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.60.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 562bba20b421..0537346c6e60 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.59.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.60.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 dd2d35a682b6..840e92222fb7 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.59.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.60.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 4634fb4bc3fb..4eaa0fbc241e 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.59.0 + 26.60.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.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.49.0' +implementation 'com.google.cloud:google-cloud-biglake:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.50.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.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.50.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 0c240be0c050..cbe5b64585bc 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.59.0 + 26.60.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.56.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.57.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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.57.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 668e0b096b85..9ea4e00286b5 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.59.0 + 26.60.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.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.63.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.64.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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.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-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 400b187a0225..e73aa92931e6 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.59.0 + 26.60.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.58.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.59.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 150484951fa5..3cf2c21ccb1f 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.61.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.62.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 a6288ab0e812..ef0942706838 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.59.0 + 26.60.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.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.64.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.65.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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.65.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 8cdb692692ec..7a9936b0b182 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.59.0 + 26.60.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.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.62.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.63.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 30da2d8bc998..54313420dbc7 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.61.0' +implementation 'com.google.cloud:google-cloud-billing:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.62.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 26f45bad09e0..a159f4898625 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.61.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.62.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 3023fd80d91a..a23633e84202 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.59.0 + 26.60.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.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.60.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.61.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 83f49d052063..e586c157d628 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.59.0 + 26.60.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.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.64.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.65.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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.65.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 5ae69281083f..36490a044dcb 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.59.0 + 26.60.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.65.0 + 3.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.65.0' +implementation 'com.google.cloud:google-cloud-channel:3.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.66.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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.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-chat/README.md b/java-chat/README.md index f16cb368b580..7b3781495acc 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.59.0 + 26.60.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.25.0' +implementation 'com.google.cloud:google-cloud-chat:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.26.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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.26.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 6d4e51fd24b7..2f1c3d38cbe3 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.59.0 + 26.60.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.63.0 + 3.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.63.0' +implementation 'com.google.cloud:google-cloud-build:3.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.64.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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.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-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 5553ce79d97b..e48011dab52d 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.59.0 + 26.60.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.59.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.60.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 da4e88c2d78c..17145ee11c40 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.59.0 + 26.60.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.25.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.26.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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.26.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 6cbc762237f3..4786f5bfe2d5 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.59.0 + 26.60.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.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.29.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.30.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.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.30.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 e01df4e99400..b99b3bba16a1 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.59.0 + 26.60.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.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.45.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.46.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.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.46.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 c55c310fe7c0..870abbf7c33a 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.59.0 + 26.60.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.71.0 + 1.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.71.0' +implementation 'com.google.cloud:google-cloud-compute:1.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.72.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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.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-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 769fea5c1087..2bb3644f39d9 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.59.0 + 26.60.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.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.47.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.48.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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/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-connectgateway/README.md b/java-connectgateway/README.md index b50d49ec029f..518ac78a432e 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.59.0 + 26.60.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.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.13.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/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-contact-center-insights/README.md b/java-contact-center-insights/README.md index 17a33c75bb7e..9017842e6184 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.61.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.62.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 584a2f831bbf..6910d0f70dbb 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.59.0 + 26.60.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.64.0 + 2.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.64.0' +implementation 'com.google.cloud:google-cloud-container:2.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.65.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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.65.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 09a41e82e28e..0b5f76768e20 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.59.0 + 26.60.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.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.62.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.63.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 980b74768f26..fb66c0cee6d8 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.59.0 + 26.60.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.57.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.58.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.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/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-data-fusion/README.md b/java-data-fusion/README.md index d61e3b164621..076834a3bddd 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.59.0 + 26.60.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.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.61.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.62.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 cc46ad444c51..c1f343b08d37 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.59.0 + 26.60.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.67.0 + 1.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.67.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.68.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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.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-dataflow/README.md b/java-dataflow/README.md index 0bd4d6f07144..e8909e9159d9 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.59.0 + 26.60.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.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.65.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "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-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/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-dataform/README.md b/java-dataform/README.md index e1ef77e1b385..f4f7f3e85f6f 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.59.0 + 26.60.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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.60.0' +implementation 'com.google.cloud:google-cloud-dataform:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.61.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 bd31a23bb701..b7d4270e99ba 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.59.0 + 26.60.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.181.0 + 0.182.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.181.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.182.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.181.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.182.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.181.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.182.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 f2cc16f22763..d8b08c72ecc5 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.59.0 + 26.60.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.53.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.54.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.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.54.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 770b5e8039ce..8eb2d76d1d87 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.59.0 + 26.60.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.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.59.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.60.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/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java index ff5deee66dc2..16a990e5c695 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/CmekServiceClient.java @@ -353,10 +353,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * * @param parent Required. The location at which the EncryptionConfig is to be created. * @param encryptionConfig Required. The EncryptionConfig to create. - * @param encryptionConfigId Required. The ID of the EncryptionConfig to create. The ID must - * contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 - * characters. The first character must be a letter. The last character must be a letter or a - * number. + * @param encryptionConfigId Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. Currently, only a + * value of "default" is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEncryptionConfigAsync( @@ -397,10 +396,9 @@ public final OperationFuture createEncrypti * * @param parent Required. The location at which the EncryptionConfig is to be created. * @param encryptionConfig Required. The EncryptionConfig to create. - * @param encryptionConfigId Required. The ID of the EncryptionConfig to create. The ID must - * contain only letters (a-z, A-Z), numbers (0-9), and hyphens (-). The maximum size is 63 - * characters. The first character must be a letter. The last character must be a letter or a - * number. + * @param encryptionConfigId Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. Currently, only a + * value of "default" is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture createEncryptionConfigAsync( diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequest.java index 2e8d21fd2c8c..9d72308631d3 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequest.java @@ -132,12 +132,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. The ID of the EncryptionConfig to create.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and hyphens (-).
-   * The maximum size is 63 characters.
-   * The first character must be a letter.
-   * The last character must be a letter or a number.
+   * Required. The ID of the
+   * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+   * Currently, only a value of "default" is supported.
    * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -161,12 +158,9 @@ public java.lang.String getEncryptionConfigId() { * * *
-   * Required. The ID of the EncryptionConfig to create.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and hyphens (-).
-   * The maximum size is 63 characters.
-   * The first character must be a letter.
-   * The last character must be a letter or a number.
+   * Required. The ID of the
+   * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+   * Currently, only a value of "default" is supported.
    * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -785,12 +779,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The ID of the EncryptionConfig to create.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and hyphens (-).
-     * The maximum size is 63 characters.
-     * The first character must be a letter.
-     * The last character must be a letter or a number.
+     * Required. The ID of the
+     * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+     * Currently, only a value of "default" is supported.
      * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -813,12 +804,9 @@ public java.lang.String getEncryptionConfigId() { * * *
-     * Required. The ID of the EncryptionConfig to create.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and hyphens (-).
-     * The maximum size is 63 characters.
-     * The first character must be a letter.
-     * The last character must be a letter or a number.
+     * Required. The ID of the
+     * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+     * Currently, only a value of "default" is supported.
      * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -841,12 +829,9 @@ public com.google.protobuf.ByteString getEncryptionConfigIdBytes() { * * *
-     * Required. The ID of the EncryptionConfig to create.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and hyphens (-).
-     * The maximum size is 63 characters.
-     * The first character must be a letter.
-     * The last character must be a letter or a number.
+     * Required. The ID of the
+     * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+     * Currently, only a value of "default" is supported.
      * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -868,12 +853,9 @@ public Builder setEncryptionConfigId(java.lang.String value) { * * *
-     * Required. The ID of the EncryptionConfig to create.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and hyphens (-).
-     * The maximum size is 63 characters.
-     * The first character must be a letter.
-     * The last character must be a letter or a number.
+     * Required. The ID of the
+     * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+     * Currently, only a value of "default" is supported.
      * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -891,12 +873,9 @@ public Builder clearEncryptionConfigId() { * * *
-     * Required. The ID of the EncryptionConfig to create.
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and hyphens (-).
-     * The maximum size is 63 characters.
-     * The first character must be a letter.
-     * The last character must be a letter or a number.
+     * Required. The ID of the
+     * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+     * Currently, only a value of "default" is supported.
      * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequestOrBuilder.java index 4a72c6db9c11..ef1da0e0b209 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CreateEncryptionConfigRequestOrBuilder.java @@ -58,12 +58,9 @@ public interface CreateEncryptionConfigRequestOrBuilder * * *
-   * Required. The ID of the EncryptionConfig to create.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and hyphens (-).
-   * The maximum size is 63 characters.
-   * The first character must be a letter.
-   * The last character must be a letter or a number.
+   * Required. The ID of the
+   * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+   * Currently, only a value of "default" is supported.
    * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -76,12 +73,9 @@ public interface CreateEncryptionConfigRequestOrBuilder * * *
-   * Required. The ID of the EncryptionConfig to create.
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and hyphens (-).
-   * The maximum size is 63 characters.
-   * The first character must be a letter.
-   * The last character must be a letter or a number.
+   * Required. The ID of the
+   * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create.
+   * Currently, only a value of "default" is supported.
    * 
* * string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResult.java index e73d056228f5..882d00a1ec20 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResult.java @@ -1086,7 +1086,7 @@ public interface ScanStatisticsOrBuilder * * *
-   * Statistics of the DataDiscoveryScan.
+   * Describes result statistics of a data scan discovery job.
    * 
* * Protobuf type {@code google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics} @@ -1535,7 +1535,7 @@ protected Builder newBuilderForType( * * *
-     * Statistics of the DataDiscoveryScan.
+     * Describes result statistics of a data scan discovery job.
      * 
* * Protobuf type {@code google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics} @@ -2464,7 +2464,7 @@ public boolean hasBigqueryPublishing() { * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * @@ -2482,7 +2482,7 @@ public boolean hasScanStatistics() { * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * @@ -2502,7 +2502,7 @@ public com.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics getScanSt * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * @@ -3151,7 +3151,7 @@ public Builder clearBigqueryPublishing() { * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3168,7 +3168,7 @@ public boolean hasScanStatistics() { * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3191,7 +3191,7 @@ public com.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics getScanSt * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3217,7 +3217,7 @@ public Builder setScanStatistics( * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3240,7 +3240,7 @@ public Builder setScanStatistics( * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3273,7 +3273,7 @@ public Builder mergeScanStatistics( * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3295,7 +3295,7 @@ public Builder clearScanStatistics() { * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3313,7 +3313,7 @@ public Builder clearScanStatistics() { * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * @@ -3335,7 +3335,7 @@ public Builder clearScanStatistics() { * * *
-     * Output only. Statistics of the DataDiscoveryScan.
+     * Output only. Describes result statistics of a data scan discovery job.
      * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResultOrBuilder.java index ddd5bdce2dfc..0b43b2cfd82b 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataDiscoveryResultOrBuilder.java @@ -72,7 +72,7 @@ public interface DataDiscoveryResultOrBuilder * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * @@ -87,7 +87,7 @@ public interface DataDiscoveryResultOrBuilder * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * @@ -102,7 +102,7 @@ public interface DataDiscoveryResultOrBuilder * * *
-   * Output only. Statistics of the DataDiscoveryScan.
+   * Output only. Describes result statistics of a data scan discovery job.
    * 
* * diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java index 4779e72fa102..e3f49dd0edf9 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EncryptionConfig.java @@ -395,7 +395,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Error because of internal server error, will be retried automatically..
+       * Error because of internal server error, will be retried automatically.
        * 
* * INTERNAL_ERROR = 1; @@ -429,7 +429,7 @@ public enum ErrorCode implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Error because of internal server error, will be retried automatically..
+       * Error because of internal server error, will be retried automatically.
        * 
* * INTERNAL_ERROR = 1; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java index 25337b9d2d9d..5369c253b98a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/MetadataJob.java @@ -112,7 +112,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Export job type.
+     * Export job.
      * 
* * EXPORT = 2; @@ -147,7 +147,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Export job type.
+     * Export job.
      * 
* * EXPORT = 2; @@ -1588,7 +1588,7 @@ public interface ExportJobResultOrBuilder * * *
-     * Output only. The number of entries that have been exported.
+     * Output only. The number of entries that were exported.
      * 
* * int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1601,7 +1601,7 @@ public interface ExportJobResultOrBuilder * * *
-     * Output only. The error message if the export job failed.
+     * Output only. The error message if the metadata export job failed.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1614,7 +1614,7 @@ public interface ExportJobResultOrBuilder * * *
-     * Output only. The error message if the export job failed.
+     * Output only. The error message if the metadata export job failed.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1628,8 +1628,9 @@ public interface ExportJobResultOrBuilder * * *
-   * Export Job Results. The result is based on the snapshot at the time when
-   * the job is created.
+   * Summary results from a metadata export job. The results are a snapshot of
+   * the metadata at the time when the job was created. The exported entries are
+   * saved to a Cloud Storage bucket.
    * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobResult} @@ -1677,7 +1678,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Output only. The number of entries that have been exported.
+     * Output only. The number of entries that were exported.
      * 
* * int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1698,7 +1699,7 @@ public long getExportedEntries() { * * *
-     * Output only. The error message if the export job failed.
+     * Output only. The error message if the metadata export job failed.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1722,7 +1723,7 @@ public java.lang.String getErrorMessage() { * * *
-     * Output only. The error message if the export job failed.
+     * Output only. The error message if the metadata export job failed.
      * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1917,8 +1918,9 @@ protected Builder newBuilderForType( * * *
-     * Export Job Results. The result is based on the snapshot at the time when
-     * the job is created.
+     * Summary results from a metadata export job. The results are a snapshot of
+     * the metadata at the time when the job was created. The exported entries are
+     * saved to a Cloud Storage bucket.
      * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobResult} @@ -2119,7 +2121,7 @@ public Builder mergeFrom( * * *
-       * Output only. The number of entries that have been exported.
+       * Output only. The number of entries that were exported.
        * 
* * int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2135,7 +2137,7 @@ public long getExportedEntries() { * * *
-       * Output only. The number of entries that have been exported.
+       * Output only. The number of entries that were exported.
        * 
* * int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2155,7 +2157,7 @@ public Builder setExportedEntries(long value) { * * *
-       * Output only. The number of entries that have been exported.
+       * Output only. The number of entries that were exported.
        * 
* * int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2175,7 +2177,7 @@ public Builder clearExportedEntries() { * * *
-       * Output only. The error message if the export job failed.
+       * Output only. The error message if the metadata export job failed.
        * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2198,7 +2200,7 @@ public java.lang.String getErrorMessage() { * * *
-       * Output only. The error message if the export job failed.
+       * Output only. The error message if the metadata export job failed.
        * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2221,7 +2223,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { * * *
-       * Output only. The error message if the export job failed.
+       * Output only. The error message if the metadata export job failed.
        * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2243,7 +2245,7 @@ public Builder setErrorMessage(java.lang.String value) { * * *
-       * Output only. The error message if the export job failed.
+       * Output only. The error message if the metadata export job failed.
        * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2261,7 +2263,7 @@ public Builder clearErrorMessage() { * * *
-       * Output only. The error message if the export job failed.
+       * Output only. The error message if the metadata export job failed.
        * 
* * string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2358,8 +2360,9 @@ public interface ImportJobSpecOrBuilder * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -2388,8 +2391,9 @@ public interface ImportJobSpecOrBuilder * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -2668,8 +2672,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Specifies how the entries and aspects in a metadata job are updated. For
-     * more information, see [Sync
+     * Specifies how the entries and aspects in a metadata import job are
+     * updated. For more information, see [Sync
      * mode](https://cloud.google.com/dataplex/docs/import-metadata#sync-mode).
      * 
* @@ -5175,8 +5179,9 @@ public com.google.protobuf.Parser getParserForType() { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -5216,8 +5221,9 @@ public java.lang.String getSourceStorageUri() { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -6045,8 +6051,9 @@ public Builder mergeFrom( * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -6085,8 +6092,9 @@ public java.lang.String getSourceStorageUri() { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -6125,8 +6133,9 @@ public com.google.protobuf.ByteString getSourceStorageUriBytes() { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -6164,8 +6173,9 @@ public Builder setSourceStorageUri(java.lang.String value) { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -6199,8 +6209,9 @@ public Builder clearSourceStorageUri() { * this job. * * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata job. For more information about how to create a - * metadata import file and the file requirements, see [Metadata import + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). * * You can provide multiple metadata import files in the same metadata job. @@ -7116,7 +7127,7 @@ public interface ExportJobSpecOrBuilder * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -7131,7 +7142,7 @@ public interface ExportJobSpecOrBuilder * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -7146,7 +7157,7 @@ public interface ExportJobSpecOrBuilder * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -7160,12 +7171,15 @@ public interface ExportJobSpecOrBuilder * * *
-     * Required. The root path of the exported metadata.
-     * Must be in the format: "gs://<bucket_id>"
-     * Or specify a customized prefix after the bucket:
-     * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-     * The length limit of the customized prefix is 128 characters.
-     * The bucket must be in the same VPC-SC perimeter with the job.
+     * Required. The root path of the Cloud Storage bucket to export the
+     * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+     * custom prefix after the bucket name, in the format
+     * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+     * characters. Dataplex constructs the object path for the exported files by
+     * using the bucket name and prefix that you provide, followed by a
+     * system-generated path.
+     *
+     * The bucket must be in the same VPC Service Controls perimeter as the job.
      * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -7178,12 +7192,15 @@ public interface ExportJobSpecOrBuilder * * *
-     * Required. The root path of the exported metadata.
-     * Must be in the format: "gs://<bucket_id>"
-     * Or specify a customized prefix after the bucket:
-     * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-     * The length limit of the customized prefix is 128 characters.
-     * The bucket must be in the same VPC-SC perimeter with the job.
+     * Required. The root path of the Cloud Storage bucket to export the
+     * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+     * custom prefix after the bucket name, in the format
+     * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+     * characters. Dataplex constructs the object path for the exported files by
+     * using the bucket name and prefix that you provide, followed by a
+     * system-generated path.
+     *
+     * The bucket must be in the same VPC Service Controls perimeter as the job.
      * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -7197,7 +7214,7 @@ public interface ExportJobSpecOrBuilder * * *
-   * Export job specification.
+   * Job specification for a metadata export job.
    * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobSpec} @@ -7247,14 +7264,17 @@ public interface ExportJobScopeOrBuilder * * *
-       * Indicating if it is an organization level export job.
-       * - When set to true, exports all entries from entry groups and projects
-       * sharing the same organization id of the Metadata Job. Only projects and
-       * entry groups in the VPC-SC perimeter will be exported. The projects and
-       * entry groups are ignored.
-       * - When set to false, one of the projects or entry groups must be
-       * specified.
-       * - Default to false.
+       * Whether the metadata export job is an organization-level export job.
+       *
+       * - If `true`, the job exports the entries from the same organization and
+       * VPC Service Controls perimeter as the job. The project that the job
+       * belongs to determines the VPC Service Controls perimeter. If you set
+       * the job scope to be at the organization level, then don't provide a
+       * list of projects or entry groups.
+       * - If `false`, you must specify a list of projects or a list of entry
+       * groups whose entries you want to export.
+       *
+       * The default is `false`.
        * 
* * bool organization_level = 1; @@ -7267,13 +7287,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7286,13 +7309,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7305,13 +7331,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7325,13 +7354,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7345,13 +7377,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7364,13 +7399,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7383,13 +7421,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7403,13 +7444,16 @@ public interface ExportJobScopeOrBuilder * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7423,10 +7467,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7439,10 +7484,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7455,10 +7501,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7472,10 +7519,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7489,11 +7537,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7506,11 +7554,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7523,11 +7571,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7541,11 +7589,11 @@ public interface ExportJobScopeOrBuilder * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7560,7 +7608,7 @@ public interface ExportJobScopeOrBuilder * * *
-     * Scope of the export job.
+     * The scope of the export job.
      * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope} @@ -7612,14 +7660,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Indicating if it is an organization level export job.
-       * - When set to true, exports all entries from entry groups and projects
-       * sharing the same organization id of the Metadata Job. Only projects and
-       * entry groups in the VPC-SC perimeter will be exported. The projects and
-       * entry groups are ignored.
-       * - When set to false, one of the projects or entry groups must be
-       * specified.
-       * - Default to false.
+       * Whether the metadata export job is an organization-level export job.
+       *
+       * - If `true`, the job exports the entries from the same organization and
+       * VPC Service Controls perimeter as the job. The project that the job
+       * belongs to determines the VPC Service Controls perimeter. If you set
+       * the job scope to be at the organization level, then don't provide a
+       * list of projects or entry groups.
+       * - If `false`, you must specify a list of projects or a list of entry
+       * groups whose entries you want to export.
+       *
+       * The default is `false`.
        * 
* * bool organization_level = 1; @@ -7641,13 +7692,16 @@ public boolean getOrganizationLevel() { * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7662,13 +7716,16 @@ public com.google.protobuf.ProtocolStringList getProjectsList() { * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7683,13 +7740,16 @@ public int getProjectsCount() { * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7705,13 +7765,16 @@ public java.lang.String getProjects(int index) { * * *
-       * The projects that are in the scope of the export job. Can either be
-       * project numbers or project IDs. If specified, only the entries from the
-       * specified projects will be exported. The projects must be in the same
-       * organization and in the VPC-SC perimeter. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false.
-       * Must follow the format: "projects/<project_id_or_number>"
+       * The projects whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}`. Only the entries from
+       * the specified projects are exported.
+       *
+       * The projects must be in the same organization and VPC Service Controls
+       * perimeter as the job.
+       *
+       * If you set the job scope to be a list of projects, then set the
+       * organization-level export flag to false and don't provide a list of
+       * entry groups.
        * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -7733,13 +7796,16 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) { * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7754,13 +7820,16 @@ public com.google.protobuf.ProtocolStringList getEntryGroupsList() { * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7775,13 +7844,16 @@ public int getEntryGroupsCount() { * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7797,13 +7869,16 @@ public java.lang.String getEntryGroups(int index) { * * *
-       * The entry groups that are in scope for the export job. Optional. If
-       * specified, only entries in the specified entry groups will be exported
-       * by the job. Must be in the VPC-SC perimeter of the job. The location of
-       * the entry groups must be the same as the job. Either projects or
-       * entry_groups can be specified when organization_level_export is set to
-       * false. Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+       * The entry groups whose metadata you want to export, in the format
+       * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+       * Only the entries in the specified entry groups are exported.
+       *
+       * The entry groups must be in the same location and the same VPC Service
+       * Controls perimeter as the job.
+       *
+       * If you set the job scope to be a list of entry groups, then set the
+       * organization-level export flag to false and don't provide a list of
+       * projects.
        * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -7825,10 +7900,11 @@ public com.google.protobuf.ByteString getEntryGroupsBytes(int index) { * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7843,10 +7919,11 @@ public com.google.protobuf.ProtocolStringList getEntryTypesList() { * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7861,10 +7938,11 @@ public int getEntryTypesCount() { * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7880,10 +7958,11 @@ public java.lang.String getEntryTypes(int index) { * * *
-       * If specified, only entries of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+       * The entry types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+       * Only entries that belong to the specified entry types are affected by
+       * the job.
        * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -7905,11 +7984,11 @@ public com.google.protobuf.ByteString getEntryTypesBytes(int index) { * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7924,11 +8003,11 @@ public com.google.protobuf.ProtocolStringList getAspectTypesList() { * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7943,11 +8022,11 @@ public int getAspectTypesCount() { * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -7963,11 +8042,11 @@ public java.lang.String getAspectTypes(int index) { * * *
-       * The aspect types that are in scope for the export job.
-       * Optional. If specified, only aspects of the specified types will be
-       * affected by the job.
-       * Must follow the format:
-       * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+       * The aspect types that are in scope for the export job, specified as
+       * relative resource names in the format
+       * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+       * Only aspects that belong to the specified aspect types are affected by
+       * the job.
        * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -8212,7 +8291,7 @@ protected Builder newBuilderForType( * * *
-       * Scope of the export job.
+       * The scope of the export job.
        * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope} @@ -8497,14 +8576,17 @@ public Builder mergeFrom( * * *
-         * Indicating if it is an organization level export job.
-         * - When set to true, exports all entries from entry groups and projects
-         * sharing the same organization id of the Metadata Job. Only projects and
-         * entry groups in the VPC-SC perimeter will be exported. The projects and
-         * entry groups are ignored.
-         * - When set to false, one of the projects or entry groups must be
-         * specified.
-         * - Default to false.
+         * Whether the metadata export job is an organization-level export job.
+         *
+         * - If `true`, the job exports the entries from the same organization and
+         * VPC Service Controls perimeter as the job. The project that the job
+         * belongs to determines the VPC Service Controls perimeter. If you set
+         * the job scope to be at the organization level, then don't provide a
+         * list of projects or entry groups.
+         * - If `false`, you must specify a list of projects or a list of entry
+         * groups whose entries you want to export.
+         *
+         * The default is `false`.
          * 
* * bool organization_level = 1; @@ -8520,14 +8602,17 @@ public boolean getOrganizationLevel() { * * *
-         * Indicating if it is an organization level export job.
-         * - When set to true, exports all entries from entry groups and projects
-         * sharing the same organization id of the Metadata Job. Only projects and
-         * entry groups in the VPC-SC perimeter will be exported. The projects and
-         * entry groups are ignored.
-         * - When set to false, one of the projects or entry groups must be
-         * specified.
-         * - Default to false.
+         * Whether the metadata export job is an organization-level export job.
+         *
+         * - If `true`, the job exports the entries from the same organization and
+         * VPC Service Controls perimeter as the job. The project that the job
+         * belongs to determines the VPC Service Controls perimeter. If you set
+         * the job scope to be at the organization level, then don't provide a
+         * list of projects or entry groups.
+         * - If `false`, you must specify a list of projects or a list of entry
+         * groups whose entries you want to export.
+         *
+         * The default is `false`.
          * 
* * bool organization_level = 1; @@ -8547,14 +8632,17 @@ public Builder setOrganizationLevel(boolean value) { * * *
-         * Indicating if it is an organization level export job.
-         * - When set to true, exports all entries from entry groups and projects
-         * sharing the same organization id of the Metadata Job. Only projects and
-         * entry groups in the VPC-SC perimeter will be exported. The projects and
-         * entry groups are ignored.
-         * - When set to false, one of the projects or entry groups must be
-         * specified.
-         * - Default to false.
+         * Whether the metadata export job is an organization-level export job.
+         *
+         * - If `true`, the job exports the entries from the same organization and
+         * VPC Service Controls perimeter as the job. The project that the job
+         * belongs to determines the VPC Service Controls perimeter. If you set
+         * the job scope to be at the organization level, then don't provide a
+         * list of projects or entry groups.
+         * - If `false`, you must specify a list of projects or a list of entry
+         * groups whose entries you want to export.
+         *
+         * The default is `false`.
          * 
* * bool organization_level = 1; @@ -8582,13 +8670,16 @@ private void ensureProjectsIsMutable() { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8604,13 +8695,16 @@ public com.google.protobuf.ProtocolStringList getProjectsList() { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8625,13 +8719,16 @@ public int getProjectsCount() { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8647,13 +8744,16 @@ public java.lang.String getProjects(int index) { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8669,13 +8769,16 @@ public com.google.protobuf.ByteString getProjectsBytes(int index) { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8699,13 +8802,16 @@ public Builder setProjects(int index, java.lang.String value) { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8728,13 +8834,16 @@ public Builder addProjects(java.lang.String value) { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8754,13 +8863,16 @@ public Builder addAllProjects(java.lang.Iterable values) { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8779,13 +8891,16 @@ public Builder clearProjects() { * * *
-         * The projects that are in the scope of the export job. Can either be
-         * project numbers or project IDs. If specified, only the entries from the
-         * specified projects will be exported. The projects must be in the same
-         * organization and in the VPC-SC perimeter. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false.
-         * Must follow the format: "projects/<project_id_or_number>"
+         * The projects whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}`. Only the entries from
+         * the specified projects are exported.
+         *
+         * The projects must be in the same organization and VPC Service Controls
+         * perimeter as the job.
+         *
+         * If you set the job scope to be a list of projects, then set the
+         * organization-level export flag to false and don't provide a list of
+         * entry groups.
          * 
* * repeated string projects = 2 [(.google.api.resource_reference) = { ... } @@ -8819,13 +8934,16 @@ private void ensureEntryGroupsIsMutable() { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8841,13 +8959,16 @@ public com.google.protobuf.ProtocolStringList getEntryGroupsList() { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8862,13 +8983,16 @@ public int getEntryGroupsCount() { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8884,13 +9008,16 @@ public java.lang.String getEntryGroups(int index) { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8906,13 +9033,16 @@ public com.google.protobuf.ByteString getEntryGroupsBytes(int index) { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8936,13 +9066,16 @@ public Builder setEntryGroups(int index, java.lang.String value) { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8965,13 +9098,16 @@ public Builder addEntryGroups(java.lang.String value) { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -8991,13 +9127,16 @@ public Builder addAllEntryGroups(java.lang.Iterable values) { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -9016,13 +9155,16 @@ public Builder clearEntryGroups() { * * *
-         * The entry groups that are in scope for the export job. Optional. If
-         * specified, only entries in the specified entry groups will be exported
-         * by the job. Must be in the VPC-SC perimeter of the job. The location of
-         * the entry groups must be the same as the job. Either projects or
-         * entry_groups can be specified when organization_level_export is set to
-         * false. Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryGroups/<entry_group_id>"
+         * The entry groups whose metadata you want to export, in the format
+         * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
+         * Only the entries in the specified entry groups are exported.
+         *
+         * The entry groups must be in the same location and the same VPC Service
+         * Controls perimeter as the job.
+         *
+         * If you set the job scope to be a list of entry groups, then set the
+         * organization-level export flag to false and don't provide a list of
+         * projects.
          * 
* * repeated string entry_groups = 3 [(.google.api.resource_reference) = { ... } @@ -9056,10 +9198,11 @@ private void ensureEntryTypesIsMutable() { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9075,10 +9218,11 @@ public com.google.protobuf.ProtocolStringList getEntryTypesList() { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9093,10 +9237,11 @@ public int getEntryTypesCount() { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9112,10 +9257,11 @@ public java.lang.String getEntryTypes(int index) { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9131,10 +9277,11 @@ public com.google.protobuf.ByteString getEntryTypesBytes(int index) { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9158,10 +9305,11 @@ public Builder setEntryTypes(int index, java.lang.String value) { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9184,10 +9332,11 @@ public Builder addEntryTypes(java.lang.String value) { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9207,10 +9356,11 @@ public Builder addAllEntryTypes(java.lang.Iterable values) { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9229,10 +9379,11 @@ public Builder clearEntryTypes() { * * *
-         * If specified, only entries of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/entryTypes/<entry_type_id>"
+         * The entry types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`.
+         * Only entries that belong to the specified entry types are affected by
+         * the job.
          * 
* * repeated string entry_types = 4 [(.google.api.resource_reference) = { ... } @@ -9266,11 +9417,11 @@ private void ensureAspectTypesIsMutable() { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9286,11 +9437,11 @@ public com.google.protobuf.ProtocolStringList getAspectTypesList() { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9305,11 +9456,11 @@ public int getAspectTypesCount() { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9325,11 +9476,11 @@ public java.lang.String getAspectTypes(int index) { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9345,11 +9496,11 @@ public com.google.protobuf.ByteString getAspectTypesBytes(int index) { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9373,11 +9524,11 @@ public Builder setAspectTypes(int index, java.lang.String value) { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9400,11 +9551,11 @@ public Builder addAspectTypes(java.lang.String value) { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9424,11 +9575,11 @@ public Builder addAllAspectTypes(java.lang.Iterable values) { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9447,11 +9598,11 @@ public Builder clearAspectTypes() { * * *
-         * The aspect types that are in scope for the export job.
-         * Optional. If specified, only aspects of the specified types will be
-         * affected by the job.
-         * Must follow the format:
-         * "projects/<project_id_or_number>/locations/<location>/aspectTypes/<aspect_type_id>"
+         * The aspect types that are in scope for the export job, specified as
+         * relative resource names in the format
+         * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`.
+         * Only aspects that belong to the specified aspect types are affected by
+         * the job.
          * 
* * repeated string aspect_types = 5 [(.google.api.resource_reference) = { ... } @@ -9547,7 +9698,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -9565,7 +9716,7 @@ public boolean hasScope() { * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -9586,7 +9737,7 @@ public com.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope get * * *
-     * Required. Selects the entries to be exported by this job.
+     * Required. The scope of the export job.
      * 
* * @@ -9611,12 +9762,15 @@ public com.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope get * * *
-     * Required. The root path of the exported metadata.
-     * Must be in the format: "gs://<bucket_id>"
-     * Or specify a customized prefix after the bucket:
-     * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-     * The length limit of the customized prefix is 128 characters.
-     * The bucket must be in the same VPC-SC perimeter with the job.
+     * Required. The root path of the Cloud Storage bucket to export the
+     * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+     * custom prefix after the bucket name, in the format
+     * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+     * characters. Dataplex constructs the object path for the exported files by
+     * using the bucket name and prefix that you provide, followed by a
+     * system-generated path.
+     *
+     * The bucket must be in the same VPC Service Controls perimeter as the job.
      * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -9640,12 +9794,15 @@ public java.lang.String getOutputPath() { * * *
-     * Required. The root path of the exported metadata.
-     * Must be in the format: "gs://<bucket_id>"
-     * Or specify a customized prefix after the bucket:
-     * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-     * The length limit of the customized prefix is 128 characters.
-     * The bucket must be in the same VPC-SC perimeter with the job.
+     * Required. The root path of the Cloud Storage bucket to export the
+     * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+     * custom prefix after the bucket name, in the format
+     * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+     * characters. Dataplex constructs the object path for the exported files by
+     * using the bucket name and prefix that you provide, followed by a
+     * system-generated path.
+     *
+     * The bucket must be in the same VPC Service Controls perimeter as the job.
      * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -9845,7 +10002,7 @@ protected Builder newBuilderForType( * * *
-     * Export job specification.
+     * Job specification for a metadata export job.
      * 
* * Protobuf type {@code google.cloud.dataplex.v1.MetadataJob.ExportJobSpec} @@ -10067,7 +10224,7 @@ public Builder mergeFrom( * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10084,7 +10241,7 @@ public boolean hasScope() { * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10108,7 +10265,7 @@ public com.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope get * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10134,7 +10291,7 @@ public Builder setScope( * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10158,7 +10315,7 @@ public Builder setScope( * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10191,7 +10348,7 @@ public Builder mergeScope( * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10213,7 +10370,7 @@ public Builder clearScope() { * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10231,7 +10388,7 @@ public Builder clearScope() { * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10254,7 +10411,7 @@ public Builder clearScope() { * * *
-       * Required. Selects the entries to be exported by this job.
+       * Required. The scope of the export job.
        * 
* * @@ -10284,12 +10441,15 @@ public Builder clearScope() { * * *
-       * Required. The root path of the exported metadata.
-       * Must be in the format: "gs://<bucket_id>"
-       * Or specify a customized prefix after the bucket:
-       * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-       * The length limit of the customized prefix is 128 characters.
-       * The bucket must be in the same VPC-SC perimeter with the job.
+       * Required. The root path of the Cloud Storage bucket to export the
+       * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+       * custom prefix after the bucket name, in the format
+       * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+       * characters. Dataplex constructs the object path for the exported files by
+       * using the bucket name and prefix that you provide, followed by a
+       * system-generated path.
+       *
+       * The bucket must be in the same VPC Service Controls perimeter as the job.
        * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -10312,12 +10472,15 @@ public java.lang.String getOutputPath() { * * *
-       * Required. The root path of the exported metadata.
-       * Must be in the format: "gs://<bucket_id>"
-       * Or specify a customized prefix after the bucket:
-       * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-       * The length limit of the customized prefix is 128 characters.
-       * The bucket must be in the same VPC-SC perimeter with the job.
+       * Required. The root path of the Cloud Storage bucket to export the
+       * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+       * custom prefix after the bucket name, in the format
+       * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+       * characters. Dataplex constructs the object path for the exported files by
+       * using the bucket name and prefix that you provide, followed by a
+       * system-generated path.
+       *
+       * The bucket must be in the same VPC Service Controls perimeter as the job.
        * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -10340,12 +10503,15 @@ public com.google.protobuf.ByteString getOutputPathBytes() { * * *
-       * Required. The root path of the exported metadata.
-       * Must be in the format: "gs://<bucket_id>"
-       * Or specify a customized prefix after the bucket:
-       * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-       * The length limit of the customized prefix is 128 characters.
-       * The bucket must be in the same VPC-SC perimeter with the job.
+       * Required. The root path of the Cloud Storage bucket to export the
+       * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+       * custom prefix after the bucket name, in the format
+       * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+       * characters. Dataplex constructs the object path for the exported files by
+       * using the bucket name and prefix that you provide, followed by a
+       * system-generated path.
+       *
+       * The bucket must be in the same VPC Service Controls perimeter as the job.
        * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -10367,12 +10533,15 @@ public Builder setOutputPath(java.lang.String value) { * * *
-       * Required. The root path of the exported metadata.
-       * Must be in the format: "gs://<bucket_id>"
-       * Or specify a customized prefix after the bucket:
-       * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-       * The length limit of the customized prefix is 128 characters.
-       * The bucket must be in the same VPC-SC perimeter with the job.
+       * Required. The root path of the Cloud Storage bucket to export the
+       * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+       * custom prefix after the bucket name, in the format
+       * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+       * characters. Dataplex constructs the object path for the exported files by
+       * using the bucket name and prefix that you provide, followed by a
+       * system-generated path.
+       *
+       * The bucket must be in the same VPC Service Controls perimeter as the job.
        * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -10390,12 +10559,15 @@ public Builder clearOutputPath() { * * *
-       * Required. The root path of the exported metadata.
-       * Must be in the format: "gs://<bucket_id>"
-       * Or specify a customized prefix after the bucket:
-       * "gs://<bucket_id>/<folder1>/<folder2>/.../".
-       * The length limit of the customized prefix is 128 characters.
-       * The bucket must be in the same VPC-SC perimeter with the job.
+       * Required. The root path of the Cloud Storage bucket to export the
+       * metadata to, in the format `gs://{bucket}/`. You can optionally specify a
+       * custom prefix after the bucket name, in the format
+       * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128
+       * characters. Dataplex constructs the object path for the exported files by
+       * using the bucket name and prefix that you provide, followed by a
+       * system-generated path.
+       *
+       * The bucket must be in the same VPC Service Controls perimeter as the job.
        * 
* * string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto index 268fe172bb92..db707720afdc 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto @@ -1595,13 +1595,14 @@ message MetadataJob { [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Export Job Results. The result is based on the snapshot at the time when - // the job is created. + // Summary results from a metadata export job. The results are a snapshot of + // the metadata at the time when the job was created. The exported entries are + // saved to a Cloud Storage bucket. message ExportJobResult { - // Output only. The number of entries that have been exported. + // Output only. The number of entries that were exported. int64 exported_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The error message if the export job failed. + // Output only. The error message if the metadata export job failed. string error_message = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1616,8 +1617,8 @@ message MetadataJob { // both optional aspects and required aspects. For system entries, you can // modify optional aspects. message ImportJobSpec { - // Specifies how the entries and aspects in a metadata job are updated. For - // more information, see [Sync + // Specifies how the entries and aspects in a metadata import job are + // updated. For more information, see [Sync // mode](https://cloud.google.com/dataplex/docs/import-metadata#sync-mode). enum SyncMode { // Sync mode unspecified. @@ -1731,8 +1732,9 @@ message MetadataJob { // this job. // // A metadata import file defines the values to set for each of the entries - // and aspects in a metadata job. For more information about how to create a - // metadata import file and the file requirements, see [Metadata import + // and aspects in a metadata import job. For more information about how to + // create a metadata import file and the file requirements, see [Metadata + // import // file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). // // You can provide multiple metadata import files in the same metadata job. @@ -1772,69 +1774,82 @@ message MetadataJob { LogLevel log_level = 6 [(google.api.field_behavior) = OPTIONAL]; } - // Export job specification. + // Job specification for a metadata export job. message ExportJobSpec { - // Scope of the export job. + // The scope of the export job. message ExportJobScope { - // Indicating if it is an organization level export job. - // - When set to true, exports all entries from entry groups and projects - // sharing the same organization id of the Metadata Job. Only projects and - // entry groups in the VPC-SC perimeter will be exported. The projects and - // entry groups are ignored. - // - When set to false, one of the projects or entry groups must be - // specified. - // - Default to false. + // Whether the metadata export job is an organization-level export job. + // + // - If `true`, the job exports the entries from the same organization and + // VPC Service Controls perimeter as the job. The project that the job + // belongs to determines the VPC Service Controls perimeter. If you set + // the job scope to be at the organization level, then don't provide a + // list of projects or entry groups. + // - If `false`, you must specify a list of projects or a list of entry + // groups whose entries you want to export. + // + // The default is `false`. bool organization_level = 1; - // The projects that are in the scope of the export job. Can either be - // project numbers or project IDs. If specified, only the entries from the - // specified projects will be exported. The projects must be in the same - // organization and in the VPC-SC perimeter. Either projects or - // entry_groups can be specified when organization_level_export is set to - // false. - // Must follow the format: "projects/" + // The projects whose metadata you want to export, in the format + // `projects/{project_id_or_number}`. Only the entries from + // the specified projects are exported. + // + // The projects must be in the same organization and VPC Service Controls + // perimeter as the job. + // + // If you set the job scope to be a list of projects, then set the + // organization-level export flag to false and don't provide a list of + // entry groups. repeated string projects = 2 [(google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" }]; - // The entry groups that are in scope for the export job. Optional. If - // specified, only entries in the specified entry groups will be exported - // by the job. Must be in the VPC-SC perimeter of the job. The location of - // the entry groups must be the same as the job. Either projects or - // entry_groups can be specified when organization_level_export is set to - // false. Must follow the format: - // "projects//locations//entryGroups/" + // The entry groups whose metadata you want to export, in the format + // `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + // Only the entries in the specified entry groups are exported. + // + // The entry groups must be in the same location and the same VPC Service + // Controls perimeter as the job. + // + // If you set the job scope to be a list of entry groups, then set the + // organization-level export flag to false and don't provide a list of + // projects. repeated string entry_groups = 3 [(google.api.resource_reference) = { type: "dataplex.googleapis.com/EntryGroup" }]; - // If specified, only entries of the specified types will be - // affected by the job. - // Must follow the format: - // "projects//locations//entryTypes/" + // The entry types that are in scope for the export job, specified as + // relative resource names in the format + // `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + // Only entries that belong to the specified entry types are affected by + // the job. repeated string entry_types = 4 [(google.api.resource_reference) = { type: "dataplex.googleapis.com/EntryType" }]; - // The aspect types that are in scope for the export job. - // Optional. If specified, only aspects of the specified types will be - // affected by the job. - // Must follow the format: - // "projects//locations//aspectTypes/" + // The aspect types that are in scope for the export job, specified as + // relative resource names in the format + // `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + // Only aspects that belong to the specified aspect types are affected by + // the job. repeated string aspect_types = 5 [(google.api.resource_reference) = { type: "dataplex.googleapis.com/AspectType" }]; } - // Required. Selects the entries to be exported by this job. + // Required. The scope of the export job. ExportJobScope scope = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The root path of the exported metadata. - // Must be in the format: "gs://" - // Or specify a customized prefix after the bucket: - // "gs://///.../". - // The length limit of the customized prefix is 128 characters. - // The bucket must be in the same VPC-SC perimeter with the job. + // Required. The root path of the Cloud Storage bucket to export the + // metadata to, in the format `gs://{bucket}/`. You can optionally specify a + // custom prefix after the bucket name, in the format + // `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 + // characters. Dataplex constructs the object path for the exported files by + // using the bucket name and prefix that you provide, followed by a + // system-generated path. + // + // The bucket must be in the same VPC Service Controls perimeter as the job. string output_path = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1846,7 +1861,7 @@ message MetadataJob { // Import job. IMPORT = 1; - // Export job type. + // Export job. EXPORT = 2; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto index 914cdb136f40..997f583648ee 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/cmek.proto @@ -33,7 +33,6 @@ option java_outer_classname = "CmekProto"; option java_package = "com.google.cloud.dataplex.v1"; option php_namespace = "Google\\Cloud\\Dataplex\\V1"; option ruby_package = "Google::Cloud::Dataplex::V1"; - option (google.api.resource_definition) = { type: "dataplex.googleapis.com/OrganizationLocation" pattern: "organizations/{organization}/locations/{location}" @@ -141,7 +140,7 @@ message EncryptionConfig { // The error code is not specified UNKNOWN = 0; - // Error because of internal server error, will be retried automatically.. + // Error because of internal server error, will be retried automatically. INTERNAL_ERROR = 1; // User action is required to resolve the error. @@ -202,12 +201,9 @@ message CreateEncryptionConfigRequest { } ]; - // Required. The ID of the EncryptionConfig to create. - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // and hyphens (-). - // The maximum size is 63 characters. - // The first character must be a letter. - // The last character must be a letter or a number. + // Required. The ID of the + // [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + // Currently, only a value of "default" is supported. string encryption_config_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The EncryptionConfig to create. diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_discovery.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_discovery.proto index 1120425829b6..f9b9f493f8f2 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_discovery.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_discovery.proto @@ -177,7 +177,7 @@ message DataDiscoveryResult { string location = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Statistics of the DataDiscoveryScan. + // Describes result statistics of a data scan discovery job. message ScanStatistics { // The number of files scanned. int32 scanned_file_count = 1; @@ -211,7 +211,7 @@ message DataDiscoveryResult { BigQueryPublishing bigquery_publishing = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Statistics of the DataDiscoveryScan. + // Output only. Describes result statistics of a data scan discovery job. ScanStatistics scan_statistics = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 0a4cdd453593..bded35c1189a 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.59.0 + 26.60.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.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.62.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.63.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 5893de63dbb5..a193538a5198 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.59.0 + 26.60.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.58.0 + 4.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.58.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.59.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 c9eaf5e18a6c..cf8f736ceb5e 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.59.0 + 26.60.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.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.60.0' +implementation 'com.google.cloud:google-cloud-datastream:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.61.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 09aded95c712..747512886e30 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.59.0 + 26.60.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.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.59.0' +implementation 'com.google.cloud:google-cloud-deploy:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.60.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.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.60.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/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java index 432ca00c62e7..db3feaf783d8 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeployment.java @@ -138,7 +138,8 @@ public int getPercentages(int index) { * * *
-   * Optional. Whether to run verify tests after each percentage deployment.
+   * Optional. Whether to run verify tests after each percentage deployment via
+   * `skaffold verify`.
    * 
* * bool verify = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -921,7 +922,8 @@ public Builder clearPercentages() { * * *
-     * Optional. Whether to run verify tests after each percentage deployment.
+     * Optional. Whether to run verify tests after each percentage deployment via
+     * `skaffold verify`.
      * 
* * bool verify = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -937,7 +939,8 @@ public boolean getVerify() { * * *
-     * Optional. Whether to run verify tests after each percentage deployment.
+     * Optional. Whether to run verify tests after each percentage deployment via
+     * `skaffold verify`.
      * 
* * bool verify = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -957,7 +960,8 @@ public Builder setVerify(boolean value) { * * *
-     * Optional. Whether to run verify tests after each percentage deployment.
+     * Optional. Whether to run verify tests after each percentage deployment via
+     * `skaffold verify`.
      * 
* * bool verify = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java index 8b76283375b0..2f9000835f68 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CanaryDeploymentOrBuilder.java @@ -80,7 +80,8 @@ public interface CanaryDeploymentOrBuilder * * *
-   * Optional. Whether to run verify tests after each percentage deployment.
+   * Optional. Whether to run verify tests after each percentage deployment via
+   * `skaffold verify`.
    * 
* * bool verify = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index e1268a125c4e..7936180c36d7 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -2374,7 +2374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ns/*/deliveryPipelines/*/automationRuns/" + "*}:cancel:\001*\032N\312A\032clouddeploy.googleapis." + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformB\353\007\n\032com.google.cloud.deploy" + + "oud-platformB\376\007\n\032com.google.cloud.deploy" + ".v1B\020CloudDeployProtoP\001Z2cloud.google.co" + "m/go/deploy/apiv1/deploypb;deploypb\352AY\n\037" + "cloudbuild.googleapis.com/Build\0226project" @@ -2397,9 +2397,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ject}/locations/{location}/services/{ser" + "vice}\352AL\n\026run.googleapis.com/Job\0222projec" + "ts/{project}/locations/{location}/jobs/{" - + "job}\352A[\n\033run.googleapis.com/Revision\022 - * Optional. Whether to run verify tests after the deployment. + * Optional. Whether to run verify tests after the deployment via `skaffold + * verify`. *
* * bool verify = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -496,7 +497,8 @@ public com.google.protobuf.ByteString getProfilesBytes(int index) { * * *
-     * Optional. Whether to run verify tests after the deployment.
+     * Optional. Whether to run verify tests after the deployment via `skaffold
+     * verify`.
      * 
* * bool verify = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1538,7 +1540,8 @@ public Builder addProfilesBytes(com.google.protobuf.ByteString value) { * * *
-       * Optional. Whether to run verify tests after the deployment.
+       * Optional. Whether to run verify tests after the deployment via `skaffold
+       * verify`.
        * 
* * bool verify = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1554,7 +1557,8 @@ public boolean getVerify() { * * *
-       * Optional. Whether to run verify tests after the deployment.
+       * Optional. Whether to run verify tests after the deployment via `skaffold
+       * verify`.
        * 
* * bool verify = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1574,7 +1578,8 @@ public Builder setVerify(boolean value) { * * *
-       * Optional. Whether to run verify tests after the deployment.
+       * Optional. Whether to run verify tests after the deployment via `skaffold
+       * verify`.
        * 
* * bool verify = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicy.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicy.java index f0ad34d72fbc..1ad23f283ad0 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicy.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicy.java @@ -1057,7 +1057,7 @@ public com.google.cloud.deploy.v1.PolicyRuleOrBuilder getRulesOrBuilder(int inde * * *
-   * The weak etag of the `Automation` resource.
+   * The weak etag of the `DeployPolicy` resource.
    * This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
    * client has an up-to-date value before proceeding.
@@ -1084,7 +1084,7 @@ public java.lang.String getEtag() {
    *
    *
    * 
-   * The weak etag of the `Automation` resource.
+   * The weak etag of the `DeployPolicy` resource.
    * This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
    * client has an up-to-date value before proceeding.
@@ -4099,7 +4099,7 @@ public java.util.List getRulesBui
      *
      *
      * 
-     * The weak etag of the `Automation` resource.
+     * The weak etag of the `DeployPolicy` resource.
      * This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
      * client has an up-to-date value before proceeding.
@@ -4125,7 +4125,7 @@ public java.lang.String getEtag() {
      *
      *
      * 
-     * The weak etag of the `Automation` resource.
+     * The weak etag of the `DeployPolicy` resource.
      * This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
      * client has an up-to-date value before proceeding.
@@ -4151,7 +4151,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
      *
      *
      * 
-     * The weak etag of the `Automation` resource.
+     * The weak etag of the `DeployPolicy` resource.
      * This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
      * client has an up-to-date value before proceeding.
@@ -4176,7 +4176,7 @@ public Builder setEtag(java.lang.String value) {
      *
      *
      * 
-     * The weak etag of the `Automation` resource.
+     * The weak etag of the `DeployPolicy` resource.
      * This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
      * client has an up-to-date value before proceeding.
@@ -4197,7 +4197,7 @@ public Builder clearEtag() {
      *
      *
      * 
-     * The weak etag of the `Automation` resource.
+     * The weak etag of the `DeployPolicy` resource.
      * This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
      * client has an up-to-date value before proceeding.
diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyOrBuilder.java
index c0b21f9245c9..35d53264e46e 100644
--- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyOrBuilder.java
+++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployPolicyOrBuilder.java
@@ -611,7 +611,7 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * The weak etag of the `Automation` resource.
+   * The weak etag of the `DeployPolicy` resource.
    * This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
    * client has an up-to-date value before proceeding.
@@ -627,7 +627,7 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * The weak etag of the `Automation` resource.
+   * The weak etag of the `DeployPolicy` resource.
    * This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
    * client has an up-to-date value before proceeding.
diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java
index 2f89f6e1e3fc..4fbdae37e3bb 100644
--- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java
+++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java
@@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Optional. Whether to verify a deployment.
+   * Optional. Whether to verify a deployment via `skaffold verify`.
    * 
* * bool verify = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -90,7 +90,7 @@ public boolean getVerify() { * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -109,7 +109,7 @@ public boolean hasPredeploy() { * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -130,7 +130,7 @@ public com.google.cloud.deploy.v1.Predeploy getPredeploy() { * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -152,7 +152,7 @@ public com.google.cloud.deploy.v1.PredeployOrBuilder getPredeployOrBuilder() { * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * @@ -171,7 +171,7 @@ public boolean hasPostdeploy() { * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * @@ -192,7 +192,7 @@ public com.google.cloud.deploy.v1.Postdeploy getPostdeploy() { * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * @@ -625,7 +625,7 @@ public Builder mergeFrom( * * *
-     * Optional. Whether to verify a deployment.
+     * Optional. Whether to verify a deployment via `skaffold verify`.
      * 
* * bool verify = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -641,7 +641,7 @@ public boolean getVerify() { * * *
-     * Optional. Whether to verify a deployment.
+     * Optional. Whether to verify a deployment via `skaffold verify`.
      * 
* * bool verify = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -661,7 +661,7 @@ public Builder setVerify(boolean value) { * * *
-     * Optional. Whether to verify a deployment.
+     * Optional. Whether to verify a deployment via `skaffold verify`.
      * 
* * bool verify = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -687,7 +687,7 @@ public Builder clearVerify() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -705,7 +705,7 @@ public boolean hasPredeploy() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -729,7 +729,7 @@ public com.google.cloud.deploy.v1.Predeploy getPredeploy() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -755,7 +755,7 @@ public Builder setPredeploy(com.google.cloud.deploy.v1.Predeploy value) { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -778,7 +778,7 @@ public Builder setPredeploy(com.google.cloud.deploy.v1.Predeploy.Builder builder * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -809,7 +809,7 @@ public Builder mergePredeploy(com.google.cloud.deploy.v1.Predeploy value) { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -832,7 +832,7 @@ public Builder clearPredeploy() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -850,7 +850,7 @@ public com.google.cloud.deploy.v1.Predeploy.Builder getPredeployBuilder() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -872,7 +872,7 @@ public com.google.cloud.deploy.v1.PredeployOrBuilder getPredeployOrBuilder() { * *
      * Optional. Configuration for the predeploy job. If this is not configured,
-     * predeploy job will not be present.
+     * the predeploy job will not be present.
      * 
* * @@ -908,7 +908,7 @@ public com.google.cloud.deploy.v1.PredeployOrBuilder getPredeployOrBuilder() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -926,7 +926,7 @@ public boolean hasPostdeploy() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -950,7 +950,7 @@ public com.google.cloud.deploy.v1.Postdeploy getPostdeploy() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -976,7 +976,7 @@ public Builder setPostdeploy(com.google.cloud.deploy.v1.Postdeploy value) { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -999,7 +999,7 @@ public Builder setPostdeploy(com.google.cloud.deploy.v1.Postdeploy.Builder build * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -1030,7 +1030,7 @@ public Builder mergePostdeploy(com.google.cloud.deploy.v1.Postdeploy value) { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -1053,7 +1053,7 @@ public Builder clearPostdeploy() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -1071,7 +1071,7 @@ public com.google.cloud.deploy.v1.Postdeploy.Builder getPostdeployBuilder() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * @@ -1093,7 +1093,7 @@ public com.google.cloud.deploy.v1.PostdeployOrBuilder getPostdeployOrBuilder() { * *
      * Optional. Configuration for the postdeploy job. If this is not configured,
-     * postdeploy job will not be present.
+     * the postdeploy job will not be present.
      * 
* * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java index 5012d47aab46..8360ae106643 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java @@ -28,7 +28,7 @@ public interface StandardOrBuilder * * *
-   * Optional. Whether to verify a deployment.
+   * Optional. Whether to verify a deployment via `skaffold verify`.
    * 
* * bool verify = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -42,7 +42,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -58,7 +58,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -74,7 +74,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the predeploy job. If this is not configured,
-   * predeploy job will not be present.
+   * the predeploy job will not be present.
    * 
* * @@ -88,7 +88,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * @@ -104,7 +104,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * @@ -120,7 +120,7 @@ public interface StandardOrBuilder * *
    * Optional. Configuration for the postdeploy job. If this is not configured,
-   * postdeploy job will not be present.
+   * the postdeploy job will not be present.
    * 
* * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index 9a34957c7360..4ae45d160f10 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -67,7 +67,7 @@ option (google.api.resource_definition) = { }; option (google.api.resource_definition) = { type: "run.googleapis.com/Revision" - pattern: "projects/{project}/locations/{location}/revisions/{revision}" + pattern: "projects/{project}/locations/{location}/services/{service}/revisions/{revision}" }; // CloudDeploy service creates and manages Continuous Delivery operations @@ -695,15 +695,15 @@ message Postdeploy { // Standard represents the standard deployment strategy. message Standard { - // Optional. Whether to verify a deployment. + // Optional. Whether to verify a deployment via `skaffold verify`. bool verify = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for the predeploy job. If this is not configured, - // predeploy job will not be present. + // the predeploy job will not be present. Predeploy predeploy = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for the postdeploy job. If this is not configured, - // postdeploy job will not be present. + // the postdeploy job will not be present. Postdeploy postdeploy = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -737,7 +737,8 @@ message CanaryDeployment { // n is 0 <= n <= 100. repeated int32 percentages = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Whether to run verify tests after each percentage deployment. + // Optional. Whether to run verify tests after each percentage deployment via + // `skaffold verify`. bool verify = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for the predeploy job of the first phase. If this @@ -770,7 +771,8 @@ message CustomCanaryDeployment { // `DeliveryPipeline` stage. repeated string profiles = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Whether to run verify tests after the deployment. + // Optional. Whether to run verify tests after the deployment via `skaffold + // verify`. bool verify = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Configuration for the predeploy job of this phase. If this is @@ -2089,7 +2091,7 @@ message DeployPolicy { // Required. Rules to apply. At least one rule must be present. repeated PolicyRule rules = 10 [(google.api.field_behavior) = REQUIRED]; - // The weak etag of the `Automation` resource. + // The weak etag of the `DeployPolicy` resource. // This checksum is computed by the server based on the value of other // fields, and may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 64c7aed4a16a..02d3b4afeca2 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.59.0 + 26.60.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.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.18.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.19.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.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.19.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 6ae08525d583..4d4a1b70d026 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.59.0 + 26.60.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.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.1.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.2.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.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.2.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 d5e4ee342a50..11aef7e61f32 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.59.0 + 26.60.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.72.0 + 0.73.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.72.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.73.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.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.73.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 3899126bfaf1..327aacc7d5b4 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.59.0 + 26.60.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.67.0 + 4.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.67.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.68.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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.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-discoveryengine/README.md b/java-discoveryengine/README.md index ca8661f689c8..0ae8b6544804 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.59.0 + 26.60.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.57.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "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-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/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-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 9e93aaa6cb63..1822388c32ed 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.59.0 + 26.60.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.58.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.59.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 5dc631f94bdc..d4af42f876d9 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.59.0 + 26.60.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.65.0 + 3.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.65.0' +implementation 'com.google.cloud:google-cloud-dlp:3.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.66.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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.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-dms/README.md b/java-dms/README.md index dd1657d40c6c..61247b7535de 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.59.0 + 26.60.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.60.0 + 2.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.60.0' +implementation 'com.google.cloud:google-cloud-dms:2.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.61.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 199253871912..70b168b96762 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.59.0 + 26.60.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.65.0 + 2.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.65.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.66.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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.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-domains/README.md b/java-domains/README.md index 262996a4ab37..b0f637a7ba64 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.59.0 + 26.60.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.58.0 + 1.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.58.0' +implementation 'com.google.cloud:google-cloud-domains:1.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.59.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 de4c955944e2..2730ab6d3748 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.59.0 + 26.60.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.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.29.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.30.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.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.30.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 2073767e191d..c617ae9cff2c 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.59.0 + 26.60.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.57.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.58.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.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/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-errorreporting/README.md b/java-errorreporting/README.md index 7a98d4946582..b05cd4c90af3 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.59.0 + 26.60.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.182.0-beta + 0.183.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.182.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.183.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.182.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.183.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.182.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.183.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 79f264f3e071..50f06e76652f 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.59.0 + 26.60.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.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.61.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.62.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 bbf56286fddf..6f169a00b89c 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.59.0 + 26.60.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.61.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.62.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 33939513aa09..0dd6169bd05d 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.59.0 + 26.60.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.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.61.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.62.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-filestore/README.md b/java-filestore/README.md index 95e87aa1b895..ceb20e8ac284 100644 --- a/java-filestore/README.md +++ b/java-filestore/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.59.0 + 26.60.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.62.0 + 1.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.62.0' +implementation 'com.google.cloud:google-cloud-filestore:1.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.63.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 9cdf67ff9476..bef6e5555462 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.59.0 + 26.60.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.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.2.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/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-functions/README.md b/java-functions/README.md index e7a2571ae52e..5710dab327f0 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.59.0 + 26.60.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.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.63.0' +implementation 'com.google.cloud:google-cloud-functions:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.64.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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.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-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index ebc9a6315e23..43e58615c917 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.59.0 + 26.60.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.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.16.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.17.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.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.17.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 db387aaee9f5..d9cf88002b57 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.59.0 + 26.60.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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.60.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.61.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 3cb9182848f7..bcecab81e857 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.59.0 + 26.60.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.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.62.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.63.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 15bf4dce3e7b..fd5716f17264 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.59.0 + 26.60.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.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.60.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.61.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.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.61.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-gkehub/README.md b/java-gkehub/README.md index 5662c87c15f3..b25ad6f67921 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/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.59.0 + 26.60.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-gkehub - 1.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.61.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.62.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-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.62.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-grafeas/README.md b/java-grafeas/README.md index 90e6002cbd7f..1be0fa9b09e8 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/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.59.0 + 26.60.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.62.0' +implementation 'io.grafeas:grafeas:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.62.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.63.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/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.63.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-gsuite-addons/README.md b/java-gsuite-addons/README.md index 51b60adaae70..450e9d1938cb 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/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.59.0 + 26.60.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-gsuite-addons - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.61.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.62.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-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.62.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-iam-admin/README.md b/java-iam-admin/README.md index a83faf9f32ba..0b0ef07ec6d5 100644 --- a/java-iam-admin/README.md +++ b/java-iam-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.59.0 + 26.60.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.56.0 + 3.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.56.0' +implementation 'com.google.cloud:google-iam-admin:3.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.56.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.57.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-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.57.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-iam/README.md b/java-iam/README.md index c6c316634ba6..747e61c5c223 100644 --- a/java-iam/README.md +++ b/java-iam/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.59.0 + 26.60.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.59.0' +implementation 'com.google.cloud:google-iam-policy:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.60.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-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.60.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-iamcredentials/README.md b/java-iamcredentials/README.md index 346a869054dc..97ec5fe69786 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/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.59.0 + 26.60.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-iamcredentials - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.61.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.62.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-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.62.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-iap/README.md b/java-iap/README.md index c8c36f7351aa..356f76478488 100644 --- a/java-iap/README.md +++ b/java-iap/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.59.0 + 26.60.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-iap - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.17.0' +implementation 'com.google.cloud:google-cloud-iap:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.18.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-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/README.md b/java-ids/README.md index eb79d80d125c..f7e45f2ede04 100644 --- a/java-ids/README.md +++ b/java-ids/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.59.0 + 26.60.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-ids - 1.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.60.0' +implementation 'com.google.cloud:google-cloud-ids:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.61.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-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.61.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-infra-manager/README.md b/java-infra-manager/README.md index c14d54b64b48..025fb1703e7d 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/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.59.0 + 26.60.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-infra-manager - 0.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.38.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "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-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-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-iot/README.md b/java-iot/README.md index 3ab4e09e8340..e27084c80647 100644 --- a/java-iot/README.md +++ b/java-iot/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.59.0 + 26.60.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-iot - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.61.0' +implementation 'com.google.cloud:google-cloud-iot:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.62.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-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.62.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-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index fbf52fcac572..b0fac9a3fb0e 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-issue-resolution - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "0.2.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.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/0.2.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-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index e580bd3962d9..90a6f914dff6 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-order-tracking - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "0.2.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.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/0.2.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-kms/README.md b/java-kms/README.md index 622df8b553e1..c04b9461f40d 100644 --- a/java-kms/README.md +++ b/java-kms/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.59.0 + 26.60.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-kms - 2.64.0 + 2.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.64.0' +implementation 'com.google.cloud:google-cloud-kms:2.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.65.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-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.65.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-kmsinventory/README.md b/java-kmsinventory/README.md index 5ab8d5695711..7645c7e41917 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/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.59.0 + 26.60.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-kmsinventory - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.50.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.51.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-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.51.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-language/README.md b/java-language/README.md index 7d26d84c533b..1231639fcc10 100644 --- a/java-language/README.md +++ b/java-language/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.59.0 + 26.60.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-language - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.62.0' +implementation 'com.google.cloud:google-cloud-language:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.63.0" ``` ## Authentication @@ -226,7 +226,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-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.63.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-life-sciences/README.md b/java-life-sciences/README.md index 3106dc7f07fe..225582676301 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/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.59.0 + 26.60.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-life-sciences - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.63.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "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-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/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-lustre/README.md b/java-lustre/README.md index 1083a6ebbc27..243a570051d8 100644 --- a/java-lustre/README.md +++ b/java-lustre/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.59.0 + 26.60.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-lustre - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.1.0' +implementation 'com.google.cloud:google-cloud-lustre:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.2.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-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.2.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-managed-identities/README.md b/java-managed-identities/README.md index 1322c2622f41..8a08761929fb 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/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.59.0 + 26.60.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-managed-identities - 1.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.59.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.60.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-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.60.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-managedkafka/README.md b/java-managedkafka/README.md index 3eec3872c383..48d697b796aa 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/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.59.0 + 26.60.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-managedkafka - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.17.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "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-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 8ea9bcb922d6..fb6556b3017f 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-addressvalidation - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.55.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.55.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.56.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.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.56.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-maps-area-insights/README.md b/java-maps-area-insights/README.md index 1e3b707ccc8f..398fd7d3f6ce 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-area-insights - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.12.0' +implementation 'com.google.maps:google-maps-area-insights:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.12.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.13.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.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.13.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-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index f9b38e7a03f3..a0bebd8902ae 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine-delivery - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.8.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.9.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.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.9.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-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index eb94f6eccb15..9d9a38edd603 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-fleetengine - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.8.0' +implementation 'com.google.maps:google-maps-fleetengine:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.9.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.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.9.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-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 24fb968c8068..06ff333c8f87 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-mapsplatformdatasets - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.50.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.50.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.51.0" ``` ## Authentication @@ -201,7 +201,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.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.51.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-maps-places/README.md b/java-maps-places/README.md index d00a93ea70c3..512f63ec5efe 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-places - 0.32.0 + 0.33.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.32.0' +implementation 'com.google.maps:google-maps-places:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.32.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "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.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/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-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json index fec2bb939ab0..d4842786577f 100644 --- a/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json +++ b/java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json @@ -431,6 +431,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.AddressDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Area", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Area$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Area$Containment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Landmark", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Landmark$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.AddressDescriptor$Landmark$SpatialRelationship", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.AuthorAttribution", "queryAllDeclaredConstructors": true, @@ -981,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$AreaSummary", + "name": "com.google.maps.places.v1.Place$Attribution", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$AreaSummary$Builder", + "name": "com.google.maps.places.v1.Place$Attribution$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$Attribution", + "name": "com.google.maps.places.v1.Place$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$Attribution$Builder", + "name": "com.google.maps.places.v1.Place$BusinessStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$Builder", + "name": "com.google.maps.places.v1.Place$ContainingPlace", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$BusinessStatus", + "name": "com.google.maps.places.v1.Place$ContainingPlace$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$ContainingPlace", + "name": "com.google.maps.places.v1.Place$EvChargeAmenitySummary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.maps.places.v1.Place$ContainingPlace$Builder", + "name": "com.google.maps.places.v1.Place$EvChargeAmenitySummary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1070,6 +1142,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$NeighborhoodSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$NeighborhoodSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$OpeningHours", "queryAllDeclaredConstructors": true, @@ -1205,6 +1295,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.maps.places.v1.Place$ReviewSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.maps.places.v1.Place$ReviewSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.maps.places.v1.Place$SubDestination", "queryAllDeclaredConstructors": true, diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java index 4234d8e7342b..6d670c02b9dc 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientHttpJsonTest.java @@ -382,10 +382,13 @@ public void getPlaceTest() throws Exception { .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) - .setAreaSummary(Place.AreaSummary.newBuilder().build()) .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) + .setAddressDescriptor(AddressDescriptor.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) + .setReviewSummary(Place.ReviewSummary.newBuilder().build()) + .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) + .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -492,10 +495,13 @@ public void getPlaceTest2() throws Exception { .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) - .setAreaSummary(Place.AreaSummary.newBuilder().build()) .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) + .setAddressDescriptor(AddressDescriptor.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) + .setReviewSummary(Place.ReviewSummary.newBuilder().build()) + .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) + .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java index a6104a608879..310dc9292662 100644 --- a/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java +++ b/java-maps-places/google-maps-places/src/test/java/com/google/maps/places/v1/PlacesClientTest.java @@ -392,10 +392,13 @@ public void getPlaceTest() throws Exception { .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) - .setAreaSummary(Place.AreaSummary.newBuilder().build()) .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) + .setAddressDescriptor(AddressDescriptor.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) + .setReviewSummary(Place.ReviewSummary.newBuilder().build()) + .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) + .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) .build(); mockPlaces.addResponse(expectedResponse); @@ -496,10 +499,13 @@ public void getPlaceTest2() throws Exception { .setFuelOptions(FuelOptions.newBuilder().build()) .setEvChargeOptions(EVChargeOptions.newBuilder().build()) .setGenerativeSummary(Place.GenerativeSummary.newBuilder().build()) - .setAreaSummary(Place.AreaSummary.newBuilder().build()) .addAllContainingPlaces(new ArrayList()) .setPureServiceAreaBusiness(true) + .setAddressDescriptor(AddressDescriptor.newBuilder().build()) .setPriceRange(PriceRange.newBuilder().build()) + .setReviewSummary(Place.ReviewSummary.newBuilder().build()) + .setEvChargeAmenitySummary(Place.EvChargeAmenitySummary.newBuilder().build()) + .setNeighborhoodSummary(Place.NeighborhoodSummary.newBuilder().build()) .build(); mockPlaces.addResponse(expectedResponse); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptor.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptor.java new file mode 100644 index 000000000000..0b17d051d12b --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptor.java @@ -0,0 +1,5487 @@ +/* + * 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/maps/places/v1/address_descriptor.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.places.v1; + +/** + * + * + *
+ * A relational description of a location. Includes a ranked set of nearby
+ * landmarks and precise containing areas and their relationship to the target
+ * location.
+ * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor} + */ +public final class AddressDescriptor extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.AddressDescriptor) + AddressDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AddressDescriptor.newBuilder() to construct. + private AddressDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AddressDescriptor() { + landmarks_ = java.util.Collections.emptyList(); + areas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AddressDescriptor(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.class, + com.google.maps.places.v1.AddressDescriptor.Builder.class); + } + + public interface LandmarkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.AddressDescriptor.Landmark) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The landmark's resource name.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The landmark's resource name.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * The landmark's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + java.lang.String getPlaceId(); + + /** + * + * + *
+     * The landmark's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + com.google.protobuf.ByteString getPlaceIdBytes(); + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + com.google.type.LocalizedText getDisplayName(); + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder(); + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @return A list containing the types. + */ + java.util.List getTypesList(); + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @return The count of types. + */ + int getTypesCount(); + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + java.lang.String getTypes(int index); + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + com.google.protobuf.ByteString getTypesBytes(int index); + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * landmark.
+     * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The enum numeric value on the wire for spatialRelationship. + */ + int getSpatialRelationshipValue(); + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * landmark.
+     * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The spatialRelationship. + */ + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship + getSpatialRelationship(); + + /** + * + * + *
+     * The straight line distance, in meters, between the center point of the
+     * target and the center point of the landmark. In some situations, this
+     * value can be longer than `travel_distance_meters`.
+     * 
+ * + * float straight_line_distance_meters = 6; + * + * @return The straightLineDistanceMeters. + */ + float getStraightLineDistanceMeters(); + + /** + * + * + *
+     * The travel distance, in meters, along the road network from the target to
+     * the landmark, if known. This value does not take into account the mode of
+     * transportation, such as walking, driving, or biking.
+     * 
+ * + * optional float travel_distance_meters = 7; + * + * @return Whether the travelDistanceMeters field is set. + */ + boolean hasTravelDistanceMeters(); + + /** + * + * + *
+     * The travel distance, in meters, along the road network from the target to
+     * the landmark, if known. This value does not take into account the mode of
+     * transportation, such as walking, driving, or biking.
+     * 
+ * + * optional float travel_distance_meters = 7; + * + * @return The travelDistanceMeters. + */ + float getTravelDistanceMeters(); + } + + /** + * + * + *
+   * Basic landmark information and the landmark's relationship with the
+   * target location.
+   *
+   * Landmarks are prominent places that can be used to describe a location.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor.Landmark} + */ + public static final class Landmark extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.AddressDescriptor.Landmark) + LandmarkOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Landmark.newBuilder() to construct. + private Landmark(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Landmark() { + name_ = ""; + placeId_ = ""; + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + spatialRelationship_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Landmark(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Landmark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.Landmark.class, + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder.class); + } + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * landmark.
+     * 
+ * + * Protobuf enum {@code google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship} + */ + public enum SpatialRelationship implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * This is the default relationship when nothing more specific below
+       * applies.
+       * 
+ * + * NEAR = 0; + */ + NEAR(0), + /** + * + * + *
+       * The landmark has a spatial geometry and the target is within its
+       * bounds.
+       * 
+ * + * WITHIN = 1; + */ + WITHIN(1), + /** + * + * + *
+       * The target is directly adjacent to the landmark.
+       * 
+ * + * BESIDE = 2; + */ + BESIDE(2), + /** + * + * + *
+       * The target is directly opposite the landmark on the other side of the
+       * road.
+       * 
+ * + * ACROSS_THE_ROAD = 3; + */ + ACROSS_THE_ROAD(3), + /** + * + * + *
+       * On the same route as the landmark but not besides or across.
+       * 
+ * + * DOWN_THE_ROAD = 4; + */ + DOWN_THE_ROAD(4), + /** + * + * + *
+       * Not on the same route as the landmark but a single turn away.
+       * 
+ * + * AROUND_THE_CORNER = 5; + */ + AROUND_THE_CORNER(5), + /** + * + * + *
+       * Close to the landmark's structure but further away from its street
+       * entrances.
+       * 
+ * + * BEHIND = 6; + */ + BEHIND(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * This is the default relationship when nothing more specific below
+       * applies.
+       * 
+ * + * NEAR = 0; + */ + public static final int NEAR_VALUE = 0; + + /** + * + * + *
+       * The landmark has a spatial geometry and the target is within its
+       * bounds.
+       * 
+ * + * WITHIN = 1; + */ + public static final int WITHIN_VALUE = 1; + + /** + * + * + *
+       * The target is directly adjacent to the landmark.
+       * 
+ * + * BESIDE = 2; + */ + public static final int BESIDE_VALUE = 2; + + /** + * + * + *
+       * The target is directly opposite the landmark on the other side of the
+       * road.
+       * 
+ * + * ACROSS_THE_ROAD = 3; + */ + public static final int ACROSS_THE_ROAD_VALUE = 3; + + /** + * + * + *
+       * On the same route as the landmark but not besides or across.
+       * 
+ * + * DOWN_THE_ROAD = 4; + */ + public static final int DOWN_THE_ROAD_VALUE = 4; + + /** + * + * + *
+       * Not on the same route as the landmark but a single turn away.
+       * 
+ * + * AROUND_THE_CORNER = 5; + */ + public static final int AROUND_THE_CORNER_VALUE = 5; + + /** + * + * + *
+       * Close to the landmark's structure but further away from its street
+       * entrances.
+       * 
+ * + * BEHIND = 6; + */ + public static final int BEHIND_VALUE = 6; + + 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 SpatialRelationship 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 SpatialRelationship forNumber(int value) { + switch (value) { + case 0: + return NEAR; + case 1: + return WITHIN; + case 2: + return BESIDE; + case 3: + return ACROSS_THE_ROAD; + case 4: + return DOWN_THE_ROAD; + case 5: + return AROUND_THE_CORNER; + case 6: + return BEHIND; + 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 SpatialRelationship findValueByNumber(int number) { + return SpatialRelationship.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.maps.places.v1.AddressDescriptor.Landmark.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SpatialRelationship[] VALUES = values(); + + public static SpatialRelationship 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 SpatialRelationship(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The landmark's resource name.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * The landmark's resource name.
+     * 
+ * + * 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 PLACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object placeId_ = ""; + + /** + * + * + *
+     * The landmark's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + @java.lang.Override + public java.lang.String getPlaceId() { + java.lang.Object ref = placeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeId_ = s; + return s; + } + } + + /** + * + * + *
+     * The landmark's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaceIdBytes() { + java.lang.Object ref = placeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private com.google.type.LocalizedText displayName_; + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public com.google.type.LocalizedText getDisplayName() { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + + /** + * + * + *
+     * The landmark's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + + public static final int TYPES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList types_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList getTypesList() { + return types_; + } + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + + /** + * + * + *
+     * A set of type tags for this landmark. For a complete list of possible
+     * values, see
+     * https://developers.google.com/maps/documentation/places/web-service/place-types.
+     * 
+ * + * repeated string types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString getTypesBytes(int index) { + return types_.getByteString(index); + } + + public static final int SPATIAL_RELATIONSHIP_FIELD_NUMBER = 5; + private int spatialRelationship_ = 0; + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * landmark.
+     * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The enum numeric value on the wire for spatialRelationship. + */ + @java.lang.Override + public int getSpatialRelationshipValue() { + return spatialRelationship_; + } + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * landmark.
+     * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The spatialRelationship. + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship + getSpatialRelationship() { + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship result = + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.forNumber( + spatialRelationship_); + return result == null + ? com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.UNRECOGNIZED + : result; + } + + public static final int STRAIGHT_LINE_DISTANCE_METERS_FIELD_NUMBER = 6; + private float straightLineDistanceMeters_ = 0F; + + /** + * + * + *
+     * The straight line distance, in meters, between the center point of the
+     * target and the center point of the landmark. In some situations, this
+     * value can be longer than `travel_distance_meters`.
+     * 
+ * + * float straight_line_distance_meters = 6; + * + * @return The straightLineDistanceMeters. + */ + @java.lang.Override + public float getStraightLineDistanceMeters() { + return straightLineDistanceMeters_; + } + + public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER = 7; + private float travelDistanceMeters_ = 0F; + + /** + * + * + *
+     * The travel distance, in meters, along the road network from the target to
+     * the landmark, if known. This value does not take into account the mode of
+     * transportation, such as walking, driving, or biking.
+     * 
+ * + * optional float travel_distance_meters = 7; + * + * @return Whether the travelDistanceMeters field is set. + */ + @java.lang.Override + public boolean hasTravelDistanceMeters() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The travel distance, in meters, along the road network from the target to
+     * the landmark, if known. This value does not take into account the mode of
+     * transportation, such as walking, driving, or biking.
+     * 
+ * + * optional float travel_distance_meters = 7; + * + * @return The travelDistanceMeters. + */ + @java.lang.Override + public float getTravelDistanceMeters() { + return travelDistanceMeters_; + } + + 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(placeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, placeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDisplayName()); + } + for (int i = 0; i < types_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, types_.getRaw(i)); + } + if (spatialRelationship_ + != com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.NEAR + .getNumber()) { + output.writeEnum(5, spatialRelationship_); + } + if (java.lang.Float.floatToRawIntBits(straightLineDistanceMeters_) != 0) { + output.writeFloat(6, straightLineDistanceMeters_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(7, travelDistanceMeters_); + } + 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(placeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, placeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDisplayName()); + } + { + int dataSize = 0; + for (int i = 0; i < types_.size(); i++) { + dataSize += computeStringSizeNoTag(types_.getRaw(i)); + } + size += dataSize; + size += 1 * getTypesList().size(); + } + if (spatialRelationship_ + != com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.NEAR + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, spatialRelationship_); + } + if (java.lang.Float.floatToRawIntBits(straightLineDistanceMeters_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize(6, straightLineDistanceMeters_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, travelDistanceMeters_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.AddressDescriptor.Landmark)) { + return super.equals(obj); + } + com.google.maps.places.v1.AddressDescriptor.Landmark other = + (com.google.maps.places.v1.AddressDescriptor.Landmark) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPlaceId().equals(other.getPlaceId())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (!getTypesList().equals(other.getTypesList())) return false; + if (spatialRelationship_ != other.spatialRelationship_) return false; + if (java.lang.Float.floatToIntBits(getStraightLineDistanceMeters()) + != java.lang.Float.floatToIntBits(other.getStraightLineDistanceMeters())) return false; + if (hasTravelDistanceMeters() != other.hasTravelDistanceMeters()) return false; + if (hasTravelDistanceMeters()) { + if (java.lang.Float.floatToIntBits(getTravelDistanceMeters()) + != java.lang.Float.floatToIntBits(other.getTravelDistanceMeters())) 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) + PLACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPlaceId().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (getTypesCount() > 0) { + hash = (37 * hash) + TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTypesList().hashCode(); + } + hash = (37 * hash) + SPATIAL_RELATIONSHIP_FIELD_NUMBER; + hash = (53 * hash) + spatialRelationship_; + hash = (37 * hash) + STRAIGHT_LINE_DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getStraightLineDistanceMeters()); + if (hasTravelDistanceMeters()) { + hash = (37 * hash) + TRAVEL_DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTravelDistanceMeters()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.maps.places.v1.AddressDescriptor.Landmark 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; + } + + /** + * + * + *
+     * Basic landmark information and the landmark's relationship with the
+     * target location.
+     *
+     * Landmarks are prominent places that can be used to describe a location.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor.Landmark} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.AddressDescriptor.Landmark) + com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Landmark_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.Landmark.class, + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder.class); + } + + // Construct using com.google.maps.places.v1.AddressDescriptor.Landmark.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisplayNameFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + placeId_ = ""; + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + spatialRelationship_ = 0; + straightLineDistanceMeters_ = 0F; + travelDistanceMeters_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark getDefaultInstanceForType() { + return com.google.maps.places.v1.AddressDescriptor.Landmark.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark build() { + com.google.maps.places.v1.AddressDescriptor.Landmark result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark buildPartial() { + com.google.maps.places.v1.AddressDescriptor.Landmark result = + new com.google.maps.places.v1.AddressDescriptor.Landmark(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.AddressDescriptor.Landmark result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.placeId_ = placeId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = + displayNameBuilder_ == null ? displayName_ : displayNameBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + types_.makeImmutable(); + result.types_ = types_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.spatialRelationship_ = spatialRelationship_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.straightLineDistanceMeters_ = straightLineDistanceMeters_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.travelDistanceMeters_ = travelDistanceMeters_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.AddressDescriptor.Landmark) { + return mergeFrom((com.google.maps.places.v1.AddressDescriptor.Landmark) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.AddressDescriptor.Landmark other) { + if (other == com.google.maps.places.v1.AddressDescriptor.Landmark.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPlaceId().isEmpty()) { + placeId_ = other.placeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDisplayName()) { + mergeDisplayName(other.getDisplayName()); + } + if (!other.types_.isEmpty()) { + if (types_.isEmpty()) { + types_ = other.types_; + bitField0_ |= 0x00000008; + } else { + ensureTypesIsMutable(); + types_.addAll(other.types_); + } + onChanged(); + } + if (other.spatialRelationship_ != 0) { + setSpatialRelationshipValue(other.getSpatialRelationshipValue()); + } + if (other.getStraightLineDistanceMeters() != 0F) { + setStraightLineDistanceMeters(other.getStraightLineDistanceMeters()); + } + if (other.hasTravelDistanceMeters()) { + setTravelDistanceMeters(other.getTravelDistanceMeters()); + } + 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: + { + placeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDisplayNameFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTypesIsMutable(); + types_.add(s); + break; + } // case 34 + case 40: + { + spatialRelationship_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 53: + { + straightLineDistanceMeters_ = input.readFloat(); + bitField0_ |= 0x00000020; + break; + } // case 53 + case 61: + { + travelDistanceMeters_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 61 + 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_ = ""; + + /** + * + * + *
+       * The landmark's resource name.
+       * 
+ * + * 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; + } + } + + /** + * + * + *
+       * The landmark's resource name.
+       * 
+ * + * 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; + } + } + + /** + * + * + *
+       * The landmark's resource name.
+       * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's resource name.
+       * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's resource name.
+       * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object placeId_ = ""; + + /** + * + * + *
+       * The landmark's place id.
+       * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + public java.lang.String getPlaceId() { + java.lang.Object ref = placeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The landmark's place id.
+       * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + public com.google.protobuf.ByteString getPlaceIdBytes() { + java.lang.Object ref = placeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The landmark's place id.
+       * 
+ * + * string place_id = 2; + * + * @param value The placeId to set. + * @return This builder for chaining. + */ + public Builder setPlaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's place id.
+       * 
+ * + * string place_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearPlaceId() { + placeId_ = getDefaultInstance().getPlaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's place id.
+       * 
+ * + * string place_id = 2; + * + * @param value The bytes for placeId to set. + * @return This builder for chaining. + */ + public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.type.LocalizedText displayName_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + displayNameBuilder_; + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + public com.google.type.LocalizedText getDisplayName() { + if (displayNameBuilder_ == null) { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } else { + return displayNameBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder setDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + } else { + displayNameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder setDisplayName(com.google.type.LocalizedText.Builder builderForValue) { + if (displayNameBuilder_ == null) { + displayName_ = builderForValue.build(); + } else { + displayNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder mergeDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && displayName_ != null + && displayName_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisplayNameBuilder().mergeFrom(value); + } else { + displayName_ = value; + } + } else { + displayNameBuilder_.mergeFrom(value); + } + if (displayName_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder clearDisplayName() { + bitField0_ = (bitField0_ & ~0x00000004); + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public com.google.type.LocalizedText.Builder getDisplayNameBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDisplayNameFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + if (displayNameBuilder_ != null) { + return displayNameBuilder_.getMessageOrBuilder(); + } else { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + } + + /** + * + * + *
+       * The landmark's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisplayNameFieldBuilder() { + if (displayNameBuilder_ == null) { + displayNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisplayName(), getParentForChildren(), isClean()); + displayName_ = null; + } + return displayNameBuilder_; + } + + private com.google.protobuf.LazyStringArrayList types_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTypesIsMutable() { + if (!types_.isModifiable()) { + types_ = new com.google.protobuf.LazyStringArrayList(types_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList getTypesList() { + types_.makeImmutable(); + return types_; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString getTypesBytes(int index) { + return types_.getByteString(index); + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param index The index to set the value at. + * @param value The types to set. + * @return This builder for chaining. + */ + public Builder setTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param value The types to add. + * @return This builder for chaining. + */ + public Builder addTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param values The types to add. + * @return This builder for chaining. + */ + public Builder addAllTypes(java.lang.Iterable values) { + ensureTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @return This builder for chaining. + */ + public Builder clearTypes() { + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * A set of type tags for this landmark. For a complete list of possible
+       * values, see
+       * https://developers.google.com/maps/documentation/places/web-service/place-types.
+       * 
+ * + * repeated string types = 4; + * + * @param value The bytes of the types to add. + * @return This builder for chaining. + */ + public Builder addTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTypesIsMutable(); + types_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int spatialRelationship_ = 0; + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * landmark.
+       * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The enum numeric value on the wire for spatialRelationship. + */ + @java.lang.Override + public int getSpatialRelationshipValue() { + return spatialRelationship_; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * landmark.
+       * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @param value The enum numeric value on the wire for spatialRelationship to set. + * @return This builder for chaining. + */ + public Builder setSpatialRelationshipValue(int value) { + spatialRelationship_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * landmark.
+       * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return The spatialRelationship. + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship + getSpatialRelationship() { + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship result = + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.forNumber( + spatialRelationship_); + return result == null + ? com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * landmark.
+       * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @param value The spatialRelationship to set. + * @return This builder for chaining. + */ + public Builder setSpatialRelationship( + com.google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + spatialRelationship_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * landmark.
+       * 
+ * + * + * .google.maps.places.v1.AddressDescriptor.Landmark.SpatialRelationship spatial_relationship = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearSpatialRelationship() { + bitField0_ = (bitField0_ & ~0x00000010); + spatialRelationship_ = 0; + onChanged(); + return this; + } + + private float straightLineDistanceMeters_; + + /** + * + * + *
+       * The straight line distance, in meters, between the center point of the
+       * target and the center point of the landmark. In some situations, this
+       * value can be longer than `travel_distance_meters`.
+       * 
+ * + * float straight_line_distance_meters = 6; + * + * @return The straightLineDistanceMeters. + */ + @java.lang.Override + public float getStraightLineDistanceMeters() { + return straightLineDistanceMeters_; + } + + /** + * + * + *
+       * The straight line distance, in meters, between the center point of the
+       * target and the center point of the landmark. In some situations, this
+       * value can be longer than `travel_distance_meters`.
+       * 
+ * + * float straight_line_distance_meters = 6; + * + * @param value The straightLineDistanceMeters to set. + * @return This builder for chaining. + */ + public Builder setStraightLineDistanceMeters(float value) { + + straightLineDistanceMeters_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * The straight line distance, in meters, between the center point of the
+       * target and the center point of the landmark. In some situations, this
+       * value can be longer than `travel_distance_meters`.
+       * 
+ * + * float straight_line_distance_meters = 6; + * + * @return This builder for chaining. + */ + public Builder clearStraightLineDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000020); + straightLineDistanceMeters_ = 0F; + onChanged(); + return this; + } + + private float travelDistanceMeters_; + + /** + * + * + *
+       * The travel distance, in meters, along the road network from the target to
+       * the landmark, if known. This value does not take into account the mode of
+       * transportation, such as walking, driving, or biking.
+       * 
+ * + * optional float travel_distance_meters = 7; + * + * @return Whether the travelDistanceMeters field is set. + */ + @java.lang.Override + public boolean hasTravelDistanceMeters() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * The travel distance, in meters, along the road network from the target to
+       * the landmark, if known. This value does not take into account the mode of
+       * transportation, such as walking, driving, or biking.
+       * 
+ * + * optional float travel_distance_meters = 7; + * + * @return The travelDistanceMeters. + */ + @java.lang.Override + public float getTravelDistanceMeters() { + return travelDistanceMeters_; + } + + /** + * + * + *
+       * The travel distance, in meters, along the road network from the target to
+       * the landmark, if known. This value does not take into account the mode of
+       * transportation, such as walking, driving, or biking.
+       * 
+ * + * optional float travel_distance_meters = 7; + * + * @param value The travelDistanceMeters to set. + * @return This builder for chaining. + */ + public Builder setTravelDistanceMeters(float value) { + + travelDistanceMeters_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * The travel distance, in meters, along the road network from the target to
+       * the landmark, if known. This value does not take into account the mode of
+       * transportation, such as walking, driving, or biking.
+       * 
+ * + * optional float travel_distance_meters = 7; + * + * @return This builder for chaining. + */ + public Builder clearTravelDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000040); + travelDistanceMeters_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.AddressDescriptor.Landmark) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.AddressDescriptor.Landmark) + private static final com.google.maps.places.v1.AddressDescriptor.Landmark DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.AddressDescriptor.Landmark(); + } + + public static com.google.maps.places.v1.AddressDescriptor.Landmark getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Landmark parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AreaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.AddressDescriptor.Area) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The area's resource name.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The area's resource name.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * The area's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + java.lang.String getPlaceId(); + + /** + * + * + *
+     * The area's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + com.google.protobuf.ByteString getPlaceIdBytes(); + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + com.google.type.LocalizedText getDisplayName(); + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder(); + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * area.
+     * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The enum numeric value on the wire for containment. + */ + int getContainmentValue(); + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * area.
+     * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The containment. + */ + com.google.maps.places.v1.AddressDescriptor.Area.Containment getContainment(); + } + + /** + * + * + *
+   * Area information and the area's relationship with the target location.
+   *
+   * Areas includes precise sublocality, neighborhoods, and large compounds that
+   * are useful for describing a location.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor.Area} + */ + public static final class Area extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.AddressDescriptor.Area) + AreaOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Area.newBuilder() to construct. + private Area(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Area() { + name_ = ""; + placeId_ = ""; + containment_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Area(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Area_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.Area.class, + com.google.maps.places.v1.AddressDescriptor.Area.Builder.class); + } + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * area.
+     * 
+ * + * Protobuf enum {@code google.maps.places.v1.AddressDescriptor.Area.Containment} + */ + public enum Containment implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The containment is unspecified.
+       * 
+ * + * CONTAINMENT_UNSPECIFIED = 0; + */ + CONTAINMENT_UNSPECIFIED(0), + /** + * + * + *
+       * The target location is within the area region, close to the
+       * center.
+       * 
+ * + * WITHIN = 1; + */ + WITHIN(1), + /** + * + * + *
+       * The target location is within the area region, close to the edge.
+       * 
+ * + * OUTSKIRTS = 2; + */ + OUTSKIRTS(2), + /** + * + * + *
+       * The target location is outside the area region, but close by.
+       * 
+ * + * NEAR = 3; + */ + NEAR(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The containment is unspecified.
+       * 
+ * + * CONTAINMENT_UNSPECIFIED = 0; + */ + public static final int CONTAINMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The target location is within the area region, close to the
+       * center.
+       * 
+ * + * WITHIN = 1; + */ + public static final int WITHIN_VALUE = 1; + + /** + * + * + *
+       * The target location is within the area region, close to the edge.
+       * 
+ * + * OUTSKIRTS = 2; + */ + public static final int OUTSKIRTS_VALUE = 2; + + /** + * + * + *
+       * The target location is outside the area region, but close by.
+       * 
+ * + * NEAR = 3; + */ + public static final int NEAR_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Containment 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 Containment forNumber(int value) { + switch (value) { + case 0: + return CONTAINMENT_UNSPECIFIED; + case 1: + return WITHIN; + case 2: + return OUTSKIRTS; + case 3: + return NEAR; + 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 Containment findValueByNumber(int number) { + return Containment.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.maps.places.v1.AddressDescriptor.Area.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Containment[] VALUES = values(); + + public static Containment 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 Containment(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.places.v1.AddressDescriptor.Area.Containment) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The area's resource name.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * The area's resource name.
+     * 
+ * + * 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 PLACE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object placeId_ = ""; + + /** + * + * + *
+     * The area's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + @java.lang.Override + public java.lang.String getPlaceId() { + java.lang.Object ref = placeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeId_ = s; + return s; + } + } + + /** + * + * + *
+     * The area's place id.
+     * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlaceIdBytes() { + java.lang.Object ref = placeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private com.google.type.LocalizedText displayName_; + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public com.google.type.LocalizedText getDisplayName() { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + + /** + * + * + *
+     * The area's display name.
+     * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + + public static final int CONTAINMENT_FIELD_NUMBER = 4; + private int containment_ = 0; + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * area.
+     * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The enum numeric value on the wire for containment. + */ + @java.lang.Override + public int getContainmentValue() { + return containment_; + } + + /** + * + * + *
+     * Defines the spatial relationship between the target location and the
+     * area.
+     * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The containment. + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area.Containment getContainment() { + com.google.maps.places.v1.AddressDescriptor.Area.Containment result = + com.google.maps.places.v1.AddressDescriptor.Area.Containment.forNumber(containment_); + return result == null + ? com.google.maps.places.v1.AddressDescriptor.Area.Containment.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, placeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDisplayName()); + } + if (containment_ + != com.google.maps.places.v1.AddressDescriptor.Area.Containment.CONTAINMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, containment_); + } + 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(placeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, placeId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDisplayName()); + } + if (containment_ + != com.google.maps.places.v1.AddressDescriptor.Area.Containment.CONTAINMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, containment_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.AddressDescriptor.Area)) { + return super.equals(obj); + } + com.google.maps.places.v1.AddressDescriptor.Area other = + (com.google.maps.places.v1.AddressDescriptor.Area) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPlaceId().equals(other.getPlaceId())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (containment_ != other.containment_) 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) + PLACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPlaceId().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + hash = (37 * hash) + CONTAINMENT_FIELD_NUMBER; + hash = (53 * hash) + containment_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.AddressDescriptor.Area 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; + } + + /** + * + * + *
+     * Area information and the area's relationship with the target location.
+     *
+     * Areas includes precise sublocality, neighborhoods, and large compounds that
+     * are useful for describing a location.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor.Area} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.AddressDescriptor.Area) + com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Area_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.Area.class, + com.google.maps.places.v1.AddressDescriptor.Area.Builder.class); + } + + // Construct using com.google.maps.places.v1.AddressDescriptor.Area.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisplayNameFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + placeId_ = ""; + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + containment_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area getDefaultInstanceForType() { + return com.google.maps.places.v1.AddressDescriptor.Area.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area build() { + com.google.maps.places.v1.AddressDescriptor.Area result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area buildPartial() { + com.google.maps.places.v1.AddressDescriptor.Area result = + new com.google.maps.places.v1.AddressDescriptor.Area(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.places.v1.AddressDescriptor.Area result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.placeId_ = placeId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = + displayNameBuilder_ == null ? displayName_ : displayNameBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.containment_ = containment_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.AddressDescriptor.Area) { + return mergeFrom((com.google.maps.places.v1.AddressDescriptor.Area) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.AddressDescriptor.Area other) { + if (other == com.google.maps.places.v1.AddressDescriptor.Area.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPlaceId().isEmpty()) { + placeId_ = other.placeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDisplayName()) { + mergeDisplayName(other.getDisplayName()); + } + if (other.containment_ != 0) { + setContainmentValue(other.getContainmentValue()); + } + 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: + { + placeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDisplayNameFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + containment_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * The area's resource name.
+       * 
+ * + * 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; + } + } + + /** + * + * + *
+       * The area's resource name.
+       * 
+ * + * 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; + } + } + + /** + * + * + *
+       * The area's resource name.
+       * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's resource name.
+       * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's resource name.
+       * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object placeId_ = ""; + + /** + * + * + *
+       * The area's place id.
+       * 
+ * + * string place_id = 2; + * + * @return The placeId. + */ + public java.lang.String getPlaceId() { + java.lang.Object ref = placeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + placeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The area's place id.
+       * 
+ * + * string place_id = 2; + * + * @return The bytes for placeId. + */ + public com.google.protobuf.ByteString getPlaceIdBytes() { + java.lang.Object ref = placeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + placeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The area's place id.
+       * 
+ * + * string place_id = 2; + * + * @param value The placeId to set. + * @return This builder for chaining. + */ + public Builder setPlaceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + placeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's place id.
+       * 
+ * + * string place_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearPlaceId() { + placeId_ = getDefaultInstance().getPlaceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's place id.
+       * 
+ * + * string place_id = 2; + * + * @param value The bytes for placeId to set. + * @return This builder for chaining. + */ + public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + placeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.type.LocalizedText displayName_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + displayNameBuilder_; + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + * + * @return The displayName. + */ + public com.google.type.LocalizedText getDisplayName() { + if (displayNameBuilder_ == null) { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } else { + return displayNameBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder setDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + } else { + displayNameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder setDisplayName(com.google.type.LocalizedText.Builder builderForValue) { + if (displayNameBuilder_ == null) { + displayName_ = builderForValue.build(); + } else { + displayNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder mergeDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && displayName_ != null + && displayName_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisplayNameBuilder().mergeFrom(value); + } else { + displayName_ = value; + } + } else { + displayNameBuilder_.mergeFrom(value); + } + if (displayName_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public Builder clearDisplayName() { + bitField0_ = (bitField0_ & ~0x00000004); + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public com.google.type.LocalizedText.Builder getDisplayNameBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDisplayNameFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + if (displayNameBuilder_ != null) { + return displayNameBuilder_.getMessageOrBuilder(); + } else { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + } + + /** + * + * + *
+       * The area's display name.
+       * 
+ * + * .google.type.LocalizedText display_name = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisplayNameFieldBuilder() { + if (displayNameBuilder_ == null) { + displayNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisplayName(), getParentForChildren(), isClean()); + displayName_ = null; + } + return displayNameBuilder_; + } + + private int containment_ = 0; + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * area.
+       * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The enum numeric value on the wire for containment. + */ + @java.lang.Override + public int getContainmentValue() { + return containment_; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * area.
+       * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @param value The enum numeric value on the wire for containment to set. + * @return This builder for chaining. + */ + public Builder setContainmentValue(int value) { + containment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * area.
+       * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return The containment. + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area.Containment getContainment() { + com.google.maps.places.v1.AddressDescriptor.Area.Containment result = + com.google.maps.places.v1.AddressDescriptor.Area.Containment.forNumber(containment_); + return result == null + ? com.google.maps.places.v1.AddressDescriptor.Area.Containment.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * area.
+       * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @param value The containment to set. + * @return This builder for chaining. + */ + public Builder setContainment( + com.google.maps.places.v1.AddressDescriptor.Area.Containment value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + containment_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Defines the spatial relationship between the target location and the
+       * area.
+       * 
+ * + * .google.maps.places.v1.AddressDescriptor.Area.Containment containment = 4; + * + * @return This builder for chaining. + */ + public Builder clearContainment() { + bitField0_ = (bitField0_ & ~0x00000008); + containment_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.AddressDescriptor.Area) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.AddressDescriptor.Area) + private static final com.google.maps.places.v1.AddressDescriptor.Area DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.AddressDescriptor.Area(); + } + + public static com.google.maps.places.v1.AddressDescriptor.Area getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Area parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int LANDMARKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List landmarks_; + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + @java.lang.Override + public java.util.List getLandmarksList() { + return landmarks_; + } + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + @java.lang.Override + public java.util.List + getLandmarksOrBuilderList() { + return landmarks_; + } + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + @java.lang.Override + public int getLandmarksCount() { + return landmarks_.size(); + } + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Landmark getLandmarks(int index) { + return landmarks_.get(index); + } + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder getLandmarksOrBuilder( + int index) { + return landmarks_.get(index); + } + + public static final int AREAS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List areas_; + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + @java.lang.Override + public java.util.List getAreasList() { + return areas_; + } + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + @java.lang.Override + public java.util.List + getAreasOrBuilderList() { + return areas_; + } + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + @java.lang.Override + public int getAreasCount() { + return areas_.size(); + } + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.Area getAreas(int index) { + return areas_.get(index); + } + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder getAreasOrBuilder(int index) { + return areas_.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 < landmarks_.size(); i++) { + output.writeMessage(1, landmarks_.get(i)); + } + for (int i = 0; i < areas_.size(); i++) { + output.writeMessage(2, areas_.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 < landmarks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, landmarks_.get(i)); + } + for (int i = 0; i < areas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, areas_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.AddressDescriptor)) { + return super.equals(obj); + } + com.google.maps.places.v1.AddressDescriptor other = + (com.google.maps.places.v1.AddressDescriptor) obj; + + if (!getLandmarksList().equals(other.getLandmarksList())) return false; + if (!getAreasList().equals(other.getAreasList())) 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 (getLandmarksCount() > 0) { + hash = (37 * hash) + LANDMARKS_FIELD_NUMBER; + hash = (53 * hash) + getLandmarksList().hashCode(); + } + if (getAreasCount() > 0) { + hash = (37 * hash) + AREAS_FIELD_NUMBER; + hash = (53 * hash) + getAreasList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.AddressDescriptor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.AddressDescriptor 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 relational description of a location. Includes a ranked set of nearby
+   * landmarks and precise containing areas and their relationship to the target
+   * location.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.AddressDescriptor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.AddressDescriptor) + com.google.maps.places.v1.AddressDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.AddressDescriptor.class, + com.google.maps.places.v1.AddressDescriptor.Builder.class); + } + + // Construct using com.google.maps.places.v1.AddressDescriptor.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (landmarksBuilder_ == null) { + landmarks_ = java.util.Collections.emptyList(); + } else { + landmarks_ = null; + landmarksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (areasBuilder_ == null) { + areas_ = java.util.Collections.emptyList(); + } else { + areas_ = null; + areasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.AddressDescriptorProto + .internal_static_google_maps_places_v1_AddressDescriptor_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor getDefaultInstanceForType() { + return com.google.maps.places.v1.AddressDescriptor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor build() { + com.google.maps.places.v1.AddressDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor buildPartial() { + com.google.maps.places.v1.AddressDescriptor result = + new com.google.maps.places.v1.AddressDescriptor(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.places.v1.AddressDescriptor result) { + if (landmarksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + landmarks_ = java.util.Collections.unmodifiableList(landmarks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.landmarks_ = landmarks_; + } else { + result.landmarks_ = landmarksBuilder_.build(); + } + if (areasBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + areas_ = java.util.Collections.unmodifiableList(areas_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.areas_ = areas_; + } else { + result.areas_ = areasBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.places.v1.AddressDescriptor result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.AddressDescriptor) { + return mergeFrom((com.google.maps.places.v1.AddressDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.AddressDescriptor other) { + if (other == com.google.maps.places.v1.AddressDescriptor.getDefaultInstance()) return this; + if (landmarksBuilder_ == null) { + if (!other.landmarks_.isEmpty()) { + if (landmarks_.isEmpty()) { + landmarks_ = other.landmarks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLandmarksIsMutable(); + landmarks_.addAll(other.landmarks_); + } + onChanged(); + } + } else { + if (!other.landmarks_.isEmpty()) { + if (landmarksBuilder_.isEmpty()) { + landmarksBuilder_.dispose(); + landmarksBuilder_ = null; + landmarks_ = other.landmarks_; + bitField0_ = (bitField0_ & ~0x00000001); + landmarksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLandmarksFieldBuilder() + : null; + } else { + landmarksBuilder_.addAllMessages(other.landmarks_); + } + } + } + if (areasBuilder_ == null) { + if (!other.areas_.isEmpty()) { + if (areas_.isEmpty()) { + areas_ = other.areas_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAreasIsMutable(); + areas_.addAll(other.areas_); + } + onChanged(); + } + } else { + if (!other.areas_.isEmpty()) { + if (areasBuilder_.isEmpty()) { + areasBuilder_.dispose(); + areasBuilder_ = null; + areas_ = other.areas_; + bitField0_ = (bitField0_ & ~0x00000002); + areasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAreasFieldBuilder() + : null; + } else { + areasBuilder_.addAllMessages(other.areas_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.maps.places.v1.AddressDescriptor.Landmark m = + input.readMessage( + com.google.maps.places.v1.AddressDescriptor.Landmark.parser(), + extensionRegistry); + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.add(m); + } else { + landmarksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.maps.places.v1.AddressDescriptor.Area m = + input.readMessage( + com.google.maps.places.v1.AddressDescriptor.Area.parser(), + extensionRegistry); + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + areas_.add(m); + } else { + areasBuilder_.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 landmarks_ = + java.util.Collections.emptyList(); + + private void ensureLandmarksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + landmarks_ = + new java.util.ArrayList( + landmarks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Landmark, + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder, + com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder> + landmarksBuilder_; + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public java.util.List getLandmarksList() { + if (landmarksBuilder_ == null) { + return java.util.Collections.unmodifiableList(landmarks_); + } else { + return landmarksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public int getLandmarksCount() { + if (landmarksBuilder_ == null) { + return landmarks_.size(); + } else { + return landmarksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public com.google.maps.places.v1.AddressDescriptor.Landmark getLandmarks(int index) { + if (landmarksBuilder_ == null) { + return landmarks_.get(index); + } else { + return landmarksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder setLandmarks( + int index, com.google.maps.places.v1.AddressDescriptor.Landmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.set(index, value); + onChanged(); + } else { + landmarksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder setLandmarks( + int index, com.google.maps.places.v1.AddressDescriptor.Landmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.set(index, builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder addLandmarks(com.google.maps.places.v1.AddressDescriptor.Landmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.add(value); + onChanged(); + } else { + landmarksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder addLandmarks( + int index, com.google.maps.places.v1.AddressDescriptor.Landmark value) { + if (landmarksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLandmarksIsMutable(); + landmarks_.add(index, value); + onChanged(); + } else { + landmarksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder addLandmarks( + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.add(builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder addLandmarks( + int index, com.google.maps.places.v1.AddressDescriptor.Landmark.Builder builderForValue) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.add(index, builderForValue.build()); + onChanged(); + } else { + landmarksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder addAllLandmarks( + java.lang.Iterable values) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, landmarks_); + onChanged(); + } else { + landmarksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder clearLandmarks() { + if (landmarksBuilder_ == null) { + landmarks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + landmarksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public Builder removeLandmarks(int index) { + if (landmarksBuilder_ == null) { + ensureLandmarksIsMutable(); + landmarks_.remove(index); + onChanged(); + } else { + landmarksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public com.google.maps.places.v1.AddressDescriptor.Landmark.Builder getLandmarksBuilder( + int index) { + return getLandmarksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder getLandmarksOrBuilder( + int index) { + if (landmarksBuilder_ == null) { + return landmarks_.get(index); + } else { + return landmarksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public java.util.List + getLandmarksOrBuilderList() { + if (landmarksBuilder_ != null) { + return landmarksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(landmarks_); + } + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public com.google.maps.places.v1.AddressDescriptor.Landmark.Builder addLandmarksBuilder() { + return getLandmarksFieldBuilder() + .addBuilder(com.google.maps.places.v1.AddressDescriptor.Landmark.getDefaultInstance()); + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public com.google.maps.places.v1.AddressDescriptor.Landmark.Builder addLandmarksBuilder( + int index) { + return getLandmarksFieldBuilder() + .addBuilder( + index, com.google.maps.places.v1.AddressDescriptor.Landmark.getDefaultInstance()); + } + + /** + * + * + *
+     * A ranked list of nearby landmarks. The most recognizable and nearby
+     * landmarks are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + public java.util.List + getLandmarksBuilderList() { + return getLandmarksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Landmark, + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder, + com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder> + getLandmarksFieldBuilder() { + if (landmarksBuilder_ == null) { + landmarksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Landmark, + com.google.maps.places.v1.AddressDescriptor.Landmark.Builder, + com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder>( + landmarks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + landmarks_ = null; + } + return landmarksBuilder_; + } + + private java.util.List areas_ = + java.util.Collections.emptyList(); + + private void ensureAreasIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + areas_ = new java.util.ArrayList(areas_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Area, + com.google.maps.places.v1.AddressDescriptor.Area.Builder, + com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder> + areasBuilder_; + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public java.util.List getAreasList() { + if (areasBuilder_ == null) { + return java.util.Collections.unmodifiableList(areas_); + } else { + return areasBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public int getAreasCount() { + if (areasBuilder_ == null) { + return areas_.size(); + } else { + return areasBuilder_.getCount(); + } + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public com.google.maps.places.v1.AddressDescriptor.Area getAreas(int index) { + if (areasBuilder_ == null) { + return areas_.get(index); + } else { + return areasBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder setAreas(int index, com.google.maps.places.v1.AddressDescriptor.Area value) { + if (areasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAreasIsMutable(); + areas_.set(index, value); + onChanged(); + } else { + areasBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder setAreas( + int index, com.google.maps.places.v1.AddressDescriptor.Area.Builder builderForValue) { + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + areas_.set(index, builderForValue.build()); + onChanged(); + } else { + areasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder addAreas(com.google.maps.places.v1.AddressDescriptor.Area value) { + if (areasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAreasIsMutable(); + areas_.add(value); + onChanged(); + } else { + areasBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder addAreas(int index, com.google.maps.places.v1.AddressDescriptor.Area value) { + if (areasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAreasIsMutable(); + areas_.add(index, value); + onChanged(); + } else { + areasBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder addAreas( + com.google.maps.places.v1.AddressDescriptor.Area.Builder builderForValue) { + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + areas_.add(builderForValue.build()); + onChanged(); + } else { + areasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder addAreas( + int index, com.google.maps.places.v1.AddressDescriptor.Area.Builder builderForValue) { + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + areas_.add(index, builderForValue.build()); + onChanged(); + } else { + areasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder addAllAreas( + java.lang.Iterable values) { + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, areas_); + onChanged(); + } else { + areasBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder clearAreas() { + if (areasBuilder_ == null) { + areas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + areasBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public Builder removeAreas(int index) { + if (areasBuilder_ == null) { + ensureAreasIsMutable(); + areas_.remove(index); + onChanged(); + } else { + areasBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public com.google.maps.places.v1.AddressDescriptor.Area.Builder getAreasBuilder(int index) { + return getAreasFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder getAreasOrBuilder(int index) { + if (areasBuilder_ == null) { + return areas_.get(index); + } else { + return areasBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public java.util.List + getAreasOrBuilderList() { + if (areasBuilder_ != null) { + return areasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(areas_); + } + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public com.google.maps.places.v1.AddressDescriptor.Area.Builder addAreasBuilder() { + return getAreasFieldBuilder() + .addBuilder(com.google.maps.places.v1.AddressDescriptor.Area.getDefaultInstance()); + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public com.google.maps.places.v1.AddressDescriptor.Area.Builder addAreasBuilder(int index) { + return getAreasFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.AddressDescriptor.Area.getDefaultInstance()); + } + + /** + * + * + *
+     * A ranked list of containing or adjacent areas. The most recognizable and
+     * precise areas are ranked first.
+     * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + public java.util.List + getAreasBuilderList() { + return getAreasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Area, + com.google.maps.places.v1.AddressDescriptor.Area.Builder, + com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder> + getAreasFieldBuilder() { + if (areasBuilder_ == null) { + areasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.AddressDescriptor.Area, + com.google.maps.places.v1.AddressDescriptor.Area.Builder, + com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder>( + areas_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + areas_ = null; + } + return areasBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.AddressDescriptor) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.AddressDescriptor) + private static final com.google.maps.places.v1.AddressDescriptor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.AddressDescriptor(); + } + + public static com.google.maps.places.v1.AddressDescriptor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddressDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorOrBuilder.java new file mode 100644 index 000000000000..cf442ea2d7f6 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorOrBuilder.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/maps/places/v1/address_descriptor.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.places.v1; + +public interface AddressDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.AddressDescriptor) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + java.util.List getLandmarksList(); + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + com.google.maps.places.v1.AddressDescriptor.Landmark getLandmarks(int index); + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + int getLandmarksCount(); + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + java.util.List + getLandmarksOrBuilderList(); + + /** + * + * + *
+   * A ranked list of nearby landmarks. The most recognizable and nearby
+   * landmarks are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Landmark landmarks = 1; + */ + com.google.maps.places.v1.AddressDescriptor.LandmarkOrBuilder getLandmarksOrBuilder(int index); + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + java.util.List getAreasList(); + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + com.google.maps.places.v1.AddressDescriptor.Area getAreas(int index); + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + int getAreasCount(); + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + java.util.List + getAreasOrBuilderList(); + + /** + * + * + *
+   * A ranked list of containing or adjacent areas. The most recognizable and
+   * precise areas are ranked first.
+   * 
+ * + * repeated .google.maps.places.v1.AddressDescriptor.Area areas = 2; + */ + com.google.maps.places.v1.AddressDescriptor.AreaOrBuilder getAreasOrBuilder(int index); +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorProto.java new file mode 100644 index 000000000000..34d83b21c0b4 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AddressDescriptorProto.java @@ -0,0 +1,131 @@ +/* + * 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/maps/places/v1/address_descriptor.proto + +// Protobuf Java Version: 3.25.5 +package com.google.maps.places.v1; + +public final class AddressDescriptorProto { + private AddressDescriptorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_AddressDescriptor_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_AddressDescriptor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_AddressDescriptor_Landmark_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_AddressDescriptor_Area_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/maps/places/v1/address_descript" + + "or.proto\022\025google.maps.places.v1\032\031google/" + + "api/resource.proto\032 google/type/localize" + + "d_text.proto\"\226\007\n\021AddressDescriptor\022D\n\tla" + + "ndmarks\030\001 \003(\01321.google.maps.places.v1.Ad" + + "dressDescriptor.Landmark\022<\n\005areas\030\002 \003(\0132" + + "-.google.maps.places.v1.AddressDescripto" + + "r.Area\032\336\003\n\010Landmark\022.\n\004name\030\001 \001(\tB \372A\035\n\033" + + "places.googleapis.com/Place\022\020\n\010place_id\030" + + "\002 \001(\t\0220\n\014display_name\030\003 \001(\0132\032.google.typ" + + "e.LocalizedText\022\r\n\005types\030\004 \003(\t\022c\n\024spatia" + + "l_relationship\030\005 \001(\0162E.google.maps.place" + + "s.v1.AddressDescriptor.Landmark.SpatialR" + + "elationship\022%\n\035straight_line_distance_me" + + "ters\030\006 \001(\002\022#\n\026travel_distance_meters\030\007 \001" + + "(\002H\000\210\001\001\"\202\001\n\023SpatialRelationship\022\010\n\004NEAR\020" + + "\000\022\n\n\006WITHIN\020\001\022\n\n\006BESIDE\020\002\022\023\n\017ACROSS_THE_" + + "ROAD\020\003\022\021\n\rDOWN_THE_ROAD\020\004\022\025\n\021AROUND_THE_" + + "CORNER\020\005\022\n\n\006BEHIND\020\006B\031\n\027_travel_distance" + + "_meters\032\233\002\n\004Area\022.\n\004name\030\001 \001(\tB \372A\035\n\033pla" + + "ces.googleapis.com/Place\022\020\n\010place_id\030\002 \001" + + "(\t\0220\n\014display_name\030\003 \001(\0132\032.google.type.L" + + "ocalizedText\022N\n\013containment\030\004 \001(\01629.goog" + + "le.maps.places.v1.AddressDescriptor.Area" + + ".Containment\"O\n\013Containment\022\033\n\027CONTAINME" + + "NT_UNSPECIFIED\020\000\022\n\n\006WITHIN\020\001\022\r\n\tOUTSKIRT" + + "S\020\002\022\010\n\004NEAR\020\003B\247\001\n\031com.google.maps.places" + + ".v1B\026AddressDescriptorProtoP\001Z7cloud.goo" + + "gle.com/go/maps/places/apiv1/placespb;pl" + + "acespb\242\002\006GMPSV1\252\002\025Google.Maps.Places.V1\312" + + "\002\025Google\\Maps\\Places\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_places_v1_AddressDescriptor_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_places_v1_AddressDescriptor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_AddressDescriptor_descriptor, + new java.lang.String[] { + "Landmarks", "Areas", + }); + internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor = + internal_static_google_maps_places_v1_AddressDescriptor_descriptor.getNestedTypes().get(0); + internal_static_google_maps_places_v1_AddressDescriptor_Landmark_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_AddressDescriptor_Landmark_descriptor, + new java.lang.String[] { + "Name", + "PlaceId", + "DisplayName", + "Types", + "SpatialRelationship", + "StraightLineDistanceMeters", + "TravelDistanceMeters", + }); + internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor = + internal_static_google_maps_places_v1_AddressDescriptor_descriptor.getNestedTypes().get(1); + internal_static_google_maps_places_v1_AddressDescriptor_Area_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_AddressDescriptor_Area_descriptor, + new java.lang.String[] { + "Name", "PlaceId", "DisplayName", "Containment", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Photo.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Photo.java index f367bc22b51a..1eeb5cda0c39 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Photo.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Photo.java @@ -42,6 +42,8 @@ private Photo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Photo() { name_ = ""; authorAttributions_ = java.util.Collections.emptyList(); + flagContentUri_ = ""; + googleMapsUri_ = ""; } @java.lang.Override @@ -236,6 +238,112 @@ public com.google.maps.places.v1.AuthorAttributionOrBuilder getAuthorAttribution return authorAttributions_.get(index); } + public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object flagContentUri_ = ""; + + /** + * + * + *
+   * A link where users can flag a problem with the photo.
+   * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + @java.lang.Override + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A link where users can flag a problem with the photo.
+   * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleMapsUri_ = ""; + + /** + * + * + *
+   * A link to show the photo on Google Maps.
+   * 
+ * + * string google_maps_uri = 6; + * + * @return The googleMapsUri. + */ + @java.lang.Override + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A link to show the photo on Google Maps.
+   * 
+ * + * string google_maps_uri = 6; + * + * @return The bytes for googleMapsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +370,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < authorAttributions_.size(); i++) { output.writeMessage(4, authorAttributions_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, flagContentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, googleMapsUri_); + } getUnknownFields().writeTo(output); } @@ -284,6 +398,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, authorAttributions_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, flagContentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, googleMapsUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -303,6 +423,8 @@ public boolean equals(final java.lang.Object obj) { if (getWidthPx() != other.getWidthPx()) return false; if (getHeightPx() != other.getHeightPx()) return false; if (!getAuthorAttributionsList().equals(other.getAuthorAttributionsList())) return false; + if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; + if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,6 +446,10 @@ public int hashCode() { hash = (37 * hash) + AUTHOR_ATTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getAuthorAttributionsList().hashCode(); } + hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getFlagContentUri().hashCode(); + hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -472,6 +598,8 @@ public Builder clear() { authorAttributionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + flagContentUri_ = ""; + googleMapsUri_ = ""; return this; } @@ -529,6 +657,12 @@ private void buildPartial0(com.google.maps.places.v1.Photo result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.heightPx_ = heightPx_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.flagContentUri_ = flagContentUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.googleMapsUri_ = googleMapsUri_; + } } @java.lang.Override @@ -614,6 +748,16 @@ public Builder mergeFrom(com.google.maps.places.v1.Photo other) { } } } + if (!other.getFlagContentUri().isEmpty()) { + flagContentUri_ = other.flagContentUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGoogleMapsUri().isEmpty()) { + googleMapsUri_ = other.googleMapsUri_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -671,6 +815,18 @@ public Builder mergeFrom( } break; } // case 34 + case 42: + { + flagContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + googleMapsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1300,6 +1456,228 @@ public com.google.maps.places.v1.AuthorAttribution.Builder addAuthorAttributions return authorAttributionsBuilder_; } + private java.lang.Object flagContentUri_ = ""; + + /** + * + * + *
+     * A link where users can flag a problem with the photo.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A link where users can flag a problem with the photo.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A link where users can flag a problem with the photo.
+     * 
+ * + * string flag_content_uri = 5; + * + * @param value The flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flagContentUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * A link where users can flag a problem with the photo.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearFlagContentUri() { + flagContentUri_ = getDefaultInstance().getFlagContentUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * A link where users can flag a problem with the photo.
+     * 
+ * + * string flag_content_uri = 5; + * + * @param value The bytes for flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flagContentUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object googleMapsUri_ = ""; + + /** + * + * + *
+     * A link to show the photo on Google Maps.
+     * 
+ * + * string google_maps_uri = 6; + * + * @return The googleMapsUri. + */ + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A link to show the photo on Google Maps.
+     * 
+ * + * string google_maps_uri = 6; + * + * @return The bytes for googleMapsUri. + */ + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A link to show the photo on Google Maps.
+     * 
+ * + * string google_maps_uri = 6; + * + * @param value The googleMapsUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleMapsUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to show the photo on Google Maps.
+     * 
+ * + * string google_maps_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearGoogleMapsUri() { + googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to show the photo on Google Maps.
+     * 
+ * + * string google_maps_uri = 6; + * + * @param value The bytes for googleMapsUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleMapsUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoOrBuilder.java index fff7b00cda20..a56f96b6b7ec 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoOrBuilder.java @@ -135,4 +135,56 @@ public interface PhotoOrBuilder * repeated .google.maps.places.v1.AuthorAttribution author_attributions = 4; */ com.google.maps.places.v1.AuthorAttributionOrBuilder getAuthorAttributionsOrBuilder(int index); + + /** + * + * + *
+   * A link where users can flag a problem with the photo.
+   * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + java.lang.String getFlagContentUri(); + + /** + * + * + *
+   * A link where users can flag a problem with the photo.
+   * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + com.google.protobuf.ByteString getFlagContentUriBytes(); + + /** + * + * + *
+   * A link to show the photo on Google Maps.
+   * 
+ * + * string google_maps_uri = 6; + * + * @return The googleMapsUri. + */ + java.lang.String getGoogleMapsUri(); + + /** + * + * + *
+   * A link to show the photo on Google Maps.
+   * 
+ * + * string google_maps_uri = 6; + * + * @return The bytes for googleMapsUri. + */ + com.google.protobuf.ByteString getGoogleMapsUriBytes(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoProto.java index e5ac40f8fe32..d92b9daa66b7 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoProto.java @@ -45,18 +45,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!google/maps/places/v1/photo.proto\022\025goo" + "gle.maps.places.v1\032\037google/api/field_beh" + "avior.proto\032\031google/api/resource.proto\032\'" - + "google/maps/places/v1/attribution.proto\"\326\001\n" + + "google/maps/places/v1/attribution.proto\"\211\002\n" + "\005Photo\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\020\n" + "\010width_px\030\002 \001(\005\022\021\n" + "\theight_px\030\003 \001(\005\022E\n" + "\023author_attributions\030\004" - + " \003(\0132(.google.maps.places.v1.AuthorAttribution:N\352AK\n" - + "\033places.googleapis" - + ".com/Photo\022\035places/{place}/photos/{photo}*\006photos2\005photoB\233\001\n" + + " \003(\0132(.google.maps.places.v1.AuthorAttribution\022\030\n" + + "\020flag_content_uri\030\005 \001(\t\022\027\n" + + "\017google_maps_uri\030\006 \001(\t:N\352AK\n" + + "\033places" + + ".googleapis.com/Photo\022\035places/{place}/photos/{photo}*\006photos2\005photoB\233\001\n" + "\031com.google.maps.places.v1B\n" - + "PhotoProtoP\001Z7cloud.google.com/go/maps/places/apiv1/placespb;placespb\242\002\006" - + "GMPSV1\252\002\025Google.Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" + + "PhotoProtoP\001Z7cloud.google.com/go/maps/places/apiv1/placespb;" + + "placespb\242\002\006GMPSV1\252\002\025Google.Maps.Places.V" + + "1\312\002\025Google\\Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -72,7 +75,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_maps_places_v1_Photo_descriptor, new java.lang.String[] { - "Name", "WidthPx", "HeightPx", "AuthorAttributions", + "Name", + "WidthPx", + "HeightPx", + "AuthorAttributions", + "FlagContentUri", + "GoogleMapsUri", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java index e78da7ad2759..68e1c3ec8553 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Place.java @@ -13111,7 +13111,7 @@ public interface SubDestinationOrBuilder * * *
-     * The resource name of the sub destination.
+     * The resource name of the sub-destination.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13124,7 +13124,7 @@ public interface SubDestinationOrBuilder * * *
-     * The resource name of the sub destination.
+     * The resource name of the sub-destination.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13137,7 +13137,7 @@ public interface SubDestinationOrBuilder * * *
-     * The place id of the sub destination.
+     * The place id of the sub-destination.
      * 
* * string id = 2; @@ -13150,7 +13150,7 @@ public interface SubDestinationOrBuilder * * *
-     * The place id of the sub destination.
+     * The place id of the sub-destination.
      * 
* * string id = 2; @@ -13164,8 +13164,14 @@ public interface SubDestinationOrBuilder * * *
-   * Place resource name and id of sub destinations that relate to the place.
-   * For example, different terminals are different destinations of an airport.
+   * Sub-destinations are specific places associated with a main place. These
+   * provide more specific destinations for users who are searching within a
+   * large or complex place, like an airport, national park, university, or
+   * stadium. For example, sub-destinations at an airport might include
+   * associated terminals and parking lots. Sub-destinations return the place ID
+   * and place resource name, which can be used in subsequent Place Details
+   * (New) requests to fetch richer details, including the sub-destination's
+   * display name and location.
    * 
* * Protobuf type {@code google.maps.places.v1.Place.SubDestination} @@ -13216,7 +13222,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The resource name of the sub destination.
+     * The resource name of the sub-destination.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13240,7 +13246,7 @@ public java.lang.String getName() { * * *
-     * The resource name of the sub destination.
+     * The resource name of the sub-destination.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13269,7 +13275,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The place id of the sub destination.
+     * The place id of the sub-destination.
      * 
* * string id = 2; @@ -13293,7 +13299,7 @@ public java.lang.String getId() { * * *
-     * The place id of the sub destination.
+     * The place id of the sub-destination.
      * 
* * string id = 2; @@ -13487,8 +13493,14 @@ protected Builder newBuilderForType( * * *
-     * Place resource name and id of sub destinations that relate to the place.
-     * For example, different terminals are different destinations of an airport.
+     * Sub-destinations are specific places associated with a main place. These
+     * provide more specific destinations for users who are searching within a
+     * large or complex place, like an airport, national park, university, or
+     * stadium. For example, sub-destinations at an airport might include
+     * associated terminals and parking lots. Sub-destinations return the place ID
+     * and place resource name, which can be used in subsequent Place Details
+     * (New) requests to fetch richer details, including the sub-destination's
+     * display name and location.
      * 
* * Protobuf type {@code google.maps.places.v1.Place.SubDestination} @@ -13691,7 +13703,7 @@ public Builder mergeFrom( * * *
-       * The resource name of the sub destination.
+       * The resource name of the sub-destination.
        * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13714,7 +13726,7 @@ public java.lang.String getName() { * * *
-       * The resource name of the sub destination.
+       * The resource name of the sub-destination.
        * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13737,7 +13749,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * The resource name of the sub destination.
+       * The resource name of the sub-destination.
        * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13759,7 +13771,7 @@ public Builder setName(java.lang.String value) { * * *
-       * The resource name of the sub destination.
+       * The resource name of the sub-destination.
        * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13777,7 +13789,7 @@ public Builder clearName() { * * *
-       * The resource name of the sub destination.
+       * The resource name of the sub-destination.
        * 
* * string name = 1 [(.google.api.resource_reference) = { ... } @@ -13802,7 +13814,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-       * The place id of the sub destination.
+       * The place id of the sub-destination.
        * 
* * string id = 2; @@ -13825,7 +13837,7 @@ public java.lang.String getId() { * * *
-       * The place id of the sub destination.
+       * The place id of the sub-destination.
        * 
* * string id = 2; @@ -13848,7 +13860,7 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-       * The place id of the sub destination.
+       * The place id of the sub-destination.
        * 
* * string id = 2; @@ -13870,7 +13882,7 @@ public Builder setId(java.lang.String value) { * * *
-       * The place id of the sub destination.
+       * The place id of the sub-destination.
        * 
* * string id = 2; @@ -13888,7 +13900,7 @@ public Builder clearId() { * * *
-       * The place id of the sub destination.
+       * The place id of the sub-destination.
        * 
* * string id = 2; @@ -15119,85 +15131,76 @@ public interface GenerativeSummaryOrBuilder * * *
-     * The detailed description of the place.
+     * A link where users can flag a problem with the overview summary.
      * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; * - * @return Whether the description field is set. + * @return The overviewFlagContentUri. */ - boolean hasDescription(); + java.lang.String getOverviewFlagContentUri(); /** * * *
-     * The detailed description of the place.
+     * A link where users can flag a problem with the overview summary.
      * 
* - * .google.type.LocalizedText description = 2; - * - * @return The description. - */ - com.google.type.LocalizedText getDescription(); - - /** - * + * string overview_flag_content_uri = 4; * - *
-     * The detailed description of the place.
-     * 
- * - * .google.type.LocalizedText description = 2; + * @return The bytes for overviewFlagContentUri. */ - com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder(); + com.google.protobuf.ByteString getOverviewFlagContentUriBytes(); /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return Whether the references field is set. + * @return Whether the disclosureText field is set. */ - boolean hasReferences(); + boolean hasDisclosureText(); /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return The references. + * @return The disclosureText. */ - com.google.maps.places.v1.References getReferences(); + com.google.type.LocalizedText getDisclosureText(); /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder(); + com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder(); } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
    * AI-generated summary of the place.
    * 
* @@ -15214,7 +15217,9 @@ private GenerativeSummary(com.google.protobuf.GeneratedMessageV3.Builder buil super(builder); } - private GenerativeSummary() {} + private GenerativeSummary() { + overviewFlagContentUri_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -15287,110 +15292,116 @@ public com.google.type.LocalizedTextOrBuilder getOverviewOrBuilder() { return overview_ == null ? com.google.type.LocalizedText.getDefaultInstance() : overview_; } - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private com.google.type.LocalizedText description_; + public static final int OVERVIEW_FLAG_CONTENT_URI_FIELD_NUMBER = 4; - /** - * - * - *
-     * The detailed description of the place.
-     * 
- * - * .google.type.LocalizedText description = 2; - * - * @return Whether the description field is set. - */ - @java.lang.Override - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) != 0); - } + @SuppressWarnings("serial") + private volatile java.lang.Object overviewFlagContentUri_ = ""; /** * * *
-     * The detailed description of the place.
+     * A link where users can flag a problem with the overview summary.
      * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; * - * @return The description. + * @return The overviewFlagContentUri. */ @java.lang.Override - public com.google.type.LocalizedText getDescription() { - return description_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : description_; + public java.lang.String getOverviewFlagContentUri() { + java.lang.Object ref = overviewFlagContentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overviewFlagContentUri_ = s; + return s; + } } /** * * *
-     * The detailed description of the place.
+     * A link where users can flag a problem with the overview summary.
      * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; + * + * @return The bytes for overviewFlagContentUri. */ @java.lang.Override - public com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder() { - return description_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : description_; + public com.google.protobuf.ByteString getOverviewFlagContentUriBytes() { + java.lang.Object ref = overviewFlagContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overviewFlagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int REFERENCES_FIELD_NUMBER = 3; - private com.google.maps.places.v1.References references_; + public static final int DISCLOSURE_TEXT_FIELD_NUMBER = 6; + private com.google.type.LocalizedText disclosureText_; /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return Whether the references field is set. + * @return Whether the disclosureText field is set. */ @java.lang.Override - public boolean hasReferences() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return The references. + * @return The disclosureText. */ @java.lang.Override - public com.google.maps.places.v1.References getReferences() { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + public com.google.type.LocalizedText getDisclosureText() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } /** * * *
-     * References that are used to generate the summary description.
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
      * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ @java.lang.Override - public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } private byte memoizedIsInitialized = -1; @@ -15410,11 +15421,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOverview()); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getDescription()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overviewFlagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, overviewFlagContentUri_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getReferences()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getDisclosureText()); } getUnknownFields().writeTo(output); } @@ -15428,11 +15439,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverview()); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDescription()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(overviewFlagContentUri_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(4, overviewFlagContentUri_); } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReferences()); + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDisclosureText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15454,13 +15466,10 @@ public boolean equals(final java.lang.Object obj) { if (hasOverview()) { if (!getOverview().equals(other.getOverview())) return false; } - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription().equals(other.getDescription())) return false; - } - if (hasReferences() != other.hasReferences()) return false; - if (hasReferences()) { - if (!getReferences().equals(other.getReferences())) return false; + if (!getOverviewFlagContentUri().equals(other.getOverviewFlagContentUri())) return false; + if (hasDisclosureText() != other.hasDisclosureText()) return false; + if (hasDisclosureText()) { + if (!getDisclosureText().equals(other.getDisclosureText())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -15477,13 +15486,11 @@ public int hashCode() { hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; hash = (53 * hash) + getOverview().hashCode(); } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (hasReferences()) { - hash = (37 * hash) + REFERENCES_FIELD_NUMBER; - hash = (53 * hash) + getReferences().hashCode(); + hash = (37 * hash) + OVERVIEW_FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOverviewFlagContentUri().hashCode(); + if (hasDisclosureText()) { + hash = (37 * hash) + DISCLOSURE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getDisclosureText().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -15591,10 +15598,6 @@ protected Builder newBuilderForType( * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
      * AI-generated summary of the place.
      * 
* @@ -15633,8 +15636,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOverviewFieldBuilder(); - getDescriptionFieldBuilder(); - getReferencesFieldBuilder(); + getDisclosureTextFieldBuilder(); } } @@ -15647,15 +15649,11 @@ public Builder clear() { overviewBuilder_.dispose(); overviewBuilder_ = null; } - description_ = null; - if (descriptionBuilder_ != null) { - descriptionBuilder_.dispose(); - descriptionBuilder_ = null; - } - references_ = null; - if (referencesBuilder_ != null) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; + overviewFlagContentUri_ = ""; + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; } return this; } @@ -15699,14 +15697,12 @@ private void buildPartial0(com.google.maps.places.v1.Place.GenerativeSummary res to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = - descriptionBuilder_ == null ? description_ : descriptionBuilder_.build(); - to_bitField0_ |= 0x00000002; + result.overviewFlagContentUri_ = overviewFlagContentUri_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.references_ = - referencesBuilder_ == null ? references_ : referencesBuilder_.build(); - to_bitField0_ |= 0x00000004; + result.disclosureText_ = + disclosureTextBuilder_ == null ? disclosureText_ : disclosureTextBuilder_.build(); + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -15762,11 +15758,13 @@ public Builder mergeFrom(com.google.maps.places.v1.Place.GenerativeSummary other if (other.hasOverview()) { mergeOverview(other.getOverview()); } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); + if (!other.getOverviewFlagContentUri().isEmpty()) { + overviewFlagContentUri_ = other.overviewFlagContentUri_; + bitField0_ |= 0x00000002; + onChanged(); } - if (other.hasReferences()) { - mergeReferences(other.getReferences()); + if (other.hasDisclosureText()) { + mergeDisclosureText(other.getDisclosureText()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -15800,18 +15798,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: + case 34: { - input.readMessage(getDescriptionFieldBuilder().getBuilder(), extensionRegistry); + overviewFlagContentUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; - } // case 18 - case 26: + } // case 34 + case 50: { - input.readMessage(getReferencesFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + getDisclosureTextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; - } // case 26 + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16021,46 +16020,28 @@ public com.google.type.LocalizedTextOrBuilder getOverviewOrBuilder() { return overviewBuilder_; } - private com.google.type.LocalizedText description_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - descriptionBuilder_; - - /** - * - * - *
-       * The detailed description of the place.
-       * 
- * - * .google.type.LocalizedText description = 2; - * - * @return Whether the description field is set. - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) != 0); - } + private java.lang.Object overviewFlagContentUri_ = ""; /** * * *
-       * The detailed description of the place.
+       * A link where users can flag a problem with the overview summary.
        * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; * - * @return The description. + * @return The overviewFlagContentUri. */ - public com.google.type.LocalizedText getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : description_; + public java.lang.String getOverviewFlagContentUri() { + java.lang.Object ref = overviewFlagContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + overviewFlagContentUri_ = s; + return s; } else { - return descriptionBuilder_.getMessage(); + return (java.lang.String) ref; } } @@ -16068,40 +16049,42 @@ public com.google.type.LocalizedText getDescription() { * * *
-       * The detailed description of the place.
+       * A link where users can flag a problem with the overview summary.
        * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; + * + * @return The bytes for overviewFlagContentUri. */ - public Builder setDescription(com.google.type.LocalizedText value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; + public com.google.protobuf.ByteString getOverviewFlagContentUriBytes() { + java.lang.Object ref = overviewFlagContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + overviewFlagContentUri_ = b; + return b; } else { - descriptionBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
-       * The detailed description of the place.
+       * A link where users can flag a problem with the overview summary.
        * 
* - * .google.type.LocalizedText description = 2; + * string overview_flag_content_uri = 4; + * + * @param value The overviewFlagContentUri to set. + * @return This builder for chaining. */ - public Builder setDescription(com.google.type.LocalizedText.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); + public Builder setOverviewFlagContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + overviewFlagContentUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -16111,46 +16094,16 @@ public Builder setDescription(com.google.type.LocalizedText.Builder builderForVa * * *
-       * The detailed description of the place.
+       * A link where users can flag a problem with the overview summary.
        * 
* - * .google.type.LocalizedText description = 2; - */ - public Builder mergeDescription(com.google.type.LocalizedText value) { - if (descriptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && description_ != null - && description_ != com.google.type.LocalizedText.getDefaultInstance()) { - getDescriptionBuilder().mergeFrom(value); - } else { - description_ = value; - } - } else { - descriptionBuilder_.mergeFrom(value); - } - if (description_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * + * string overview_flag_content_uri = 4; * - *
-       * The detailed description of the place.
-       * 
- * - * .google.type.LocalizedText description = 2; + * @return This builder for chaining. */ - public Builder clearDescription() { + public Builder clearOverviewFlagContentUri() { + overviewFlagContentUri_ = getDefaultInstance().getOverviewFlagContentUri(); bitField0_ = (bitField0_ & ~0x00000002); - description_ = null; - if (descriptionBuilder_ != null) { - descriptionBuilder_.dispose(); - descriptionBuilder_ = null; - } onChanged(); return this; } @@ -16159,81 +16112,46 @@ public Builder clearDescription() { * * *
-       * The detailed description of the place.
+       * A link where users can flag a problem with the overview summary.
        * 
* - * .google.type.LocalizedText description = 2; - */ - public com.google.type.LocalizedText.Builder getDescriptionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - - /** - * - * - *
-       * The detailed description of the place.
-       * 
+ * string overview_flag_content_uri = 4; * - * .google.type.LocalizedText description = 2; + * @param value The bytes for overviewFlagContentUri to set. + * @return This builder for chaining. */ - public com.google.type.LocalizedTextOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : description_; + public Builder setOverviewFlagContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + overviewFlagContentUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - /** - * - * - *
-       * The detailed description of the place.
-       * 
- * - * .google.type.LocalizedText description = 2; - */ + private com.google.type.LocalizedText disclosureText_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder>( - getDescription(), getParentForChildren(), isClean()); - description_ = null; - } - return descriptionBuilder_; - } - - private com.google.maps.places.v1.References references_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder> - referencesBuilder_; + disclosureTextBuilder_; /** * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return Whether the references field is set. + * @return Whether the disclosureText field is set. */ - public boolean hasReferences() { + public boolean hasDisclosureText() { return ((bitField0_ & 0x00000004) != 0); } @@ -16241,20 +16159,22 @@ public boolean hasReferences() { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; * - * @return The references. + * @return The disclosureText. */ - public com.google.maps.places.v1.References getReferences() { - if (referencesBuilder_ == null) { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + public com.google.type.LocalizedText getDisclosureText() { + if (disclosureTextBuilder_ == null) { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } else { - return referencesBuilder_.getMessage(); + return disclosureTextBuilder_.getMessage(); } } @@ -16262,19 +16182,21 @@ public com.google.maps.places.v1.References getReferences() { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public Builder setReferences(com.google.maps.places.v1.References value) { - if (referencesBuilder_ == null) { + public Builder setDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - references_ = value; + disclosureText_ = value; } else { - referencesBuilder_.setMessage(value); + disclosureTextBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); @@ -16285,16 +16207,18 @@ public Builder setReferences(com.google.maps.places.v1.References value) { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public Builder setReferences(com.google.maps.places.v1.References.Builder builderForValue) { - if (referencesBuilder_ == null) { - references_ = builderForValue.build(); + public Builder setDisclosureText(com.google.type.LocalizedText.Builder builderForValue) { + if (disclosureTextBuilder_ == null) { + disclosureText_ = builderForValue.build(); } else { - referencesBuilder_.setMessage(builderForValue.build()); + disclosureTextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); @@ -16305,24 +16229,26 @@ public Builder setReferences(com.google.maps.places.v1.References.Builder builde * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public Builder mergeReferences(com.google.maps.places.v1.References value) { - if (referencesBuilder_ == null) { + public Builder mergeDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) - && references_ != null - && references_ != com.google.maps.places.v1.References.getDefaultInstance()) { - getReferencesBuilder().mergeFrom(value); + && disclosureText_ != null + && disclosureText_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisclosureTextBuilder().mergeFrom(value); } else { - references_ = value; + disclosureText_ = value; } } else { - referencesBuilder_.mergeFrom(value); + disclosureTextBuilder_.mergeFrom(value); } - if (references_ != null) { + if (disclosureText_ != null) { bitField0_ |= 0x00000004; onChanged(); } @@ -16333,17 +16259,19 @@ public Builder mergeReferences(com.google.maps.places.v1.References value) { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public Builder clearReferences() { + public Builder clearDisclosureText() { bitField0_ = (bitField0_ & ~0x00000004); - references_ = null; - if (referencesBuilder_ != null) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; } onChanged(); return this; @@ -16353,33 +16281,37 @@ public Builder clearReferences() { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public com.google.maps.places.v1.References.Builder getReferencesBuilder() { + public com.google.type.LocalizedText.Builder getDisclosureTextBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getReferencesFieldBuilder().getBuilder(); + return getDisclosureTextFieldBuilder().getBuilder(); } /** * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ - public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { - if (referencesBuilder_ != null) { - return referencesBuilder_.getMessageOrBuilder(); + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + if (disclosureTextBuilder_ != null) { + return disclosureTextBuilder_.getMessageOrBuilder(); } else { - return references_ == null - ? com.google.maps.places.v1.References.getDefaultInstance() - : references_; + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } } @@ -16387,26 +16319,28 @@ public com.google.maps.places.v1.ReferencesOrBuilder getReferencesOrBuilder() { * * *
-       * References that are used to generate the summary description.
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
        * 
* - * .google.maps.places.v1.References references = 3; + * .google.type.LocalizedText disclosure_text = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder> - getReferencesFieldBuilder() { - if (referencesBuilder_ == null) { - referencesBuilder_ = + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisclosureTextFieldBuilder() { + if (disclosureTextBuilder_ == null) { + disclosureTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.References, - com.google.maps.places.v1.References.Builder, - com.google.maps.places.v1.ReferencesOrBuilder>( - getReferences(), getParentForChildren(), isClean()); - references_ = null; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisclosureText(), getParentForChildren(), isClean()); + disclosureText_ = null; } - return referencesBuilder_; + return disclosureTextBuilder_; } @java.lang.Override @@ -16473,201 +16407,214 @@ public com.google.maps.places.v1.Place.GenerativeSummary getDefaultInstanceForTy } } - public interface AreaSummaryOrBuilder + public interface ContainingPlaceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.AreaSummary) + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ContainingPlace) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The resource name of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. */ - java.util.List getContentBlocksList(); + java.lang.String getName(); /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The resource name of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. */ - com.google.maps.places.v1.ContentBlock getContentBlocks(int index); + com.google.protobuf.ByteString getNameBytes(); /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The place id of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string id = 2; + * + * @return The id. */ - int getContentBlocksCount(); + java.lang.String getId(); /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The place id of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string id = 2; + * + * @return The bytes for id. */ - java.util.List - getContentBlocksOrBuilderList(); - - /** - * - * - *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
-     * 
- * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index); - } + com.google.protobuf.ByteString getIdBytes(); + } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
+   * Info about the place in which this place is located.
    * 
* - * Protobuf type {@code google.maps.places.v1.Place.AreaSummary} + * Protobuf type {@code google.maps.places.v1.Place.ContainingPlace} */ - public static final class AreaSummary extends com.google.protobuf.GeneratedMessageV3 + public static final class ContainingPlace extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.AreaSummary) - AreaSummaryOrBuilder { + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ContainingPlace) + ContainingPlaceOrBuilder { private static final long serialVersionUID = 0L; - // Use AreaSummary.newBuilder() to construct. - private AreaSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ContainingPlace.newBuilder() to construct. + private ContainingPlace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AreaSummary() { - contentBlocks_ = java.util.Collections.emptyList(); + private ContainingPlace() { + name_ = ""; + id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AreaSummary(); + return new ContainingPlace(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable + .internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.places.v1.Place.AreaSummary.class, - com.google.maps.places.v1.Place.AreaSummary.Builder.class); + com.google.maps.places.v1.Place.ContainingPlace.class, + com.google.maps.places.v1.Place.ContainingPlace.Builder.class); } - public static final int CONTENT_BLOCKS_FIELD_NUMBER = 4; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List contentBlocks_; + private volatile java.lang.Object name_ = ""; /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The resource name of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - @java.lang.Override - public java.util.List getContentBlocksList() { - return contentBlocks_; - } - - /** - * - * - *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
-     * 
+ * string name = 1 [(.google.api.resource_reference) = { ... } * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @return The name. */ @java.lang.Override - public java.util.List - getContentBlocksOrBuilderList() { - return contentBlocks_; + 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; + } } /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The resource name of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. */ @java.lang.Override - public int getContentBlocksCount() { - return contentBlocks_.size(); + 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 ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The place id of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string id = 2; + * + * @return The id. */ @java.lang.Override - public com.google.maps.places.v1.ContentBlock getContentBlocks(int index) { - return contentBlocks_.get(index); + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } /** * * *
-     * Content blocks that compose the area summary. Each block has a separate
-     * topic about the area.
+     * The place id of the place in which this place is located.
      * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string id = 2; + * + * @return The bytes for id. */ @java.lang.Override - public com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index) { - return contentBlocks_.get(index); + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -16684,8 +16631,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < contentBlocks_.size(); i++) { - output.writeMessage(4, contentBlocks_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } getUnknownFields().writeTo(output); } @@ -16696,8 +16646,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < contentBlocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contentBlocks_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16709,13 +16662,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.maps.places.v1.Place.AreaSummary)) { + if (!(obj instanceof com.google.maps.places.v1.Place.ContainingPlace)) { return super.equals(obj); } - com.google.maps.places.v1.Place.AreaSummary other = - (com.google.maps.places.v1.Place.AreaSummary) obj; + com.google.maps.places.v1.Place.ContainingPlace other = + (com.google.maps.places.v1.Place.ContainingPlace) obj; - if (!getContentBlocksList().equals(other.getContentBlocksList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16727,80 +16681,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getContentBlocksCount() > 0) { - hash = (37 * hash) + CONTENT_BLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getContentBlocksList().hashCode(); - } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom(byte[] data) + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.maps.places.v1.Place.AreaSummary parseDelimitedFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.AreaSummary parseDelimitedFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.AreaSummary parseFrom( + public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16817,7 +16771,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.maps.places.v1.Place.AreaSummary prototype) { + public static Builder newBuilder(com.google.maps.places.v1.Place.ContainingPlace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -16837,36 +16791,32 @@ protected Builder newBuilderForType( * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * Info about the place in which this place is located.
      * 
* - * Protobuf type {@code google.maps.places.v1.Place.AreaSummary} + * Protobuf type {@code google.maps.places.v1.Place.ContainingPlace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.AreaSummary) - com.google.maps.places.v1.Place.AreaSummaryOrBuilder { + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ContainingPlace) + com.google.maps.places.v1.Place.ContainingPlaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable + .internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.places.v1.Place.AreaSummary.class, - com.google.maps.places.v1.Place.AreaSummary.Builder.class); + com.google.maps.places.v1.Place.ContainingPlace.class, + com.google.maps.places.v1.Place.ContainingPlace.Builder.class); } - // Construct using com.google.maps.places.v1.Place.AreaSummary.newBuilder() + // Construct using com.google.maps.places.v1.Place.ContainingPlace.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -16877,30 +16827,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - if (contentBlocksBuilder_ == null) { - contentBlocks_ = java.util.Collections.emptyList(); - } else { - contentBlocks_ = null; - contentBlocksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + id_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; + .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; } @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummary getDefaultInstanceForType() { - return com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance(); + public com.google.maps.places.v1.Place.ContainingPlace getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance(); } @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummary build() { - com.google.maps.places.v1.Place.AreaSummary result = buildPartial(); + public com.google.maps.places.v1.Place.ContainingPlace build() { + com.google.maps.places.v1.Place.ContainingPlace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16908,10 +16853,9 @@ public com.google.maps.places.v1.Place.AreaSummary build() { } @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummary buildPartial() { - com.google.maps.places.v1.Place.AreaSummary result = - new com.google.maps.places.v1.Place.AreaSummary(this); - buildPartialRepeatedFields(result); + public com.google.maps.places.v1.Place.ContainingPlace buildPartial() { + com.google.maps.places.v1.Place.ContainingPlace result = + new com.google.maps.places.v1.Place.ContainingPlace(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -16919,20 +16863,14 @@ public com.google.maps.places.v1.Place.AreaSummary buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.maps.places.v1.Place.AreaSummary result) { - if (contentBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - contentBlocks_ = java.util.Collections.unmodifiableList(contentBlocks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.contentBlocks_ = contentBlocks_; - } else { - result.contentBlocks_ = contentBlocksBuilder_.build(); - } - } - - private void buildPartial0(com.google.maps.places.v1.Place.AreaSummary result) { + private void buildPartial0(com.google.maps.places.v1.Place.ContainingPlace result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } } @java.lang.Override @@ -16972,42 +16910,26 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.maps.places.v1.Place.AreaSummary) { - return mergeFrom((com.google.maps.places.v1.Place.AreaSummary) other); + if (other instanceof com.google.maps.places.v1.Place.ContainingPlace) { + return mergeFrom((com.google.maps.places.v1.Place.ContainingPlace) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.places.v1.Place.AreaSummary other) { - if (other == com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance()) return this; - if (contentBlocksBuilder_ == null) { - if (!other.contentBlocks_.isEmpty()) { - if (contentBlocks_.isEmpty()) { - contentBlocks_ = other.contentBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureContentBlocksIsMutable(); - contentBlocks_.addAll(other.contentBlocks_); - } - onChanged(); - } - } else { - if (!other.contentBlocks_.isEmpty()) { - if (contentBlocksBuilder_.isEmpty()) { - contentBlocksBuilder_.dispose(); - contentBlocksBuilder_ = null; - contentBlocks_ = other.contentBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - contentBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getContentBlocksFieldBuilder() - : null; - } else { - contentBlocksBuilder_.addAllMessages(other.contentBlocks_); - } - } + public Builder mergeFrom(com.google.maps.places.v1.Place.ContainingPlace other) { + if (other == com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -17035,19 +16957,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 34: + case 10: { - com.google.maps.places.v1.ContentBlock m = - input.readMessage( - com.google.maps.places.v1.ContentBlock.parser(), extensionRegistry); - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - contentBlocks_.add(m); - } else { - contentBlocksBuilder_.addMessage(m); - } + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; - } // case 34 + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17067,38 +16988,28 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List contentBlocks_ = - java.util.Collections.emptyList(); - - private void ensureContentBlocksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - contentBlocks_ = - new java.util.ArrayList(contentBlocks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.ContentBlock, - com.google.maps.places.v1.ContentBlock.Builder, - com.google.maps.places.v1.ContentBlockOrBuilder> - contentBlocksBuilder_; + private java.lang.Object name_ = ""; /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The resource name of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. */ - public java.util.List getContentBlocksList() { - if (contentBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(contentBlocks_); + 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 contentBlocksBuilder_.getMessageList(); + return (java.lang.String) ref; } } @@ -17106,17 +17017,22 @@ public java.util.List getContentBlocksLi * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The resource name of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. */ - public int getContentBlocksCount() { - if (contentBlocksBuilder_ == null) { - return contentBlocks_.size(); + 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 contentBlocksBuilder_.getCount(); + return (com.google.protobuf.ByteString) ref; } } @@ -17124,63 +17040,39 @@ public int getContentBlocksCount() { * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The resource name of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The name to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.ContentBlock getContentBlocks(int index) { - if (contentBlocksBuilder_ == null) { - return contentBlocks_.get(index); - } else { - return contentBlocksBuilder_.getMessage(index); + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The resource name of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public Builder setContentBlocks(int index, com.google.maps.places.v1.ContentBlock value) { - if (contentBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentBlocksIsMutable(); - contentBlocks_.set(index, value); - onChanged(); - } else { - contentBlocksBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string name = 1 [(.google.api.resource_reference) = { ... } * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @return This builder for chaining. */ - public Builder setContentBlocks( - int index, com.google.maps.places.v1.ContentBlock.Builder builderForValue) { - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - contentBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - contentBlocksBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -17188,272 +17080,134 @@ public Builder setContentBlocks( * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The resource name of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public Builder addContentBlocks(com.google.maps.places.v1.ContentBlock value) { - if (contentBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentBlocksIsMutable(); - contentBlocks_.add(value); - onChanged(); - } else { - contentBlocksBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string name = 1 [(.google.api.resource_reference) = { ... } * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder addContentBlocks(int index, com.google.maps.places.v1.ContentBlock value) { - if (contentBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentBlocksIsMutable(); - contentBlocks_.add(index, value); - onChanged(); - } else { - contentBlocksBuilder_.addMessage(index, value); + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
- * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public Builder addContentBlocks( - com.google.maps.places.v1.ContentBlock.Builder builderForValue) { - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - contentBlocks_.add(builderForValue.build()); - onChanged(); - } else { - contentBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } + private java.lang.Object id_ = ""; /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The place id of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public Builder addContentBlocks( - int index, com.google.maps.places.v1.ContentBlock.Builder builderForValue) { - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - contentBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - contentBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string id = 2; * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @return The id. */ - public Builder addAllContentBlocks( - java.lang.Iterable values) { - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contentBlocks_); - onChanged(); + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; } else { - contentBlocksBuilder_.addAllMessages(values); + return (java.lang.String) ref; } - return this; } /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The place id of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public Builder clearContentBlocks() { - if (contentBlocksBuilder_ == null) { - contentBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - contentBlocksBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string id = 2; * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @return The bytes for id. */ - public Builder removeContentBlocks(int index) { - if (contentBlocksBuilder_ == null) { - ensureContentBlocksIsMutable(); - contentBlocks_.remove(index); - onChanged(); + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; } else { - contentBlocksBuilder_.remove(index); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The place id of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public com.google.maps.places.v1.ContentBlock.Builder getContentBlocksBuilder(int index) { - return getContentBlocksFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string id = 2; * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @param value The id to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.ContentBlockOrBuilder getContentBlocksOrBuilder(int index) { - if (contentBlocksBuilder_ == null) { - return contentBlocks_.get(index); - } else { - return contentBlocksBuilder_.getMessageOrBuilder(index); + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The place id of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public java.util.List - getContentBlocksOrBuilderList() { - if (contentBlocksBuilder_ != null) { - return contentBlocksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(contentBlocks_); - } - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string id = 2; * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @return This builder for chaining. */ - public com.google.maps.places.v1.ContentBlock.Builder addContentBlocksBuilder() { - return getContentBlocksFieldBuilder() - .addBuilder(com.google.maps.places.v1.ContentBlock.getDefaultInstance()); + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } /** * * *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
+       * The place id of the place in which this place is located.
        * 
* - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; - */ - public com.google.maps.places.v1.ContentBlock.Builder addContentBlocksBuilder(int index) { - return getContentBlocksFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.ContentBlock.getDefaultInstance()); - } - - /** - * - * - *
-       * Content blocks that compose the area summary. Each block has a separate
-       * topic about the area.
-       * 
+ * string id = 2; * - * repeated .google.maps.places.v1.ContentBlock content_blocks = 4; + * @param value The bytes for id to set. + * @return This builder for chaining. */ - public java.util.List - getContentBlocksBuilderList() { - return getContentBlocksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.ContentBlock, - com.google.maps.places.v1.ContentBlock.Builder, - com.google.maps.places.v1.ContentBlockOrBuilder> - getContentBlocksFieldBuilder() { - if (contentBlocksBuilder_ == null) { - contentBlocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.ContentBlock, - com.google.maps.places.v1.ContentBlock.Builder, - com.google.maps.places.v1.ContentBlockOrBuilder>( - contentBlocks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - contentBlocks_ = null; + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return contentBlocksBuilder_; + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } @java.lang.Override @@ -17468,24 +17222,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.AreaSummary) + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ContainingPlace) } - // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.AreaSummary) - private static final com.google.maps.places.v1.Place.AreaSummary DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ContainingPlace) + private static final com.google.maps.places.v1.Place.ContainingPlace DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.AreaSummary(); + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ContainingPlace(); } - public static com.google.maps.places.v1.Place.AreaSummary getDefaultInstance() { + public static com.google.maps.places.v1.Place.ContainingPlace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AreaSummary parsePartialFrom( + public ContainingPlace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17505,203 +17259,253 @@ public AreaSummary parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummary getDefaultInstanceForType() { + public com.google.maps.places.v1.Place.ContainingPlace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ContainingPlaceOrBuilder + public interface ReviewSummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ContainingPlace) + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.ReviewSummary) com.google.protobuf.MessageOrBuilder { /** * * *
-     * The resource name of the place in which this place is located.
+     * The summary of user reviews.
      * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The name. + * @return Whether the text field is set. */ - java.lang.String getName(); + boolean hasText(); /** * * *
-     * The resource name of the place in which this place is located.
+     * The summary of user reviews.
      * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The bytes for name. + * @return The text. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.type.LocalizedText getText(); /** * * *
-     * The place id of the place in which this place is located.
+     * The summary of user reviews.
      * 
* - * string id = 2; + * .google.type.LocalizedText text = 1; + */ + com.google.type.LocalizedTextOrBuilder getTextOrBuilder(); + + /** * - * @return The id. + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 2; + * + * @return The flagContentUri. */ - java.lang.String getId(); + java.lang.String getFlagContentUri(); /** * * *
-     * The place id of the place in which this place is located.
+     * A link where users can flag a problem with the summary.
      * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @return The bytes for id. + * @return The bytes for flagContentUri. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString getFlagContentUriBytes(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return Whether the disclosureText field is set. + */ + boolean hasDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return The disclosureText. + */ + com.google.type.LocalizedText getDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder(); } /** * * *
-   * Info about the place in which this place is located.
+   * AI-generated summary of the place using user reviews.
    * 
* - * Protobuf type {@code google.maps.places.v1.Place.ContainingPlace} + * Protobuf type {@code google.maps.places.v1.Place.ReviewSummary} */ - public static final class ContainingPlace extends com.google.protobuf.GeneratedMessageV3 + public static final class ReviewSummary extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ContainingPlace) - ContainingPlaceOrBuilder { + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.ReviewSummary) + ReviewSummaryOrBuilder { private static final long serialVersionUID = 0L; - // Use ContainingPlace.newBuilder() to construct. - private ContainingPlace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ReviewSummary.newBuilder() to construct. + private ReviewSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ContainingPlace() { - name_ = ""; - id_ = ""; + private ReviewSummary() { + flagContentUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ContainingPlace(); + return new ReviewSummary(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; + .internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable + .internal_static_google_maps_places_v1_Place_ReviewSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.places.v1.Place.ContainingPlace.class, - com.google.maps.places.v1.Place.ContainingPlace.Builder.class); + com.google.maps.places.v1.Place.ReviewSummary.class, + com.google.maps.places.v1.Place.ReviewSummary.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + private com.google.type.LocalizedText text_; /** * * *
-     * The resource name of the place in which this place is located.
+     * The summary of user reviews.
      * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The name. + * @return Whether the text field is set. */ @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; - } + public boolean hasText() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-     * The resource name of the place in which this place is located.
+     * The summary of user reviews.
      * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The bytes for name. + * @return The text. */ @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 com.google.type.LocalizedText getText() { + return text_ == null ? com.google.type.LocalizedText.getDefaultInstance() : text_; } - public static final int ID_FIELD_NUMBER = 2; + /** + * + * + *
+     * The summary of user reviews.
+     * 
+ * + * .google.type.LocalizedText text = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getTextOrBuilder() { + return text_ == null ? com.google.type.LocalizedText.getDefaultInstance() : text_; + } + + public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + private volatile java.lang.Object flagContentUri_ = ""; /** * * *
-     * The place id of the place in which this place is located.
+     * A link where users can flag a problem with the summary.
      * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @return The id. + * @return The flagContentUri. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + flagContentUri_ = s; return s; } } @@ -17710,26 +17514,85 @@ public java.lang.String getId() { * * *
-     * The place id of the place in which this place is located.
+     * A link where users can flag a problem with the summary.
      * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @return The bytes for id. + * @return The bytes for flagContentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; + flagContentUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int DISCLOSURE_TEXT_FIELD_NUMBER = 3; + private com.google.type.LocalizedText disclosureText_; + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return Whether the disclosureText field is set. + */ + @java.lang.Override + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return The disclosureText. + */ + @java.lang.Override + public com.google.type.LocalizedText getDisclosureText() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -17744,11 +17607,14 @@ 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getText()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, flagContentUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getDisclosureText()); } getUnknownFields().writeTo(output); } @@ -17759,11 +17625,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, flagContentUri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDisclosureText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -17775,14 +17644,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.maps.places.v1.Place.ContainingPlace)) { + if (!(obj instanceof com.google.maps.places.v1.Place.ReviewSummary)) { return super.equals(obj); } - com.google.maps.places.v1.Place.ContainingPlace other = - (com.google.maps.places.v1.Place.ContainingPlace) obj; + com.google.maps.places.v1.Place.ReviewSummary other = + (com.google.maps.places.v1.Place.ReviewSummary) obj; - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; + if (hasText() != other.hasText()) return false; + if (hasText()) { + if (!getText().equals(other.getText())) return false; + } + if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; + if (hasDisclosureText() != other.hasDisclosureText()) return false; + if (hasDisclosureText()) { + if (!getDisclosureText().equals(other.getDisclosureText())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17794,80 +17670,86 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); + if (hasText()) { + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + } + hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getFlagContentUri().hashCode(); + if (hasDisclosureText()) { + hash = (37 * hash) + DISCLOSURE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getDisclosureText().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom(byte[] data) + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.maps.places.v1.Place.ContainingPlace parseDelimitedFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.ContainingPlace parseDelimitedFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.places.v1.Place.ContainingPlace parseFrom( + public static com.google.maps.places.v1.Place.ReviewSummary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -17884,7 +17766,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.maps.places.v1.Place.ContainingPlace prototype) { + public static Builder newBuilder(com.google.maps.places.v1.Place.ReviewSummary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -17904,61 +17786,80 @@ protected Builder newBuilderForType( * * *
-     * Info about the place in which this place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * Protobuf type {@code google.maps.places.v1.Place.ContainingPlace} + * Protobuf type {@code google.maps.places.v1.Place.ReviewSummary} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ContainingPlace) - com.google.maps.places.v1.Place.ContainingPlaceOrBuilder { + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.ReviewSummary) + com.google.maps.places.v1.Place.ReviewSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; + .internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable + .internal_static_google_maps_places_v1_Place_ReviewSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.places.v1.Place.ContainingPlace.class, - com.google.maps.places.v1.Place.ContainingPlace.Builder.class); + com.google.maps.places.v1.Place.ReviewSummary.class, + com.google.maps.places.v1.Place.ReviewSummary.Builder.class); } - // Construct using com.google.maps.places.v1.Place.ContainingPlace.newBuilder() - private Builder() {} + // Construct using com.google.maps.places.v1.Place.ReviewSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTextFieldBuilder(); + getDisclosureTextFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; - id_ = ""; + text_ = null; + if (textBuilder_ != null) { + textBuilder_.dispose(); + textBuilder_ = null; + } + flagContentUri_ = ""; + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; + .internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor; } @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlace getDefaultInstanceForType() { - return com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance(); + public com.google.maps.places.v1.Place.ReviewSummary getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance(); } @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlace build() { - com.google.maps.places.v1.Place.ContainingPlace result = buildPartial(); + public com.google.maps.places.v1.Place.ReviewSummary build() { + com.google.maps.places.v1.Place.ReviewSummary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -17966,9 +17867,9 @@ public com.google.maps.places.v1.Place.ContainingPlace build() { } @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlace buildPartial() { - com.google.maps.places.v1.Place.ContainingPlace result = - new com.google.maps.places.v1.Place.ContainingPlace(this); + public com.google.maps.places.v1.Place.ReviewSummary buildPartial() { + com.google.maps.places.v1.Place.ReviewSummary result = + new com.google.maps.places.v1.Place.ReviewSummary(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -17976,14 +17877,22 @@ public com.google.maps.places.v1.Place.ContainingPlace buildPartial() { return result; } - private void buildPartial0(com.google.maps.places.v1.Place.ContainingPlace result) { + private void buildPartial0(com.google.maps.places.v1.Place.ReviewSummary result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; + result.text_ = textBuilder_ == null ? text_ : textBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.id_ = id_; + result.flagContentUri_ = flagContentUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disclosureText_ = + disclosureTextBuilder_ == null ? disclosureText_ : disclosureTextBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -18023,27 +17932,28 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.maps.places.v1.Place.ContainingPlace) { - return mergeFrom((com.google.maps.places.v1.Place.ContainingPlace) other); + if (other instanceof com.google.maps.places.v1.Place.ReviewSummary) { + return mergeFrom((com.google.maps.places.v1.Place.ReviewSummary) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.places.v1.Place.ContainingPlace other) { - if (other == com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()) + public Builder mergeFrom(com.google.maps.places.v1.Place.ReviewSummary other) { + if (other == com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); + if (other.hasText()) { + mergeText(other.getText()); } - if (!other.getId().isEmpty()) { - id_ = other.id_; + if (!other.getFlagContentUri().isEmpty()) { + flagContentUri_ = other.flagContentUri_; bitField0_ |= 0x00000002; onChanged(); } + if (other.hasDisclosureText()) { + mergeDisclosureText(other.getDisclosureText()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -18072,16 +17982,23 @@ public Builder mergeFrom( break; case 10: { - name_ = input.readStringRequireUtf8(); + input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - id_ = input.readStringRequireUtf8(); + flagContentUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage( + getDisclosureTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -18101,51 +18018,44 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object name_ = ""; + private com.google.type.LocalizedText text_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + textBuilder_; /** * * *
-       * The resource name of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The name. + * @return Whether the text 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 hasText() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * The resource name of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; * - * @return The bytes for name. + * @return The text. */ - 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.type.LocalizedText getText() { + if (textBuilder_ == null) { + return text_ == null ? com.google.type.LocalizedText.getDefaultInstance() : text_; } else { - return (com.google.protobuf.ByteString) ref; + return textBuilder_.getMessage(); } } @@ -18153,19 +18063,20 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-       * The resource name of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The name to set. - * @return This builder for chaining. + * .google.type.LocalizedText text = 1; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setText(com.google.type.LocalizedText value) { + if (textBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + } else { + textBuilder_.setMessage(value); } - name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -18175,16 +18086,18 @@ public Builder setName(java.lang.String value) { * * *
-       * The resource name of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. + * .google.type.LocalizedText text = 1; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setText(com.google.type.LocalizedText.Builder builderForValue) { + if (textBuilder_ == null) { + text_ = builderForValue.build(); + } else { + textBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -18193,44 +18106,127 @@ public Builder clearName() { * * *
-       * The resource name of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } + * .google.type.LocalizedText text = 1; + */ + public Builder mergeText(com.google.type.LocalizedText value) { + if (textBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && text_ != null + && text_ != com.google.type.LocalizedText.getDefaultInstance()) { + getTextBuilder().mergeFrom(value); + } else { + text_ = value; + } + } else { + textBuilder_.mergeFrom(value); + } + if (text_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
+       * The summary of user reviews.
+       * 
+ * + * .google.type.LocalizedText text = 1; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearText() { + bitField0_ = (bitField0_ & ~0x00000001); + text_ = null; + if (textBuilder_ != null) { + textBuilder_.dispose(); + textBuilder_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object id_ = ""; + /** + * + * + *
+       * The summary of user reviews.
+       * 
+ * + * .google.type.LocalizedText text = 1; + */ + public com.google.type.LocalizedText.Builder getTextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTextFieldBuilder().getBuilder(); + } /** * * *
-       * The place id of the place in which this place is located.
+       * The summary of user reviews.
        * 
* - * string id = 2; + * .google.type.LocalizedText text = 1; + */ + public com.google.type.LocalizedTextOrBuilder getTextOrBuilder() { + if (textBuilder_ != null) { + return textBuilder_.getMessageOrBuilder(); + } else { + return text_ == null ? com.google.type.LocalizedText.getDefaultInstance() : text_; + } + } + + /** * - * @return The id. + * + *
+       * The summary of user reviews.
+       * 
+ * + * .google.type.LocalizedText text = 1; */ - public java.lang.String getId() { - java.lang.Object ref = id_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getTextFieldBuilder() { + if (textBuilder_ == null) { + textBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getText(), getParentForChildren(), isClean()); + text_ = null; + } + return textBuilder_; + } + + private java.lang.Object flagContentUri_ = ""; + + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 2; + * + * @return The flagContentUri. + */ + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + flagContentUri_ = s; return s; } else { return (java.lang.String) ref; @@ -18241,19 +18237,19 @@ public java.lang.String getId() { * * *
-       * The place id of the place in which this place is located.
+       * A link where users can flag a problem with the summary.
        * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @return The bytes for id. + * @return The bytes for flagContentUri. */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; + flagContentUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -18264,19 +18260,19 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-       * The place id of the place in which this place is located.
+       * A link where users can flag a problem with the summary.
        * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @param value The id to set. + * @param value The flagContentUri to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setFlagContentUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + flagContentUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -18286,15 +18282,15 @@ public Builder setId(java.lang.String value) { * * *
-       * The place id of the place in which this place is located.
+       * A link where users can flag a problem with the summary.
        * 
* - * string id = 2; + * string flag_content_uri = 2; * * @return This builder for chaining. */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); + public Builder clearFlagContentUri() { + flagContentUri_ = getDefaultInstance().getFlagContentUri(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -18304,25 +18300,237 @@ public Builder clearId() { * * *
-       * The place id of the place in which this place is located.
+       * A link where users can flag a problem with the summary.
        * 
* - * string id = 2; + * string flag_content_uri = 2; * - * @param value The bytes for id to set. + * @param value The bytes for flagContentUri to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + flagContentUri_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + private com.google.type.LocalizedText disclosureText_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + disclosureTextBuilder_; + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return Whether the disclosureText field is set. + */ + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + * + * @return The disclosureText. + */ + public com.google.type.LocalizedText getDisclosureText() { + if (disclosureTextBuilder_ == null) { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } else { + return disclosureTextBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public Builder setDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disclosureText_ = value; + } else { + disclosureTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public Builder setDisclosureText(com.google.type.LocalizedText.Builder builderForValue) { + if (disclosureTextBuilder_ == null) { + disclosureText_ = builderForValue.build(); + } else { + disclosureTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public Builder mergeDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && disclosureText_ != null + && disclosureText_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisclosureTextBuilder().mergeFrom(value); + } else { + disclosureText_ = value; + } + } else { + disclosureTextBuilder_.mergeFrom(value); + } + if (disclosureText_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public Builder clearDisclosureText() { + bitField0_ = (bitField0_ & ~0x00000004); + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public com.google.type.LocalizedText.Builder getDisclosureTextBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDisclosureTextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + if (disclosureTextBuilder_ != null) { + return disclosureTextBuilder_.getMessageOrBuilder(); + } else { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisclosureTextFieldBuilder() { + if (disclosureTextBuilder_ == null) { + disclosureTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisclosureText(), getParentForChildren(), isClean()); + disclosureText_ = null; + } + return disclosureTextBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18335,24 +18543,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ContainingPlace) + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.ReviewSummary) } - // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ContainingPlace) - private static final com.google.maps.places.v1.Place.ContainingPlace DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.ReviewSummary) + private static final com.google.maps.places.v1.Place.ReviewSummary DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ContainingPlace(); + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.ReviewSummary(); } - public static com.google.maps.places.v1.Place.ContainingPlace getDefaultInstance() { + public static com.google.maps.places.v1.Place.ReviewSummary getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ContainingPlace parsePartialFrom( + public ReviewSummary parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18372,5718 +18580,9920 @@ public ContainingPlace parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlace getDefaultInstanceForType() { + public com.google.maps.places.v1.Place.ReviewSummary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - private int bitField1_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + public interface EvChargeAmenitySummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.EvChargeAmenitySummary) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * This Place's resource name, in `places/{place_id}` format.  Can be used to
-   * look up the Place.
-   * 
- * - * string name = 1; - * - * @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; - } + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + boolean hasOverview(); + + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + com.google.maps.places.v1.ContentBlock getOverview(); + + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder(); + + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return Whether the coffee field is set. + */ + boolean hasCoffee(); + + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return The coffee. + */ + com.google.maps.places.v1.ContentBlock getCoffee(); + + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getCoffeeOrBuilder(); + + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return Whether the restaurant field is set. + */ + boolean hasRestaurant(); + + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return The restaurant. + */ + com.google.maps.places.v1.ContentBlock getRestaurant(); + + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getRestaurantOrBuilder(); + + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return Whether the store field is set. + */ + boolean hasStore(); + + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return The store. + */ + com.google.maps.places.v1.ContentBlock getStore(); + + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getStoreOrBuilder(); + + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + java.lang.String getFlagContentUri(); + + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + com.google.protobuf.ByteString getFlagContentUriBytes(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return Whether the disclosureText field is set. + */ + boolean hasDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return The disclosureText. + */ + com.google.type.LocalizedText getDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder(); } /** * * *
-   * This Place's resource name, in `places/{place_id}` format.  Can be used to
-   * look up the Place.
+   * The summary of amenities near the EV charging station. This only applies to
+   * places with type `electric_vehicle_charging_station`. The `overview` field
+   * is guaranteed to be provided while the other fields are optional.
    * 
* - * string name = 1; - * - * @return The bytes for name. + * Protobuf type {@code google.maps.places.v1.Place.EvChargeAmenitySummary} */ - @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 EvChargeAmenitySummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.EvChargeAmenitySummary) + EvChargeAmenitySummaryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EvChargeAmenitySummary.newBuilder() to construct. + private EvChargeAmenitySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int ID_FIELD_NUMBER = 2; + private EvChargeAmenitySummary() { + flagContentUri_ = ""; + } - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EvChargeAmenitySummary(); + } - /** - * - * - *
-   * The unique identifier of a place.
-   * 
- * - * string id = 2; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor; } - } - /** - * - * - *
-   * The unique identifier of a place.
-   * 
- * - * string id = 2; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.EvChargeAmenitySummary.class, + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder.class); } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 31; - private com.google.type.LocalizedText displayName_; + private int bitField0_; + public static final int OVERVIEW_FIELD_NUMBER = 1; + private com.google.maps.places.v1.ContentBlock overview_; - /** - * - * - *
-   * The localized name of the place, suitable as a short human-readable
-   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
-   * 
- * - * .google.type.LocalizedText display_name = 31; - * - * @return Whether the displayName field is set. - */ - @java.lang.Override - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + @java.lang.Override + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
-   * The localized name of the place, suitable as a short human-readable
-   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
-   * 
- * - * .google.type.LocalizedText display_name = 31; - * - * @return The displayName. - */ - @java.lang.Override - public com.google.type.LocalizedText getDisplayName() { - return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; - } + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getOverview() { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } - /** - * - * - *
-   * The localized name of the place, suitable as a short human-readable
-   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
-   * 
- * - * .google.type.LocalizedText display_name = 31; - */ - @java.lang.Override - public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { - return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; - } + /** + * + * + *
+     * An overview of the available amenities. This is guaranteed to be
+     * provided.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder() { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } - public static final int TYPES_FIELD_NUMBER = 5; + public static final int COFFEE_FIELD_NUMBER = 2; + private com.google.maps.places.v1.ContentBlock coffee_; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList types_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return Whether the coffee field is set. + */ + @java.lang.Override + public boolean hasCoffee() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
-   * A set of type tags for this result. For example, "political" and
-   * "locality". For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * repeated string types = 5; - * - * @return A list containing the types. - */ - public com.google.protobuf.ProtocolStringList getTypesList() { - return types_; - } + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return The coffee. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getCoffee() { + return coffee_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : coffee_; + } - /** - * - * - *
-   * A set of type tags for this result. For example, "political" and
-   * "locality". For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * repeated string types = 5; - * - * @return The count of types. - */ - public int getTypesCount() { - return types_.size(); - } + /** + * + * + *
+     * A summary of the nearby coffee options.
+     * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getCoffeeOrBuilder() { + return coffee_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : coffee_; + } - /** - * - * - *
-   * A set of type tags for this result. For example, "political" and
-   * "locality". For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * repeated string types = 5; - * - * @param index The index of the element to return. - * @return The types at the given index. - */ - public java.lang.String getTypes(int index) { - return types_.get(index); - } + public static final int RESTAURANT_FIELD_NUMBER = 3; + private com.google.maps.places.v1.ContentBlock restaurant_; - /** - * - * - *
-   * A set of type tags for this result. For example, "political" and
-   * "locality". For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * repeated string types = 5; - * - * @param index The index of the value to return. - * @return The bytes of the types at the given index. - */ - public com.google.protobuf.ByteString getTypesBytes(int index) { - return types_.getByteString(index); - } + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return Whether the restaurant field is set. + */ + @java.lang.Override + public boolean hasRestaurant() { + return ((bitField0_ & 0x00000004) != 0); + } - public static final int PRIMARY_TYPE_FIELD_NUMBER = 50; + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return The restaurant. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getRestaurant() { + return restaurant_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : restaurant_; + } - @SuppressWarnings("serial") - private volatile java.lang.Object primaryType_ = ""; + /** + * + * + *
+     * A summary of the nearby restaurants.
+     * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getRestaurantOrBuilder() { + return restaurant_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : restaurant_; + } - /** - * - * - *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-   * place can only have a single primary type.  For the complete list of
-   * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * string primary_type = 50; - * - * @return The primaryType. - */ - @java.lang.Override - public java.lang.String getPrimaryType() { - java.lang.Object ref = primaryType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - primaryType_ = s; - return s; + public static final int STORE_FIELD_NUMBER = 4; + private com.google.maps.places.v1.ContentBlock store_; + + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return Whether the store field is set. + */ + @java.lang.Override + public boolean hasStore() { + return ((bitField0_ & 0x00000008) != 0); } - } - /** - * - * - *
-   * The primary type of the given result. This type must one of the Places API
-   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-   * place can only have a single primary type.  For the complete list of
-   * possible values, see Table A and Table B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * string primary_type = 50; - * - * @return The bytes for primaryType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrimaryTypeBytes() { - java.lang.Object ref = primaryType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - primaryType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return The store. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getStore() { + return store_ == null ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() : store_; } - } - - public static final int PRIMARY_TYPE_DISPLAY_NAME_FIELD_NUMBER = 32; - private com.google.type.LocalizedText primaryTypeDisplayName_; - - /** - * - * - *
-   * The display name of the primary type, localized to the request language if
-   * applicable. For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - * - * @return Whether the primaryTypeDisplayName field is set. - */ - @java.lang.Override - public boolean hasPrimaryTypeDisplayName() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * The display name of the primary type, localized to the request language if
-   * applicable. For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - * - * @return The primaryTypeDisplayName. - */ - @java.lang.Override - public com.google.type.LocalizedText getPrimaryTypeDisplayName() { - return primaryTypeDisplayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : primaryTypeDisplayName_; - } - /** - * - * - *
-   * The display name of the primary type, localized to the request language if
-   * applicable. For the complete list of possible values, see Table A and Table
-   * B at
-   * https://developers.google.com/maps/documentation/places/web-service/place-types
-   * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - */ - @java.lang.Override - public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder() { - return primaryTypeDisplayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : primaryTypeDisplayName_; - } + /** + * + * + *
+     * A summary of the nearby gas stations.
+     * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getStoreOrBuilder() { + return store_ == null ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() : store_; + } - public static final int NATIONAL_PHONE_NUMBER_FIELD_NUMBER = 7; + public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object nationalPhoneNumber_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object flagContentUri_ = ""; - /** - * - * - *
-   * A human-readable phone number for the place, in national format.
-   * 
- * - * string national_phone_number = 7; - * - * @return The nationalPhoneNumber. - */ - @java.lang.Override - public java.lang.String getNationalPhoneNumber() { - java.lang.Object ref = nationalPhoneNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nationalPhoneNumber_ = s; - return s; + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + @java.lang.Override + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } } - } - /** - * - * - *
-   * A human-readable phone number for the place, in national format.
-   * 
- * - * string national_phone_number = 7; - * - * @return The bytes for nationalPhoneNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { - java.lang.Object ref = nationalPhoneNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nationalPhoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - public static final int INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER = 8; + public static final int DISCLOSURE_TEXT_FIELD_NUMBER = 6; + private com.google.type.LocalizedText disclosureText_; - @SuppressWarnings("serial") - private volatile java.lang.Object internationalPhoneNumber_ = ""; + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return Whether the disclosureText field is set. + */ + @java.lang.Override + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000010) != 0); + } - /** - * - * - *
-   * A human-readable phone number for the place, in international format.
-   * 
- * - * string international_phone_number = 8; - * - * @return The internationalPhoneNumber. - */ - @java.lang.Override - public java.lang.String getInternationalPhoneNumber() { - java.lang.Object ref = internationalPhoneNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internationalPhoneNumber_ = s; - return s; + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return The disclosureText. + */ + @java.lang.Override + public com.google.type.LocalizedText getDisclosureText() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } - } - /** - * - * - *
-   * A human-readable phone number for the place, in international format.
-   * 
- * - * string international_phone_number = 8; - * - * @return The bytes for internationalPhoneNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { - java.lang.Object ref = internationalPhoneNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - internationalPhoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; } - } - public static final int FORMATTED_ADDRESS_FIELD_NUMBER = 9; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private volatile java.lang.Object formattedAddress_ = ""; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
-   * A full, human-readable address for this place.
-   * 
- * - * string formatted_address = 9; - * - * @return The formattedAddress. - */ - @java.lang.Override - public java.lang.String getFormattedAddress() { - java.lang.Object ref = formattedAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - formattedAddress_ = s; - return s; + memoizedIsInitialized = 1; + return true; } - } - /** - * - * - *
-   * A full, human-readable address for this place.
-   * 
- * - * string formatted_address = 9; - * - * @return The bytes for formattedAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFormattedAddressBytes() { - java.lang.Object ref = formattedAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - formattedAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCoffee()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getRestaurant()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStore()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, flagContentUri_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getDisclosureText()); + } + getUnknownFields().writeTo(output); } - } - public static final int SHORT_FORMATTED_ADDRESS_FIELD_NUMBER = 51; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private volatile java.lang.Object shortFormattedAddress_ = ""; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCoffee()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRestaurant()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStore()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, flagContentUri_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDisclosureText()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-   * A short, human-readable address for this place.
-   * 
- * - * string short_formatted_address = 51; - * - * @return The shortFormattedAddress. - */ - @java.lang.Override - public java.lang.String getShortFormattedAddress() { - java.lang.Object ref = shortFormattedAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortFormattedAddress_ = s; - return s; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place.EvChargeAmenitySummary)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.EvChargeAmenitySummary other = + (com.google.maps.places.v1.Place.EvChargeAmenitySummary) obj; + + if (hasOverview() != other.hasOverview()) return false; + if (hasOverview()) { + if (!getOverview().equals(other.getOverview())) return false; + } + if (hasCoffee() != other.hasCoffee()) return false; + if (hasCoffee()) { + if (!getCoffee().equals(other.getCoffee())) return false; + } + if (hasRestaurant() != other.hasRestaurant()) return false; + if (hasRestaurant()) { + if (!getRestaurant().equals(other.getRestaurant())) return false; + } + if (hasStore() != other.hasStore()) return false; + if (hasStore()) { + if (!getStore().equals(other.getStore())) return false; + } + if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; + if (hasDisclosureText() != other.hasDisclosureText()) return false; + if (hasDisclosureText()) { + if (!getDisclosureText().equals(other.getDisclosureText())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - /** - * - * - *
-   * A short, human-readable address for this place.
-   * 
- * - * string short_formatted_address = 51; - * - * @return The bytes for shortFormattedAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getShortFormattedAddressBytes() { - java.lang.Object ref = shortFormattedAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - shortFormattedAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOverview()) { + hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + } + if (hasCoffee()) { + hash = (37 * hash) + COFFEE_FIELD_NUMBER; + hash = (53 * hash) + getCoffee().hashCode(); + } + if (hasRestaurant()) { + hash = (37 * hash) + RESTAURANT_FIELD_NUMBER; + hash = (53 * hash) + getRestaurant().hashCode(); + } + if (hasStore()) { + hash = (37 * hash) + STORE_FIELD_NUMBER; + hash = (53 * hash) + getStore().hashCode(); + } + hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getFlagContentUri().hashCode(); + if (hasDisclosureText()) { + hash = (37 * hash) + DISCLOSURE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getDisclosureText().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - } - public static final int POSTAL_ADDRESS_FIELD_NUMBER = 90; - private com.google.type.PostalAddress postalAddress_; + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * The address in postal address format.
-   * 
- * - * .google.type.PostalAddress postal_address = 90; - * - * @return Whether the postalAddress field is set. - */ - @java.lang.Override - public boolean hasPostalAddress() { - return ((bitField0_ & 0x00000004) != 0); - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-   * The address in postal address format.
-   * 
- * - * .google.type.PostalAddress postal_address = 90; - * - * @return The postalAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getPostalAddress() { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * The address in postal address format.
-   * 
- * - * .google.type.PostalAddress postal_address = 90; - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int ADDRESS_COMPONENTS_FIELD_NUMBER = 10; + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private java.util.List addressComponents_; + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-   * Repeated components for each locality level.
-   * Note the following facts about the address_components[] array:
-   * - The array of address components may contain more components than the
-   * formatted_address.
-   * - The array does not necessarily include all the political entities that
-   * contain an address, apart from those included in the formatted_address. To
-   * retrieve all the political entities that contain a specific address, you
-   * should use reverse geocoding, passing the latitude/longitude of the address
-   * as a parameter to the request.
-   * - The format of the response is not guaranteed to remain the same between
-   * requests. In particular, the number of address_components varies based on
-   * the address requested and can change over time for the same address. A
-   * component can change position in the array. The type of the component can
-   * change. A particular component may be missing in a later response.
-   * 
- * - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - @java.lang.Override - public java.util.List - getAddressComponentsList() { - return addressComponents_; - } - - /** - * - * - *
-   * Repeated components for each locality level.
-   * Note the following facts about the address_components[] array:
-   * - The array of address components may contain more components than the
-   * formatted_address.
-   * - The array does not necessarily include all the political entities that
-   * contain an address, apart from those included in the formatted_address. To
-   * retrieve all the political entities that contain a specific address, you
-   * should use reverse geocoding, passing the latitude/longitude of the address
-   * as a parameter to the request.
-   * - The format of the response is not guaranteed to remain the same between
-   * requests. In particular, the number of address_components varies based on
-   * the address requested and can change over time for the same address. A
-   * component can change position in the array. The type of the component can
-   * change. A particular component may be missing in a later response.
-   * 
- * - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - @java.lang.Override - public java.util.List - getAddressComponentsOrBuilderList() { - return addressComponents_; - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Repeated components for each locality level.
-   * Note the following facts about the address_components[] array:
-   * - The array of address components may contain more components than the
-   * formatted_address.
-   * - The array does not necessarily include all the political entities that
-   * contain an address, apart from those included in the formatted_address. To
-   * retrieve all the political entities that contain a specific address, you
-   * should use reverse geocoding, passing the latitude/longitude of the address
-   * as a parameter to the request.
-   * - The format of the response is not guaranteed to remain the same between
-   * requests. In particular, the number of address_components varies based on
-   * the address requested and can change over time for the same address. A
-   * component can change position in the array. The type of the component can
-   * change. A particular component may be missing in a later response.
-   * 
- * - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - @java.lang.Override - public int getAddressComponentsCount() { - return addressComponents_.size(); - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Repeated components for each locality level.
-   * Note the following facts about the address_components[] array:
-   * - The array of address components may contain more components than the
-   * formatted_address.
-   * - The array does not necessarily include all the political entities that
-   * contain an address, apart from those included in the formatted_address. To
-   * retrieve all the political entities that contain a specific address, you
-   * should use reverse geocoding, passing the latitude/longitude of the address
-   * as a parameter to the request.
-   * - The format of the response is not guaranteed to remain the same between
-   * requests. In particular, the number of address_components varies based on
-   * the address requested and can change over time for the same address. A
-   * component can change position in the array. The type of the component can
-   * change. A particular component may be missing in a later response.
-   * 
- * - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { - return addressComponents_.get(index); - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
-   * Repeated components for each locality level.
-   * Note the following facts about the address_components[] array:
-   * - The array of address components may contain more components than the
-   * formatted_address.
-   * - The array does not necessarily include all the political entities that
-   * contain an address, apart from those included in the formatted_address. To
-   * retrieve all the political entities that contain a specific address, you
-   * should use reverse geocoding, passing the latitude/longitude of the address
-   * as a parameter to the request.
-   * - The format of the response is not guaranteed to remain the same between
-   * requests. In particular, the number of address_components varies based on
-   * the address requested and can change over time for the same address. A
-   * component can change position in the array. The type of the component can
-   * change. A particular component may be missing in a later response.
-   * 
- * - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( - int index) { - return addressComponents_.get(index); - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final int PLUS_CODE_FIELD_NUMBER = 11; - private com.google.maps.places.v1.Place.PlusCode plusCode_; + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Plus code of the place location lat/long.
-   * 
- * - * .google.maps.places.v1.Place.PlusCode plus_code = 11; - * - * @return Whether the plusCode field is set. - */ - @java.lang.Override - public boolean hasPlusCode() { - return ((bitField0_ & 0x00000008) != 0); - } + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Plus code of the place location lat/long.
-   * 
- * - * .google.maps.places.v1.Place.PlusCode plus_code = 11; - * - * @return The plusCode. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.PlusCode getPlusCode() { - return plusCode_ == null - ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() - : plusCode_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
-   * Plus code of the place location lat/long.
-   * 
- * - * .google.maps.places.v1.Place.PlusCode plus_code = 11; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { - return plusCode_ == null - ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() - : plusCode_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int LOCATION_FIELD_NUMBER = 12; - private com.google.type.LatLng location_; + public static Builder newBuilder( + com.google.maps.places.v1.Place.EvChargeAmenitySummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-   * The position of this place.
-   * 
- * - * .google.type.LatLng location = 12; - * - * @return Whether the location field is set. - */ - @java.lang.Override - public boolean hasLocation() { - return ((bitField0_ & 0x00000010) != 0); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
-   * The position of this place.
-   * 
- * - * .google.type.LatLng location = 12; - * - * @return The location. - */ - @java.lang.Override - public com.google.type.LatLng getLocation() { - return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
-   * The position of this place.
-   * 
- * - * .google.type.LatLng location = 12; - */ - @java.lang.Override - public com.google.type.LatLngOrBuilder getLocationOrBuilder() { - return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; - } + /** + * + * + *
+     * The summary of amenities near the EV charging station. This only applies to
+     * places with type `electric_vehicle_charging_station`. The `overview` field
+     * is guaranteed to be provided while the other fields are optional.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.EvChargeAmenitySummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.EvChargeAmenitySummary) + com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor; + } - public static final int VIEWPORT_FIELD_NUMBER = 13; - private com.google.geo.type.Viewport viewport_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.EvChargeAmenitySummary.class, + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder.class); + } - /** - * - * - *
-   * A viewport suitable for displaying the place on an average-sized map. This
-   * viewport should not be used as the physical boundary or the service area of
-   * the business.
-   * 
- * - * .google.geo.type.Viewport viewport = 13; - * - * @return Whether the viewport field is set. - */ - @java.lang.Override - public boolean hasViewport() { - return ((bitField0_ & 0x00000020) != 0); - } + // Construct using com.google.maps.places.v1.Place.EvChargeAmenitySummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * - * - *
-   * A viewport suitable for displaying the place on an average-sized map. This
-   * viewport should not be used as the physical boundary or the service area of
-   * the business.
-   * 
- * - * .google.geo.type.Viewport viewport = 13; - * - * @return The viewport. - */ - @java.lang.Override - public com.google.geo.type.Viewport getViewport() { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * - * - *
-   * A viewport suitable for displaying the place on an average-sized map. This
-   * viewport should not be used as the physical boundary or the service area of
-   * the business.
-   * 
- * - * .google.geo.type.Viewport viewport = 13; - */ - @java.lang.Override - public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOverviewFieldBuilder(); + getCoffeeFieldBuilder(); + getRestaurantFieldBuilder(); + getStoreFieldBuilder(); + getDisclosureTextFieldBuilder(); + } + } - public static final int RATING_FIELD_NUMBER = 14; - private double rating_ = 0D; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + coffee_ = null; + if (coffeeBuilder_ != null) { + coffeeBuilder_.dispose(); + coffeeBuilder_ = null; + } + restaurant_ = null; + if (restaurantBuilder_ != null) { + restaurantBuilder_.dispose(); + restaurantBuilder_ = null; + } + store_ = null; + if (storeBuilder_ != null) { + storeBuilder_.dispose(); + storeBuilder_ = null; + } + flagContentUri_ = ""; + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } + return this; + } - /** - * - * - *
-   * A rating between 1.0 and 5.0, based on user reviews of this place.
-   * 
- * - * double rating = 14; - * - * @return The rating. - */ - @java.lang.Override - public double getRating() { - return rating_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor; + } - public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 15; + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummary getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object googleMapsUri_ = ""; + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummary build() { + com.google.maps.places.v1.Place.EvChargeAmenitySummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
-   * A URL providing more information about this place.
-   * 
- * - * string google_maps_uri = 15; - * - * @return The googleMapsUri. - */ - @java.lang.Override - public java.lang.String getGoogleMapsUri() { - java.lang.Object ref = googleMapsUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - googleMapsUri_ = s; - return s; - } - } + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummary buildPartial() { + com.google.maps.places.v1.Place.EvChargeAmenitySummary result = + new com.google.maps.places.v1.Place.EvChargeAmenitySummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
-   * A URL providing more information about this place.
-   * 
- * - * string google_maps_uri = 15; - * - * @return The bytes for googleMapsUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGoogleMapsUriBytes() { - java.lang.Object ref = googleMapsUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - googleMapsUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private void buildPartial0(com.google.maps.places.v1.Place.EvChargeAmenitySummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overview_ = overviewBuilder_ == null ? overview_ : overviewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coffee_ = coffeeBuilder_ == null ? coffee_ : coffeeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.restaurant_ = + restaurantBuilder_ == null ? restaurant_ : restaurantBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.store_ = storeBuilder_ == null ? store_ : storeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.flagContentUri_ = flagContentUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disclosureText_ = + disclosureTextBuilder_ == null ? disclosureText_ : disclosureTextBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } - public static final int WEBSITE_URI_FIELD_NUMBER = 16; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object websiteUri_ = ""; + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * - * - *
-   * The authoritative website for this place, e.g. a business' homepage.
-   * Note that for places that are part of a chain (e.g. an IKEA store), this
-   * will usually be the website for the individual store, not the overall
-   * chain.
-   * 
- * - * string website_uri = 16; - * - * @return The websiteUri. - */ - @java.lang.Override - public java.lang.String getWebsiteUri() { - java.lang.Object ref = websiteUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - websiteUri_ = s; - return s; - } - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - /** - * - * - *
-   * The authoritative website for this place, e.g. a business' homepage.
-   * Note that for places that are part of a chain (e.g. an IKEA store), this
-   * will usually be the website for the individual store, not the overall
-   * chain.
-   * 
- * - * string website_uri = 16; - * - * @return The bytes for websiteUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWebsiteUriBytes() { - java.lang.Object ref = websiteUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - websiteUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - public static final int REVIEWS_FIELD_NUMBER = 53; + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - @SuppressWarnings("serial") - private java.util.List reviews_; + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - /** - * - * - *
-   * List of reviews about this place, sorted by relevance. A maximum of 5
-   * reviews can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - @java.lang.Override - public java.util.List getReviewsList() { - return reviews_; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.EvChargeAmenitySummary) { + return mergeFrom((com.google.maps.places.v1.Place.EvChargeAmenitySummary) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-   * List of reviews about this place, sorted by relevance. A maximum of 5
-   * reviews can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - @java.lang.Override - public java.util.List - getReviewsOrBuilderList() { - return reviews_; - } + public Builder mergeFrom(com.google.maps.places.v1.Place.EvChargeAmenitySummary other) { + if (other == com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance()) + return this; + if (other.hasOverview()) { + mergeOverview(other.getOverview()); + } + if (other.hasCoffee()) { + mergeCoffee(other.getCoffee()); + } + if (other.hasRestaurant()) { + mergeRestaurant(other.getRestaurant()); + } + if (other.hasStore()) { + mergeStore(other.getStore()); + } + if (!other.getFlagContentUri().isEmpty()) { + flagContentUri_ = other.flagContentUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDisclosureText()) { + mergeDisclosureText(other.getDisclosureText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-   * List of reviews about this place, sorted by relevance. A maximum of 5
-   * reviews can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - @java.lang.Override - public int getReviewsCount() { - return reviews_.size(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-   * List of reviews about this place, sorted by relevance. A maximum of 5
-   * reviews can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - @java.lang.Override - public com.google.maps.places.v1.Review getReviews(int index) { - return reviews_.get(index); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOverviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCoffeeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRestaurantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getStoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + flagContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getDisclosureTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-   * List of reviews about this place, sorted by relevance. A maximum of 5
-   * reviews can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - @java.lang.Override - public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { - return reviews_.get(index); - } + private int bitField0_; - public static final int REGULAR_OPENING_HOURS_FIELD_NUMBER = 21; - private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; + private com.google.maps.places.v1.ContentBlock overview_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + overviewBuilder_; - /** - * - * - *
-   * The regular hours of operation. Note that if a place is always open (24
-   * hours), the `close` field will not be set. Clients can rely on always open
-   * (24 hours) being represented as an
-   * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-   * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-   * value `0`, and [minute][Point.minute] with value `0`.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; - * - * @return Whether the regularOpeningHours field is set. - */ - @java.lang.Override - public boolean hasRegularOpeningHours() { - return ((bitField0_ & 0x00000040) != 0); - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
-   * The regular hours of operation. Note that if a place is always open (24
-   * hours), the `close` field will not be set. Clients can rely on always open
-   * (24 hours) being represented as an
-   * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-   * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-   * value `0`, and [minute][Point.minute] with value `0`.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; - * - * @return The regularOpeningHours. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { - return regularOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : regularOpeningHours_; - } - - /** - * - * - *
-   * The regular hours of operation. Note that if a place is always open (24
-   * hours), the `close` field will not be set. Clients can rely on always open
-   * (24 hours) being represented as an
-   * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-   * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-   * value `0`, and [minute][Point.minute] with value `0`.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { - return regularOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : regularOpeningHours_; - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + public com.google.maps.places.v1.ContentBlock getOverview() { + if (overviewBuilder_ == null) { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } else { + return overviewBuilder_.getMessage(); + } + } - public static final int UTC_OFFSET_MINUTES_FIELD_NUMBER = 22; - private int utcOffsetMinutes_ = 0; + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder setOverview(com.google.maps.places.v1.ContentBlock value) { + if (overviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + } else { + overviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-   * Number of minutes this place's timezone is currently offset from UTC.
-   * This is expressed in minutes to support timezones that are offset by
-   * fractions of an hour, e.g. X hours and 15 minutes.
-   * 
- * - * optional int32 utc_offset_minutes = 22; - * - * @return Whether the utcOffsetMinutes field is set. - */ - @java.lang.Override - public boolean hasUtcOffsetMinutes() { - return ((bitField0_ & 0x00000080) != 0); - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder setOverview(com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (overviewBuilder_ == null) { + overview_ = builderForValue.build(); + } else { + overviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-   * Number of minutes this place's timezone is currently offset from UTC.
-   * This is expressed in minutes to support timezones that are offset by
-   * fractions of an hour, e.g. X hours and 15 minutes.
-   * 
- * - * optional int32 utc_offset_minutes = 22; - * - * @return The utcOffsetMinutes. - */ - @java.lang.Override - public int getUtcOffsetMinutes() { - return utcOffsetMinutes_; - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder mergeOverview(com.google.maps.places.v1.ContentBlock value) { + if (overviewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && overview_ != null + && overview_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getOverviewBuilder().mergeFrom(value); + } else { + overview_ = value; + } + } else { + overviewBuilder_.mergeFrom(value); + } + if (overview_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } - public static final int TIME_ZONE_FIELD_NUMBER = 88; - private com.google.type.TimeZone timeZone_; + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder clearOverview() { + bitField0_ = (bitField0_ & ~0x00000001); + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * IANA Time Zone Database time zone. For example "America/New_York".
-   * 
- * - * .google.type.TimeZone time_zone = 88; - * - * @return Whether the timeZone field is set. - */ - @java.lang.Override - public boolean hasTimeZone() { - return ((bitField0_ & 0x00000100) != 0); - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public com.google.maps.places.v1.ContentBlock.Builder getOverviewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOverviewFieldBuilder().getBuilder(); + } - /** - * - * - *
-   * IANA Time Zone Database time zone. For example "America/New_York".
-   * 
- * - * .google.type.TimeZone time_zone = 88; - * - * @return The timeZone. - */ - @java.lang.Override - public com.google.type.TimeZone getTimeZone() { - return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder() { + if (overviewBuilder_ != null) { + return overviewBuilder_.getMessageOrBuilder(); + } else { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } + } - /** - * - * - *
-   * IANA Time Zone Database time zone. For example "America/New_York".
-   * 
- * - * .google.type.TimeZone time_zone = 88; - */ - @java.lang.Override - public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { - return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; - } + /** + * + * + *
+       * An overview of the available amenities. This is guaranteed to be
+       * provided.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getOverviewFieldBuilder() { + if (overviewBuilder_ == null) { + overviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getOverview(), getParentForChildren(), isClean()); + overview_ = null; + } + return overviewBuilder_; + } - public static final int PHOTOS_FIELD_NUMBER = 54; + private com.google.maps.places.v1.ContentBlock coffee_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + coffeeBuilder_; - @SuppressWarnings("serial") - private java.util.List photos_; + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return Whether the coffee field is set. + */ + public boolean hasCoffee() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
-   * Information (including references) about photos of this place. A maximum of
-   * 10 photos can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Photo photos = 54; - */ - @java.lang.Override - public java.util.List getPhotosList() { - return photos_; - } - - /** - * - * - *
-   * Information (including references) about photos of this place. A maximum of
-   * 10 photos can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Photo photos = 54; - */ - @java.lang.Override - public java.util.List - getPhotosOrBuilderList() { - return photos_; - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + * + * @return The coffee. + */ + public com.google.maps.places.v1.ContentBlock getCoffee() { + if (coffeeBuilder_ == null) { + return coffee_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : coffee_; + } else { + return coffeeBuilder_.getMessage(); + } + } - /** - * - * - *
-   * Information (including references) about photos of this place. A maximum of
-   * 10 photos can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Photo photos = 54; - */ - @java.lang.Override - public int getPhotosCount() { - return photos_.size(); - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public Builder setCoffee(com.google.maps.places.v1.ContentBlock value) { + if (coffeeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + coffee_ = value; + } else { + coffeeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-   * Information (including references) about photos of this place. A maximum of
-   * 10 photos can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Photo photos = 54; - */ - @java.lang.Override - public com.google.maps.places.v1.Photo getPhotos(int index) { - return photos_.get(index); - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public Builder setCoffee(com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (coffeeBuilder_ == null) { + coffee_ = builderForValue.build(); + } else { + coffeeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-   * Information (including references) about photos of this place. A maximum of
-   * 10 photos can be returned.
-   * 
- * - * repeated .google.maps.places.v1.Photo photos = 54; - */ - @java.lang.Override - public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { - return photos_.get(index); - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public Builder mergeCoffee(com.google.maps.places.v1.ContentBlock value) { + if (coffeeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && coffee_ != null + && coffee_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getCoffeeBuilder().mergeFrom(value); + } else { + coffee_ = value; + } + } else { + coffeeBuilder_.mergeFrom(value); + } + if (coffee_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } - public static final int ADR_FORMAT_ADDRESS_FIELD_NUMBER = 24; + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public Builder clearCoffee() { + bitField0_ = (bitField0_ & ~0x00000002); + coffee_ = null; + if (coffeeBuilder_ != null) { + coffeeBuilder_.dispose(); + coffeeBuilder_ = null; + } + onChanged(); + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object adrFormatAddress_ = ""; + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public com.google.maps.places.v1.ContentBlock.Builder getCoffeeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCoffeeFieldBuilder().getBuilder(); + } - /** - * - * - *
-   * The place's address in adr microformat: http://microformats.org/wiki/adr.
-   * 
- * - * string adr_format_address = 24; - * - * @return The adrFormatAddress. - */ - @java.lang.Override - public java.lang.String getAdrFormatAddress() { - java.lang.Object ref = adrFormatAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - adrFormatAddress_ = s; - return s; - } - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getCoffeeOrBuilder() { + if (coffeeBuilder_ != null) { + return coffeeBuilder_.getMessageOrBuilder(); + } else { + return coffee_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : coffee_; + } + } - /** - * - * - *
-   * The place's address in adr microformat: http://microformats.org/wiki/adr.
-   * 
- * - * string adr_format_address = 24; - * - * @return The bytes for adrFormatAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAdrFormatAddressBytes() { - java.lang.Object ref = adrFormatAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - adrFormatAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+       * A summary of the nearby coffee options.
+       * 
+ * + * .google.maps.places.v1.ContentBlock coffee = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getCoffeeFieldBuilder() { + if (coffeeBuilder_ == null) { + coffeeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getCoffee(), getParentForChildren(), isClean()); + coffee_ = null; + } + return coffeeBuilder_; + } - public static final int BUSINESS_STATUS_FIELD_NUMBER = 25; - private int businessStatus_ = 0; + private com.google.maps.places.v1.ContentBlock restaurant_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + restaurantBuilder_; - /** - * - * - *
-   * The business status for the place.
-   * 
- * - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; - * - * @return The enum numeric value on the wire for businessStatus. - */ - @java.lang.Override - public int getBusinessStatusValue() { - return businessStatus_; - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return Whether the restaurant field is set. + */ + public boolean hasRestaurant() { + return ((bitField0_ & 0x00000004) != 0); + } - /** - * - * - *
-   * The business status for the place.
-   * 
- * - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; - * - * @return The businessStatus. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { - com.google.maps.places.v1.Place.BusinessStatus result = - com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); - return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; - } - - public static final int PRICE_LEVEL_FIELD_NUMBER = 26; - private int priceLevel_ = 0; + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + * + * @return The restaurant. + */ + public com.google.maps.places.v1.ContentBlock getRestaurant() { + if (restaurantBuilder_ == null) { + return restaurant_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : restaurant_; + } else { + return restaurantBuilder_.getMessage(); + } + } - /** - * - * - *
-   * Price level of the place.
-   * 
- * - * .google.maps.places.v1.PriceLevel price_level = 26; - * - * @return The enum numeric value on the wire for priceLevel. - */ - @java.lang.Override - public int getPriceLevelValue() { - return priceLevel_; - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public Builder setRestaurant(com.google.maps.places.v1.ContentBlock value) { + if (restaurantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + restaurant_ = value; + } else { + restaurantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
-   * Price level of the place.
-   * 
- * - * .google.maps.places.v1.PriceLevel price_level = 26; - * - * @return The priceLevel. - */ - @java.lang.Override - public com.google.maps.places.v1.PriceLevel getPriceLevel() { - com.google.maps.places.v1.PriceLevel result = - com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); - return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public Builder setRestaurant(com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (restaurantBuilder_ == null) { + restaurant_ = builderForValue.build(); + } else { + restaurantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static final int ATTRIBUTIONS_FIELD_NUMBER = 27; + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public Builder mergeRestaurant(com.google.maps.places.v1.ContentBlock value) { + if (restaurantBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && restaurant_ != null + && restaurant_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getRestaurantBuilder().mergeFrom(value); + } else { + restaurant_ = value; + } + } else { + restaurantBuilder_.mergeFrom(value); + } + if (restaurant_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } - @SuppressWarnings("serial") - private java.util.List attributions_; + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public Builder clearRestaurant() { + bitField0_ = (bitField0_ & ~0x00000004); + restaurant_ = null; + if (restaurantBuilder_ != null) { + restaurantBuilder_.dispose(); + restaurantBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * A set of data provider that must be shown with this result.
-   * 
- * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - @java.lang.Override - public java.util.List getAttributionsList() { - return attributions_; - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public com.google.maps.places.v1.ContentBlock.Builder getRestaurantBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRestaurantFieldBuilder().getBuilder(); + } - /** - * - * - *
-   * A set of data provider that must be shown with this result.
-   * 
- * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - @java.lang.Override - public java.util.List - getAttributionsOrBuilderList() { - return attributions_; - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getRestaurantOrBuilder() { + if (restaurantBuilder_ != null) { + return restaurantBuilder_.getMessageOrBuilder(); + } else { + return restaurant_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : restaurant_; + } + } - /** - * - * - *
-   * A set of data provider that must be shown with this result.
-   * 
- * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - @java.lang.Override - public int getAttributionsCount() { - return attributions_.size(); - } + /** + * + * + *
+       * A summary of the nearby restaurants.
+       * 
+ * + * .google.maps.places.v1.ContentBlock restaurant = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getRestaurantFieldBuilder() { + if (restaurantBuilder_ == null) { + restaurantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getRestaurant(), getParentForChildren(), isClean()); + restaurant_ = null; + } + return restaurantBuilder_; + } - /** - * - * - *
-   * A set of data provider that must be shown with this result.
-   * 
- * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { - return attributions_.get(index); - } + private com.google.maps.places.v1.ContentBlock store_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + storeBuilder_; - /** - * - * - *
-   * A set of data provider that must be shown with this result.
-   * 
- * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder(int index) { - return attributions_.get(index); - } + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return Whether the store field is set. + */ + public boolean hasStore() { + return ((bitField0_ & 0x00000008) != 0); + } - public static final int USER_RATING_COUNT_FIELD_NUMBER = 28; - private int userRatingCount_ = 0; + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + * + * @return The store. + */ + public com.google.maps.places.v1.ContentBlock getStore() { + if (storeBuilder_ == null) { + return store_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : store_; + } else { + return storeBuilder_.getMessage(); + } + } - /** - * - * - *
-   * The total number of reviews (with or without text) for this place.
-   * 
- * - * optional int32 user_rating_count = 28; - * - * @return Whether the userRatingCount field is set. - */ - @java.lang.Override - public boolean hasUserRatingCount() { - return ((bitField0_ & 0x00000200) != 0); - } - - /** - * - * - *
-   * The total number of reviews (with or without text) for this place.
-   * 
- * - * optional int32 user_rating_count = 28; - * - * @return The userRatingCount. - */ - @java.lang.Override - public int getUserRatingCount() { - return userRatingCount_; - } + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public Builder setStore(com.google.maps.places.v1.ContentBlock value) { + if (storeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + store_ = value; + } else { + storeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - public static final int ICON_MASK_BASE_URI_FIELD_NUMBER = 29; + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public Builder setStore(com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (storeBuilder_ == null) { + store_ = builderForValue.build(); + } else { + storeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object iconMaskBaseUri_ = ""; + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public Builder mergeStore(com.google.maps.places.v1.ContentBlock value) { + if (storeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && store_ != null + && store_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getStoreBuilder().mergeFrom(value); + } else { + store_ = value; + } + } else { + storeBuilder_.mergeFrom(value); + } + if (store_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } - /** - * - * - *
-   * A truncated URL to an icon mask. User can access different icon type by
-   * appending type suffix to the end (eg, ".svg" or ".png").
-   * 
- * - * string icon_mask_base_uri = 29; - * - * @return The iconMaskBaseUri. - */ - @java.lang.Override - public java.lang.String getIconMaskBaseUri() { - java.lang.Object ref = iconMaskBaseUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconMaskBaseUri_ = s; - return s; - } - } + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public Builder clearStore() { + bitField0_ = (bitField0_ & ~0x00000008); + store_ = null; + if (storeBuilder_ != null) { + storeBuilder_.dispose(); + storeBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * A truncated URL to an icon mask. User can access different icon type by
-   * appending type suffix to the end (eg, ".svg" or ".png").
-   * 
- * - * string icon_mask_base_uri = 29; - * - * @return The bytes for iconMaskBaseUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { - java.lang.Object ref = iconMaskBaseUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconMaskBaseUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public com.google.maps.places.v1.ContentBlock.Builder getStoreBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStoreFieldBuilder().getBuilder(); + } - public static final int ICON_BACKGROUND_COLOR_FIELD_NUMBER = 30; + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getStoreOrBuilder() { + if (storeBuilder_ != null) { + return storeBuilder_.getMessageOrBuilder(); + } else { + return store_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : store_; + } + } - @SuppressWarnings("serial") - private volatile java.lang.Object iconBackgroundColor_ = ""; + /** + * + * + *
+       * A summary of the nearby gas stations.
+       * 
+ * + * .google.maps.places.v1.ContentBlock store = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getStoreFieldBuilder() { + if (storeBuilder_ == null) { + storeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getStore(), getParentForChildren(), isClean()); + store_ = null; + } + return storeBuilder_; + } - /** - * - * - *
-   * Background color for icon_mask in hex format, e.g. #909CE1.
-   * 
- * - * string icon_background_color = 30; - * - * @return The iconBackgroundColor. - */ - @java.lang.Override - public java.lang.String getIconBackgroundColor() { - java.lang.Object ref = iconBackgroundColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconBackgroundColor_ = s; - return s; - } - } + private java.lang.Object flagContentUri_ = ""; - /** - * - * - *
-   * Background color for icon_mask in hex format, e.g. #909CE1.
-   * 
- * - * string icon_background_color = 30; - * - * @return The bytes for iconBackgroundColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIconBackgroundColorBytes() { - java.lang.Object ref = iconBackgroundColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconBackgroundColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 5; + * + * @return The flagContentUri. + */ + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int TAKEOUT_FIELD_NUMBER = 33; - private boolean takeout_ = false; + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 5; + * + * @return The bytes for flagContentUri. + */ + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-   * Specifies if the business supports takeout.
-   * 
- * - * optional bool takeout = 33; - * - * @return Whether the takeout field is set. - */ - @java.lang.Override - public boolean hasTakeout() { - return ((bitField0_ & 0x00000400) != 0); - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 5; + * + * @param value The flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flagContentUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - * - * - *
-   * Specifies if the business supports takeout.
-   * 
- * - * optional bool takeout = 33; - * - * @return The takeout. - */ - @java.lang.Override - public boolean getTakeout() { - return takeout_; - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearFlagContentUri() { + flagContentUri_ = getDefaultInstance().getFlagContentUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - public static final int DELIVERY_FIELD_NUMBER = 34; - private boolean delivery_ = false; + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 5; + * + * @param value The bytes for flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flagContentUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - * - * - *
-   * Specifies if the business supports delivery.
-   * 
- * - * optional bool delivery = 34; - * - * @return Whether the delivery field is set. - */ - @java.lang.Override - public boolean hasDelivery() { - return ((bitField0_ & 0x00000800) != 0); - } + private com.google.type.LocalizedText disclosureText_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + disclosureTextBuilder_; - /** - * - * - *
-   * Specifies if the business supports delivery.
-   * 
- * - * optional bool delivery = 34; - * - * @return The delivery. - */ - @java.lang.Override - public boolean getDelivery() { - return delivery_; - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return Whether the disclosureText field is set. + */ + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000020) != 0); + } - public static final int DINE_IN_FIELD_NUMBER = 35; - private boolean dineIn_ = false; + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + * + * @return The disclosureText. + */ + public com.google.type.LocalizedText getDisclosureText() { + if (disclosureTextBuilder_ == null) { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } else { + return disclosureTextBuilder_.getMessage(); + } + } - /** - * - * - *
-   * Specifies if the business supports indoor or outdoor seating options.
-   * 
- * - * optional bool dine_in = 35; - * - * @return Whether the dineIn field is set. - */ - @java.lang.Override - public boolean hasDineIn() { - return ((bitField0_ & 0x00001000) != 0); - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public Builder setDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disclosureText_ = value; + } else { + disclosureTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - /** - * - * - *
-   * Specifies if the business supports indoor or outdoor seating options.
-   * 
- * - * optional bool dine_in = 35; - * - * @return The dineIn. - */ - @java.lang.Override - public boolean getDineIn() { - return dineIn_; - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public Builder setDisclosureText(com.google.type.LocalizedText.Builder builderForValue) { + if (disclosureTextBuilder_ == null) { + disclosureText_ = builderForValue.build(); + } else { + disclosureTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - public static final int CURBSIDE_PICKUP_FIELD_NUMBER = 36; - private boolean curbsidePickup_ = false; + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public Builder mergeDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && disclosureText_ != null + && disclosureText_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisclosureTextBuilder().mergeFrom(value); + } else { + disclosureText_ = value; + } + } else { + disclosureTextBuilder_.mergeFrom(value); + } + if (disclosureText_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } - /** - * - * - *
-   * Specifies if the business supports curbside pickup.
-   * 
- * - * optional bool curbside_pickup = 36; - * - * @return Whether the curbsidePickup field is set. - */ - @java.lang.Override - public boolean hasCurbsidePickup() { - return ((bitField0_ & 0x00002000) != 0); - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public Builder clearDisclosureText() { + bitField0_ = (bitField0_ & ~0x00000020); + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * Specifies if the business supports curbside pickup.
-   * 
- * - * optional bool curbside_pickup = 36; - * - * @return The curbsidePickup. - */ - @java.lang.Override - public boolean getCurbsidePickup() { - return curbsidePickup_; - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public com.google.type.LocalizedText.Builder getDisclosureTextBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDisclosureTextFieldBuilder().getBuilder(); + } - public static final int RESERVABLE_FIELD_NUMBER = 38; - private boolean reservable_ = false; + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + if (disclosureTextBuilder_ != null) { + return disclosureTextBuilder_.getMessageOrBuilder(); + } else { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } + } - /** - * - * - *
-   * Specifies if the place supports reservations.
-   * 
- * - * optional bool reservable = 38; - * - * @return Whether the reservable field is set. - */ - @java.lang.Override - public boolean hasReservable() { - return ((bitField0_ & 0x00004000) != 0); - } + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisclosureTextFieldBuilder() { + if (disclosureTextBuilder_ == null) { + disclosureTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisclosureText(), getParentForChildren(), isClean()); + disclosureText_ = null; + } + return disclosureTextBuilder_; + } - /** - * - * - *
-   * Specifies if the place supports reservations.
-   * 
- * - * optional bool reservable = 38; - * - * @return The reservable. - */ - @java.lang.Override - public boolean getReservable() { - return reservable_; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.EvChargeAmenitySummary) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.EvChargeAmenitySummary) + private static final com.google.maps.places.v1.Place.EvChargeAmenitySummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.EvChargeAmenitySummary(); + } + + public static com.google.maps.places.v1.Place.EvChargeAmenitySummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvChargeAmenitySummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int SERVES_BREAKFAST_FIELD_NUMBER = 39; - private boolean servesBreakfast_ = false; + public interface NeighborhoodSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.maps.places.v1.Place.NeighborhoodSummary) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Specifies if the place serves breakfast.
-   * 
- * - * optional bool serves_breakfast = 39; - * - * @return Whether the servesBreakfast field is set. - */ - @java.lang.Override - public boolean hasServesBreakfast() { - return ((bitField0_ & 0x00008000) != 0); + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + boolean hasOverview(); + + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + com.google.maps.places.v1.ContentBlock getOverview(); + + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder(); + + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return The description. + */ + com.google.maps.places.v1.ContentBlock getDescription(); + + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + com.google.maps.places.v1.ContentBlockOrBuilder getDescriptionOrBuilder(); + + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 3; + * + * @return The flagContentUri. + */ + java.lang.String getFlagContentUri(); + + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 3; + * + * @return The bytes for flagContentUri. + */ + com.google.protobuf.ByteString getFlagContentUriBytes(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return Whether the disclosureText field is set. + */ + boolean hasDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return The disclosureText. + */ + com.google.type.LocalizedText getDisclosureText(); + + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder(); } /** * * *
-   * Specifies if the place serves breakfast.
+   * A summary of points of interest near the place.
    * 
* - * optional bool serves_breakfast = 39; - * - * @return The servesBreakfast. + * Protobuf type {@code google.maps.places.v1.Place.NeighborhoodSummary} */ - @java.lang.Override - public boolean getServesBreakfast() { - return servesBreakfast_; - } + public static final class NeighborhoodSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.maps.places.v1.Place.NeighborhoodSummary) + NeighborhoodSummaryOrBuilder { + private static final long serialVersionUID = 0L; - public static final int SERVES_LUNCH_FIELD_NUMBER = 40; - private boolean servesLunch_ = false; + // Use NeighborhoodSummary.newBuilder() to construct. + private NeighborhoodSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * - * - *
-   * Specifies if the place serves lunch.
-   * 
- * - * optional bool serves_lunch = 40; - * - * @return Whether the servesLunch field is set. - */ - @java.lang.Override - public boolean hasServesLunch() { - return ((bitField0_ & 0x00010000) != 0); - } - - /** - * - * - *
-   * Specifies if the place serves lunch.
-   * 
- * - * optional bool serves_lunch = 40; - * - * @return The servesLunch. - */ - @java.lang.Override - public boolean getServesLunch() { - return servesLunch_; - } + private NeighborhoodSummary() { + flagContentUri_ = ""; + } - public static final int SERVES_DINNER_FIELD_NUMBER = 41; - private boolean servesDinner_ = false; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NeighborhoodSummary(); + } - /** - * - * - *
-   * Specifies if the place serves dinner.
-   * 
- * - * optional bool serves_dinner = 41; - * - * @return Whether the servesDinner field is set. - */ - @java.lang.Override - public boolean hasServesDinner() { - return ((bitField0_ & 0x00020000) != 0); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor; + } - /** - * - * - *
-   * Specifies if the place serves dinner.
-   * 
- * - * optional bool serves_dinner = 41; - * - * @return The servesDinner. - */ - @java.lang.Override - public boolean getServesDinner() { - return servesDinner_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.NeighborhoodSummary.class, + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder.class); + } - public static final int SERVES_BEER_FIELD_NUMBER = 42; - private boolean servesBeer_ = false; + private int bitField0_; + public static final int OVERVIEW_FIELD_NUMBER = 1; + private com.google.maps.places.v1.ContentBlock overview_; - /** - * - * - *
-   * Specifies if the place serves beer.
-   * 
- * - * optional bool serves_beer = 42; - * - * @return Whether the servesBeer field is set. - */ - @java.lang.Override - public boolean hasServesBeer() { - return ((bitField0_ & 0x00040000) != 0); - } + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + @java.lang.Override + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
-   * Specifies if the place serves beer.
-   * 
- * - * optional bool serves_beer = 42; - * - * @return The servesBeer. - */ - @java.lang.Override - public boolean getServesBeer() { - return servesBeer_; - } + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getOverview() { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } - public static final int SERVES_WINE_FIELD_NUMBER = 43; - private boolean servesWine_ = false; + /** + * + * + *
+     * An overview summary of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder() { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } - /** - * - * - *
-   * Specifies if the place serves wine.
-   * 
- * - * optional bool serves_wine = 43; - * - * @return Whether the servesWine field is set. - */ - @java.lang.Override - public boolean hasServesWine() { - return ((bitField0_ & 0x00080000) != 0); - } + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private com.google.maps.places.v1.ContentBlock description_; - /** - * - * - *
-   * Specifies if the place serves wine.
-   * 
- * - * optional bool serves_wine = 43; - * - * @return The servesWine. - */ - @java.lang.Override - public boolean getServesWine() { - return servesWine_; - } + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } - public static final int SERVES_BRUNCH_FIELD_NUMBER = 44; - private boolean servesBrunch_ = false; + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return The description. + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlock getDescription() { + return description_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : description_; + } - /** - * - * - *
-   * Specifies if the place serves brunch.
-   * 
- * - * optional bool serves_brunch = 44; - * - * @return Whether the servesBrunch field is set. - */ - @java.lang.Override - public boolean hasServesBrunch() { - return ((bitField0_ & 0x00100000) != 0); - } + /** + * + * + *
+     * A detailed description of the neighborhood.
+     * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + @java.lang.Override + public com.google.maps.places.v1.ContentBlockOrBuilder getDescriptionOrBuilder() { + return description_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : description_; + } - /** - * - * - *
-   * Specifies if the place serves brunch.
-   * 
- * - * optional bool serves_brunch = 44; - * - * @return The servesBrunch. - */ - @java.lang.Override - public boolean getServesBrunch() { - return servesBrunch_; - } + public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 3; - public static final int SERVES_VEGETARIAN_FOOD_FIELD_NUMBER = 45; - private boolean servesVegetarianFood_ = false; + @SuppressWarnings("serial") + private volatile java.lang.Object flagContentUri_ = ""; - /** - * - * - *
-   * Specifies if the place serves vegetarian food.
-   * 
- * - * optional bool serves_vegetarian_food = 45; - * - * @return Whether the servesVegetarianFood field is set. - */ - @java.lang.Override - public boolean hasServesVegetarianFood() { - return ((bitField0_ & 0x00200000) != 0); - } + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 3; + * + * @return The flagContentUri. + */ + @java.lang.Override + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } + } - /** - * - * - *
-   * Specifies if the place serves vegetarian food.
-   * 
- * - * optional bool serves_vegetarian_food = 45; - * - * @return The servesVegetarianFood. - */ - @java.lang.Override - public boolean getServesVegetarianFood() { - return servesVegetarianFood_; - } + /** + * + * + *
+     * A link where users can flag a problem with the summary.
+     * 
+ * + * string flag_content_uri = 3; + * + * @return The bytes for flagContentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int CURRENT_OPENING_HOURS_FIELD_NUMBER = 46; - private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; + public static final int DISCLOSURE_TEXT_FIELD_NUMBER = 4; + private com.google.type.LocalizedText disclosureText_; - /** - * - * - *
-   * The hours of operation for the next seven days (including today). The time
-   * period starts at midnight on the date of the request and ends at 11:59 pm
-   * six days later. This field includes the special_days subfield of all hours,
-   * set for dates that have exceptional hours.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - * - * @return Whether the currentOpeningHours field is set. - */ - @java.lang.Override - public boolean hasCurrentOpeningHours() { - return ((bitField0_ & 0x00400000) != 0); - } + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return Whether the disclosureText field is set. + */ + @java.lang.Override + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000004) != 0); + } - /** - * - * - *
-   * The hours of operation for the next seven days (including today). The time
-   * period starts at midnight on the date of the request and ends at 11:59 pm
-   * six days later. This field includes the special_days subfield of all hours,
-   * set for dates that have exceptional hours.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - * - * @return The currentOpeningHours. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { - return currentOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : currentOpeningHours_; - } + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return The disclosureText. + */ + @java.lang.Override + public com.google.type.LocalizedText getDisclosureText() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } - /** - * - * - *
-   * The hours of operation for the next seven days (including today). The time
-   * period starts at midnight on the date of the request and ends at 11:59 pm
-   * six days later. This field includes the special_days subfield of all hours,
-   * set for dates that have exceptional hours.
-   * 
- * - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { - return currentOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : currentOpeningHours_; - } + /** + * + * + *
+     * The AI disclosure message "Summarized with Gemini"
+     * (and its localized variants). This will be in the language specified in
+     * the request if available.
+     * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } - public static final int CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 47; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private java.util.List - currentSecondaryOpeningHours_; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
-   * Contains an array of entries for the next seven days including information
-   * about secondary hours of a business. Secondary hours are different from a
-   * business's main hours. For example, a restaurant can specify drive through
-   * hours or delivery hours as its secondary hours. This field populates the
-   * type subfield, which draws from a predefined list of opening hours types
-   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-   * place. This field includes the special_days subfield of all hours, set for
-   * dates that have exceptional hours.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * - */ - @java.lang.Override - public java.util.List - getCurrentSecondaryOpeningHoursList() { - return currentSecondaryOpeningHours_; - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
-   * Contains an array of entries for the next seven days including information
-   * about secondary hours of a business. Secondary hours are different from a
-   * business's main hours. For example, a restaurant can specify drive through
-   * hours or delivery hours as its secondary hours. This field populates the
-   * type subfield, which draws from a predefined list of opening hours types
-   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-   * place. This field includes the special_days subfield of all hours, set for
-   * dates that have exceptional hours.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * - */ - @java.lang.Override - public java.util.List - getCurrentSecondaryOpeningHoursOrBuilderList() { - return currentSecondaryOpeningHours_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDescription()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flagContentUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDisclosureText()); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
-   * Contains an array of entries for the next seven days including information
-   * about secondary hours of a business. Secondary hours are different from a
-   * business's main hours. For example, a restaurant can specify drive through
-   * hours or delivery hours as its secondary hours. This field populates the
-   * type subfield, which draws from a predefined list of opening hours types
-   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-   * place. This field includes the special_days subfield of all hours, set for
-   * dates that have exceptional hours.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * - */ - @java.lang.Override - public int getCurrentSecondaryOpeningHoursCount() { - return currentSecondaryOpeningHours_.size(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
-   * Contains an array of entries for the next seven days including information
-   * about secondary hours of a business. Secondary hours are different from a
-   * business's main hours. For example, a restaurant can specify drive through
-   * hours or delivery hours as its secondary hours. This field populates the
-   * type subfield, which draws from a predefined list of opening hours types
-   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-   * place. This field includes the special_days subfield of all hours, set for
-   * dates that have exceptional hours.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { - return currentSecondaryOpeningHours_.get(index); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOverview()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDescription()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flagContentUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDisclosureText()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-   * Contains an array of entries for the next seven days including information
-   * about secondary hours of a business. Secondary hours are different from a
-   * business's main hours. For example, a restaurant can specify drive through
-   * hours or delivery hours as its secondary hours. This field populates the
-   * type subfield, which draws from a predefined list of opening hours types
-   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-   * place. This field includes the special_days subfield of all hours, set for
-   * dates that have exceptional hours.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder - getCurrentSecondaryOpeningHoursOrBuilder(int index) { - return currentSecondaryOpeningHours_.get(index); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place.NeighborhoodSummary)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place.NeighborhoodSummary other = + (com.google.maps.places.v1.Place.NeighborhoodSummary) obj; - public static final int REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 49; + if (hasOverview() != other.hasOverview()) return false; + if (hasOverview()) { + if (!getOverview().equals(other.getOverview())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; + if (hasDisclosureText() != other.hasDisclosureText()) return false; + if (hasDisclosureText()) { + if (!getDisclosureText().equals(other.getDisclosureText())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @SuppressWarnings("serial") - private java.util.List - regularSecondaryOpeningHours_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOverview()) { + hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getOverview().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getFlagContentUri().hashCode(); + if (hasDisclosureText()) { + hash = (37 * hash) + DISCLOSURE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getDisclosureText().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
-   * Contains an array of entries for information about regular secondary hours
-   * of a business. Secondary hours are different from a business's main hours.
-   * For example, a restaurant can specify drive through hours or delivery hours
-   * as its secondary hours. This field populates the type subfield, which draws
-   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-   * PICKUP, or TAKEOUT) based on the types of the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * - */ - @java.lang.Override - public java.util.List - getRegularSecondaryOpeningHoursList() { - return regularSecondaryOpeningHours_; - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * Contains an array of entries for information about regular secondary hours
-   * of a business. Secondary hours are different from a business's main hours.
-   * For example, a restaurant can specify drive through hours or delivery hours
-   * as its secondary hours. This field populates the type subfield, which draws
-   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-   * PICKUP, or TAKEOUT) based on the types of the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * - */ - @java.lang.Override - public java.util.List - getRegularSecondaryOpeningHoursOrBuilderList() { - return regularSecondaryOpeningHours_; - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-   * Contains an array of entries for information about regular secondary hours
-   * of a business. Secondary hours are different from a business's main hours.
-   * For example, a restaurant can specify drive through hours or delivery hours
-   * as its secondary hours. This field populates the type subfield, which draws
-   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-   * PICKUP, or TAKEOUT) based on the types of the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * - */ - @java.lang.Override - public int getRegularSecondaryOpeningHoursCount() { - return regularSecondaryOpeningHours_.size(); - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-   * Contains an array of entries for information about regular secondary hours
-   * of a business. Secondary hours are different from a business's main hours.
-   * For example, a restaurant can specify drive through hours or delivery hours
-   * as its secondary hours. This field populates the type subfield, which draws
-   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-   * PICKUP, or TAKEOUT) based on the types of the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { - return regularSecondaryOpeningHours_.get(index); - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-   * Contains an array of entries for information about regular secondary hours
-   * of a business. Secondary hours are different from a business's main hours.
-   * For example, a restaurant can specify drive through hours or delivery hours
-   * as its secondary hours. This field populates the type subfield, which draws
-   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-   * PICKUP, or TAKEOUT) based on the types of the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * - */ - @java.lang.Override - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder - getRegularSecondaryOpeningHoursOrBuilder(int index) { - return regularSecondaryOpeningHours_.get(index); - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int EDITORIAL_SUMMARY_FIELD_NUMBER = 52; - private com.google.type.LocalizedText editorialSummary_; + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-   * Contains a summary of the place. A summary is comprised of a textual
-   * overview, and also includes the language code for these if applicable.
-   * Summary text must be presented as-is and can not be modified or altered.
-   * 
- * - * .google.type.LocalizedText editorial_summary = 52; - * - * @return Whether the editorialSummary field is set. - */ - @java.lang.Override - public boolean hasEditorialSummary() { - return ((bitField0_ & 0x00800000) != 0); - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Contains a summary of the place. A summary is comprised of a textual
-   * overview, and also includes the language code for these if applicable.
-   * Summary text must be presented as-is and can not be modified or altered.
-   * 
- * - * .google.type.LocalizedText editorial_summary = 52; - * - * @return The editorialSummary. - */ - @java.lang.Override - public com.google.type.LocalizedText getEditorialSummary() { - return editorialSummary_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : editorialSummary_; - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Contains a summary of the place. A summary is comprised of a textual
-   * overview, and also includes the language code for these if applicable.
-   * Summary text must be presented as-is and can not be modified or altered.
-   * 
- * - * .google.type.LocalizedText editorial_summary = 52; - */ - @java.lang.Override - public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { - return editorialSummary_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : editorialSummary_; - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static final int OUTDOOR_SEATING_FIELD_NUMBER = 55; - private boolean outdoorSeating_ = false; + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-   * Place provides outdoor seating.
-   * 
- * - * optional bool outdoor_seating = 55; - * - * @return Whether the outdoorSeating field is set. - */ - @java.lang.Override - public boolean hasOutdoorSeating() { - return ((bitField0_ & 0x01000000) != 0); - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * - * - *
-   * Place provides outdoor seating.
-   * 
- * - * optional bool outdoor_seating = 55; - * - * @return The outdoorSeating. - */ - @java.lang.Override - public boolean getOutdoorSeating() { - return outdoorSeating_; - } + public static com.google.maps.places.v1.Place.NeighborhoodSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int LIVE_MUSIC_FIELD_NUMBER = 56; - private boolean liveMusic_ = false; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
-   * Place provides live music.
-   * 
- * - * optional bool live_music = 56; - * - * @return Whether the liveMusic field is set. - */ - @java.lang.Override - public boolean hasLiveMusic() { - return ((bitField0_ & 0x02000000) != 0); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
-   * Place provides live music.
-   * 
- * - * optional bool live_music = 56; - * - * @return The liveMusic. - */ - @java.lang.Override - public boolean getLiveMusic() { - return liveMusic_; - } + public static Builder newBuilder( + com.google.maps.places.v1.Place.NeighborhoodSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int MENU_FOR_CHILDREN_FIELD_NUMBER = 57; - private boolean menuForChildren_ = false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
-   * Place has a children's menu.
-   * 
- * - * optional bool menu_for_children = 57; - * - * @return Whether the menuForChildren field is set. - */ - @java.lang.Override - public boolean hasMenuForChildren() { - return ((bitField0_ & 0x04000000) != 0); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
-   * Place has a children's menu.
-   * 
- * - * optional bool menu_for_children = 57; - * - * @return The menuForChildren. - */ - @java.lang.Override - public boolean getMenuForChildren() { - return menuForChildren_; - } + /** + * + * + *
+     * A summary of points of interest near the place.
+     * 
+ * + * Protobuf type {@code google.maps.places.v1.Place.NeighborhoodSummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place.NeighborhoodSummary) + com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor; + } - public static final int SERVES_COCKTAILS_FIELD_NUMBER = 58; - private boolean servesCocktails_ = false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.NeighborhoodSummary.class, + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder.class); + } - /** - * - * - *
-   * Place serves cocktails.
-   * 
- * - * optional bool serves_cocktails = 58; - * - * @return Whether the servesCocktails field is set. - */ - @java.lang.Override - public boolean hasServesCocktails() { - return ((bitField0_ & 0x08000000) != 0); - } + // Construct using com.google.maps.places.v1.Place.NeighborhoodSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * - * - *
-   * Place serves cocktails.
-   * 
- * - * optional bool serves_cocktails = 58; - * - * @return The servesCocktails. - */ - @java.lang.Override - public boolean getServesCocktails() { - return servesCocktails_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int SERVES_DESSERT_FIELD_NUMBER = 59; - private boolean servesDessert_ = false; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOverviewFieldBuilder(); + getDescriptionFieldBuilder(); + getDisclosureTextFieldBuilder(); + } + } - /** - * - * - *
-   * Place serves dessert.
-   * 
- * - * optional bool serves_dessert = 59; - * - * @return Whether the servesDessert field is set. - */ - @java.lang.Override - public boolean hasServesDessert() { - return ((bitField0_ & 0x10000000) != 0); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + description_ = null; + if (descriptionBuilder_ != null) { + descriptionBuilder_.dispose(); + descriptionBuilder_ = null; + } + flagContentUri_ = ""; + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } + return this; + } - /** - * - * - *
-   * Place serves dessert.
-   * 
- * - * optional bool serves_dessert = 59; - * - * @return The servesDessert. - */ - @java.lang.Override - public boolean getServesDessert() { - return servesDessert_; - } - - public static final int SERVES_COFFEE_FIELD_NUMBER = 60; - private boolean servesCoffee_ = false; - - /** - * - * - *
-   * Place serves coffee.
-   * 
- * - * optional bool serves_coffee = 60; - * - * @return Whether the servesCoffee field is set. - */ - @java.lang.Override - public boolean hasServesCoffee() { - return ((bitField0_ & 0x20000000) != 0); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor; + } - /** - * - * - *
-   * Place serves coffee.
-   * 
- * - * optional bool serves_coffee = 60; - * - * @return The servesCoffee. - */ - @java.lang.Override - public boolean getServesCoffee() { - return servesCoffee_; - } + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummary getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance(); + } - public static final int GOOD_FOR_CHILDREN_FIELD_NUMBER = 62; - private boolean goodForChildren_ = false; + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummary build() { + com.google.maps.places.v1.Place.NeighborhoodSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
-   * Place is good for children.
-   * 
- * - * optional bool good_for_children = 62; - * - * @return Whether the goodForChildren field is set. - */ - @java.lang.Override - public boolean hasGoodForChildren() { - return ((bitField0_ & 0x40000000) != 0); - } + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummary buildPartial() { + com.google.maps.places.v1.Place.NeighborhoodSummary result = + new com.google.maps.places.v1.Place.NeighborhoodSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
-   * Place is good for children.
-   * 
- * - * optional bool good_for_children = 62; - * - * @return The goodForChildren. - */ - @java.lang.Override - public boolean getGoodForChildren() { - return goodForChildren_; - } + private void buildPartial0(com.google.maps.places.v1.Place.NeighborhoodSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.overview_ = overviewBuilder_ == null ? overview_ : overviewBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = + descriptionBuilder_ == null ? description_ : descriptionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.flagContentUri_ = flagContentUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disclosureText_ = + disclosureTextBuilder_ == null ? disclosureText_ : disclosureTextBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - public static final int ALLOWS_DOGS_FIELD_NUMBER = 63; - private boolean allowsDogs_ = false; + @java.lang.Override + public Builder clone() { + return super.clone(); + } - /** - * - * - *
-   * Place allows dogs.
-   * 
- * - * optional bool allows_dogs = 63; - * - * @return Whether the allowsDogs field is set. - */ - @java.lang.Override - public boolean hasAllowsDogs() { - return ((bitField0_ & 0x80000000) != 0); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - /** - * - * - *
-   * Place allows dogs.
-   * 
- * - * optional bool allows_dogs = 63; - * - * @return The allowsDogs. - */ - @java.lang.Override - public boolean getAllowsDogs() { - return allowsDogs_; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - public static final int RESTROOM_FIELD_NUMBER = 64; - private boolean restroom_ = false; + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } - /** - * - * - *
-   * Place has restroom.
-   * 
- * - * optional bool restroom = 64; - * - * @return Whether the restroom field is set. - */ - @java.lang.Override - public boolean hasRestroom() { - return ((bitField1_ & 0x00000001) != 0); - } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } - /** - * - * - *
-   * Place has restroom.
-   * 
- * - * optional bool restroom = 64; - * - * @return The restroom. - */ - @java.lang.Override - public boolean getRestroom() { - return restroom_; - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - public static final int GOOD_FOR_GROUPS_FIELD_NUMBER = 65; - private boolean goodForGroups_ = false; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place.NeighborhoodSummary) { + return mergeFrom((com.google.maps.places.v1.Place.NeighborhoodSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-   * Place accommodates groups.
-   * 
- * - * optional bool good_for_groups = 65; - * - * @return Whether the goodForGroups field is set. - */ - @java.lang.Override - public boolean hasGoodForGroups() { - return ((bitField1_ & 0x00000002) != 0); - } + public Builder mergeFrom(com.google.maps.places.v1.Place.NeighborhoodSummary other) { + if (other == com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance()) + return this; + if (other.hasOverview()) { + mergeOverview(other.getOverview()); + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + if (!other.getFlagContentUri().isEmpty()) { + flagContentUri_ = other.flagContentUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDisclosureText()) { + mergeDisclosureText(other.getDisclosureText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-   * Place accommodates groups.
-   * 
- * - * optional bool good_for_groups = 65; - * - * @return The goodForGroups. - */ - @java.lang.Override - public boolean getGoodForGroups() { - return goodForGroups_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER = 66; - private boolean goodForWatchingSports_ = false; - - /** - * - * - *
-   * Place is suitable for watching sports.
-   * 
- * - * optional bool good_for_watching_sports = 66; - * - * @return Whether the goodForWatchingSports field is set. - */ - @java.lang.Override - public boolean hasGoodForWatchingSports() { - return ((bitField1_ & 0x00000004) != 0); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOverviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDescriptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + flagContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDisclosureTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-   * Place is suitable for watching sports.
-   * 
- * - * optional bool good_for_watching_sports = 66; - * - * @return The goodForWatchingSports. - */ - @java.lang.Override - public boolean getGoodForWatchingSports() { - return goodForWatchingSports_; - } + private int bitField0_; - public static final int PAYMENT_OPTIONS_FIELD_NUMBER = 67; - private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; + private com.google.maps.places.v1.ContentBlock overview_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + overviewBuilder_; - /** - * - * - *
-   * Payment options the place accepts. If a payment option data is not
-   * available, the payment option field will be unset.
-   * 
- * - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; - * - * @return Whether the paymentOptions field is set. - */ - @java.lang.Override - public boolean hasPaymentOptions() { - return ((bitField1_ & 0x00000008) != 0); - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return Whether the overview field is set. + */ + public boolean hasOverview() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
-   * Payment options the place accepts. If a payment option data is not
-   * available, the payment option field will be unset.
-   * 
- * - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; - * - * @return The paymentOptions. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { - return paymentOptions_ == null - ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() - : paymentOptions_; - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + * + * @return The overview. + */ + public com.google.maps.places.v1.ContentBlock getOverview() { + if (overviewBuilder_ == null) { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } else { + return overviewBuilder_.getMessage(); + } + } - /** - * - * - *
-   * Payment options the place accepts. If a payment option data is not
-   * available, the payment option field will be unset.
-   * 
- * - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { - return paymentOptions_ == null - ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() - : paymentOptions_; - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder setOverview(com.google.maps.places.v1.ContentBlock value) { + if (overviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overview_ = value; + } else { + overviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static final int PARKING_OPTIONS_FIELD_NUMBER = 70; - private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder setOverview(com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (overviewBuilder_ == null) { + overview_ = builderForValue.build(); + } else { + overviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-   * Options of parking provided by the place.
-   * 
- * - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; - * - * @return Whether the parkingOptions field is set. - */ - @java.lang.Override - public boolean hasParkingOptions() { - return ((bitField1_ & 0x00000010) != 0); - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder mergeOverview(com.google.maps.places.v1.ContentBlock value) { + if (overviewBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && overview_ != null + && overview_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getOverviewBuilder().mergeFrom(value); + } else { + overview_ = value; + } + } else { + overviewBuilder_.mergeFrom(value); + } + if (overview_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } - /** - * - * - *
-   * Options of parking provided by the place.
-   * 
- * - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; - * - * @return The parkingOptions. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { - return parkingOptions_ == null - ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() - : parkingOptions_; - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public Builder clearOverview() { + bitField0_ = (bitField0_ & ~0x00000001); + overview_ = null; + if (overviewBuilder_ != null) { + overviewBuilder_.dispose(); + overviewBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * Options of parking provided by the place.
-   * 
- * - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { - return parkingOptions_ == null - ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() - : parkingOptions_; - } + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public com.google.maps.places.v1.ContentBlock.Builder getOverviewBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOverviewFieldBuilder().getBuilder(); + } - public static final int SUB_DESTINATIONS_FIELD_NUMBER = 71; + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getOverviewOrBuilder() { + if (overviewBuilder_ != null) { + return overviewBuilder_.getMessageOrBuilder(); + } else { + return overview_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : overview_; + } + } - @SuppressWarnings("serial") - private java.util.List subDestinations_; + /** + * + * + *
+       * An overview summary of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock overview = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getOverviewFieldBuilder() { + if (overviewBuilder_ == null) { + overviewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getOverview(), getParentForChildren(), isClean()); + overview_ = null; + } + return overviewBuilder_; + } - /** - * - * - *
-   * A list of sub destinations related to the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; - */ - @java.lang.Override - public java.util.List getSubDestinationsList() { - return subDestinations_; - } + private com.google.maps.places.v1.ContentBlock description_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + descriptionBuilder_; - /** - * - * - *
-   * A list of sub destinations related to the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; - */ - @java.lang.Override - public java.util.List - getSubDestinationsOrBuilderList() { - return subDestinations_; - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
-   * A list of sub destinations related to the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; - */ - @java.lang.Override - public int getSubDestinationsCount() { - return subDestinations_.size(); - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + * + * @return The description. + */ + public com.google.maps.places.v1.ContentBlock getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } - /** - * - * - *
-   * A list of sub destinations related to the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { - return subDestinations_.get(index); - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public Builder setDescription(com.google.maps.places.v1.ContentBlock value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + } else { + descriptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-   * A list of sub destinations related to the place.
-   * 
- * - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; - */ - @java.lang.Override - public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( - int index) { - return subDestinations_.get(index); - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public Builder setDescription( + com.google.maps.places.v1.ContentBlock.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static final int ACCESSIBILITY_OPTIONS_FIELD_NUMBER = 72; - private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public Builder mergeDescription(com.google.maps.places.v1.ContentBlock value) { + if (descriptionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && description_ != null + && description_ != com.google.maps.places.v1.ContentBlock.getDefaultInstance()) { + getDescriptionBuilder().mergeFrom(value); + } else { + description_ = value; + } + } else { + descriptionBuilder_.mergeFrom(value); + } + if (description_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } - /** - * - * - *
-   * Information about the accessibility options a place offers.
-   * 
- * - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * - * - * @return Whether the accessibilityOptions field is set. - */ - @java.lang.Override - public boolean hasAccessibilityOptions() { - return ((bitField1_ & 0x00000020) != 0); - } - - /** - * - * - *
-   * Information about the accessibility options a place offers.
-   * 
- * - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * - * - * @return The accessibilityOptions. - */ - @java.lang.Override - public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { - return accessibilityOptions_ == null - ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() - : accessibilityOptions_; - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public Builder clearDescription() { + bitField0_ = (bitField0_ & ~0x00000002); + description_ = null; + if (descriptionBuilder_ != null) { + descriptionBuilder_.dispose(); + descriptionBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-   * Information about the accessibility options a place offers.
-   * 
- * - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * - */ - @java.lang.Override - public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder - getAccessibilityOptionsOrBuilder() { - return accessibilityOptions_ == null - ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() - : accessibilityOptions_; - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public com.google.maps.places.v1.ContentBlock.Builder getDescriptionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } - public static final int FUEL_OPTIONS_FIELD_NUMBER = 78; - private com.google.maps.places.v1.FuelOptions fuelOptions_; + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + public com.google.maps.places.v1.ContentBlockOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null + ? com.google.maps.places.v1.ContentBlock.getDefaultInstance() + : description_; + } + } - /** - * - * - *
-   * The most recent information about fuel options in a gas station. This
-   * information is updated regularly.
-   * 
- * - * .google.maps.places.v1.FuelOptions fuel_options = 78; - * - * @return Whether the fuelOptions field is set. - */ - @java.lang.Override - public boolean hasFuelOptions() { - return ((bitField1_ & 0x00000040) != 0); - } + /** + * + * + *
+       * A detailed description of the neighborhood.
+       * 
+ * + * .google.maps.places.v1.ContentBlock description = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.ContentBlock, + com.google.maps.places.v1.ContentBlock.Builder, + com.google.maps.places.v1.ContentBlockOrBuilder>( + getDescription(), getParentForChildren(), isClean()); + description_ = null; + } + return descriptionBuilder_; + } - /** - * - * - *
-   * The most recent information about fuel options in a gas station. This
-   * information is updated regularly.
-   * 
- * - * .google.maps.places.v1.FuelOptions fuel_options = 78; - * - * @return The fuelOptions. - */ - @java.lang.Override - public com.google.maps.places.v1.FuelOptions getFuelOptions() { - return fuelOptions_ == null - ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() - : fuelOptions_; - } + private java.lang.Object flagContentUri_ = ""; - /** - * - * - *
-   * The most recent information about fuel options in a gas station. This
-   * information is updated regularly.
-   * 
- * - * .google.maps.places.v1.FuelOptions fuel_options = 78; - */ - @java.lang.Override - public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { - return fuelOptions_ == null - ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() - : fuelOptions_; - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 3; + * + * @return The flagContentUri. + */ + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final int EV_CHARGE_OPTIONS_FIELD_NUMBER = 79; - private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 3; + * + * @return The bytes for flagContentUri. + */ + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-   * Information of ev charging options.
-   * 
- * - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; - * - * @return Whether the evChargeOptions field is set. - */ - @java.lang.Override - public boolean hasEvChargeOptions() { - return ((bitField1_ & 0x00000080) != 0); - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 3; + * + * @param value The flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flagContentUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
-   * Information of ev charging options.
-   * 
- * - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; - * - * @return The evChargeOptions. - */ - @java.lang.Override - public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { - return evChargeOptions_ == null - ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() - : evChargeOptions_; - } + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearFlagContentUri() { + flagContentUri_ = getDefaultInstance().getFlagContentUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - /** - * - * - *
-   * Information of ev charging options.
-   * 
- * - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; - */ - @java.lang.Override - public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { - return evChargeOptions_ == null - ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() - : evChargeOptions_; + /** + * + * + *
+       * A link where users can flag a problem with the summary.
+       * 
+ * + * string flag_content_uri = 3; + * + * @param value The bytes for flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flagContentUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.type.LocalizedText disclosureText_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + disclosureTextBuilder_; + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return Whether the disclosureText field is set. + */ + public boolean hasDisclosureText() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + * + * @return The disclosureText. + */ + public com.google.type.LocalizedText getDisclosureText() { + if (disclosureTextBuilder_ == null) { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } else { + return disclosureTextBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public Builder setDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + disclosureText_ = value; + } else { + disclosureTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public Builder setDisclosureText(com.google.type.LocalizedText.Builder builderForValue) { + if (disclosureTextBuilder_ == null) { + disclosureText_ = builderForValue.build(); + } else { + disclosureTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public Builder mergeDisclosureText(com.google.type.LocalizedText value) { + if (disclosureTextBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && disclosureText_ != null + && disclosureText_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisclosureTextBuilder().mergeFrom(value); + } else { + disclosureText_ = value; + } + } else { + disclosureTextBuilder_.mergeFrom(value); + } + if (disclosureText_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public Builder clearDisclosureText() { + bitField0_ = (bitField0_ & ~0x00000008); + disclosureText_ = null; + if (disclosureTextBuilder_ != null) { + disclosureTextBuilder_.dispose(); + disclosureTextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public com.google.type.LocalizedText.Builder getDisclosureTextBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDisclosureTextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + public com.google.type.LocalizedTextOrBuilder getDisclosureTextOrBuilder() { + if (disclosureTextBuilder_ != null) { + return disclosureTextBuilder_.getMessageOrBuilder(); + } else { + return disclosureText_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : disclosureText_; + } + } + + /** + * + * + *
+       * The AI disclosure message "Summarized with Gemini"
+       * (and its localized variants). This will be in the language specified in
+       * the request if available.
+       * 
+ * + * .google.type.LocalizedText disclosure_text = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisclosureTextFieldBuilder() { + if (disclosureTextBuilder_ == null) { + disclosureTextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisclosureText(), getParentForChildren(), isClean()); + disclosureText_ = null; + } + return disclosureTextBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.maps.places.v1.Place.NeighborhoodSummary) + } + + // @@protoc_insertion_point(class_scope:google.maps.places.v1.Place.NeighborhoodSummary) + private static final com.google.maps.places.v1.Place.NeighborhoodSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.maps.places.v1.Place.NeighborhoodSummary(); + } + + public static com.google.maps.places.v1.Place.NeighborhoodSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NeighborhoodSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int GENERATIVE_SUMMARY_FIELD_NUMBER = 80; - private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; + private int bitField0_; + private int bitField1_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the place.
+   * This Place's resource name, in `places/{place_id}` format.  Can be used to
+   * look up the Place.
    * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * string name = 1; * - * @return Whether the generativeSummary field is set. + * @return The name. */ @java.lang.Override - public boolean hasGenerativeSummary() { - return ((bitField1_ & 0x00000100) != 0); + 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; + } } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the place.
+   * This Place's resource name, in `places/{place_id}` format.  Can be used to
+   * look up the Place.
    * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * string name = 1; * - * @return The generativeSummary. + * @return The bytes for name. */ @java.lang.Override - public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { - return generativeSummary_ == null - ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() - : generativeSummary_; - } - - /** - * - * - *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the place.
+  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 ID_FIELD_NUMBER = 2;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object id_ = "";
+
+  /**
+   *
+   *
+   * 
+   * The unique identifier of a place.
    * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * string id = 2; + * + * @return The id. */ @java.lang.Override - public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder - getGenerativeSummaryOrBuilder() { - return generativeSummary_ == null - ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() - : generativeSummary_; + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } - public static final int AREA_SUMMARY_FIELD_NUMBER = 81; - private com.google.maps.places.v1.Place.AreaSummary areaSummary_; - /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
+   * The unique identifier of a place.
    * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * string id = 2; * - * @return Whether the areaSummary field is set. + * @return The bytes for id. */ @java.lang.Override - public boolean hasAreaSummary() { - return ((bitField1_ & 0x00000200) != 0); + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int DISPLAY_NAME_FIELD_NUMBER = 31; + private com.google.type.LocalizedText displayName_; + /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
+   * The localized name of the place, suitable as a short human-readable
+   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
    * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.type.LocalizedText display_name = 31; * - * @return The areaSummary. + * @return Whether the displayName field is set. */ @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummary getAreaSummary() { - return areaSummary_ == null - ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() - : areaSummary_; + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
+   * The localized name of the place, suitable as a short human-readable
+   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
    * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.type.LocalizedText display_name = 31; + * + * @return The displayName. */ @java.lang.Override - public com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder() { - return areaSummary_ == null - ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() - : areaSummary_; + public com.google.type.LocalizedText getDisplayName() { + return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } - public static final int CONTAINING_PLACES_FIELD_NUMBER = 82; - - @SuppressWarnings("serial") - private java.util.List containingPlaces_; - /** * * *
-   * List of places in which the current place is located.
+   * The localized name of the place, suitable as a short human-readable
+   * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
    * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.type.LocalizedText display_name = 31; */ @java.lang.Override - public java.util.List getContainingPlacesList() { - return containingPlaces_; + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + return displayName_ == null ? com.google.type.LocalizedText.getDefaultInstance() : displayName_; } + public static final int TYPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList types_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * *
-   * List of places in which the current place is located.
+   * A set of type tags for this result. For example, "political" and
+   * "locality". For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * repeated string types = 5; + * + * @return A list containing the types. */ - @java.lang.Override - public java.util.List - getContainingPlacesOrBuilderList() { - return containingPlaces_; + public com.google.protobuf.ProtocolStringList getTypesList() { + return types_; } /** * * *
-   * List of places in which the current place is located.
+   * A set of type tags for this result. For example, "political" and
+   * "locality". For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * repeated string types = 5; + * + * @return The count of types. */ - @java.lang.Override - public int getContainingPlacesCount() { - return containingPlaces_.size(); + public int getTypesCount() { + return types_.size(); } /** * * *
-   * List of places in which the current place is located.
+   * A set of type tags for this result. For example, "political" and
+   * "locality". For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * repeated string types = 5; + * + * @param index The index of the element to return. + * @return The types at the given index. */ - @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlace getContainingPlaces(int index) { - return containingPlaces_.get(index); + public java.lang.String getTypes(int index) { + return types_.get(index); } /** * * *
-   * List of places in which the current place is located.
+   * A set of type tags for this result. For example, "political" and
+   * "locality". For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * repeated string types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the types at the given index. */ - @java.lang.Override - public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPlacesOrBuilder( - int index) { - return containingPlaces_.get(index); + public com.google.protobuf.ByteString getTypesBytes(int index) { + return types_.getByteString(index); } - public static final int PURE_SERVICE_AREA_BUSINESS_FIELD_NUMBER = 83; - private boolean pureServiceAreaBusiness_ = false; + public static final int PRIMARY_TYPE_FIELD_NUMBER = 50; + + @SuppressWarnings("serial") + private volatile java.lang.Object primaryType_ = ""; /** * * *
-   * Indicates whether the place is a pure service area business. Pure service
-   * area business is a business that visits or delivers to customers directly
-   * but does not serve customers at their business address. For example,
-   * businesses like cleaning services or plumbers. Those businesses may not
-   * have a physical address or location on Google Maps.
+   * The primary type of the given result. This type must one of the Places API
+   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * place can only have a single primary type.  For the complete list of
+   * possible values, see Table A and Table B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * optional bool pure_service_area_business = 83; + * string primary_type = 50; * - * @return Whether the pureServiceAreaBusiness field is set. + * @return The primaryType. */ @java.lang.Override - public boolean hasPureServiceAreaBusiness() { - return ((bitField1_ & 0x00000400) != 0); + public java.lang.String getPrimaryType() { + java.lang.Object ref = primaryType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryType_ = s; + return s; + } } /** * * *
-   * Indicates whether the place is a pure service area business. Pure service
-   * area business is a business that visits or delivers to customers directly
-   * but does not serve customers at their business address. For example,
-   * businesses like cleaning services or plumbers. Those businesses may not
-   * have a physical address or location on Google Maps.
+   * The primary type of the given result. This type must one of the Places API
+   * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+   * place can only have a single primary type.  For the complete list of
+   * possible values, see Table A and Table B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * optional bool pure_service_area_business = 83; + * string primary_type = 50; * - * @return The pureServiceAreaBusiness. + * @return The bytes for primaryType. */ @java.lang.Override - public boolean getPureServiceAreaBusiness() { - return pureServiceAreaBusiness_; + public com.google.protobuf.ByteString getPrimaryTypeBytes() { + java.lang.Object ref = primaryType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int PRICE_RANGE_FIELD_NUMBER = 86; - private com.google.maps.places.v1.PriceRange priceRange_; + public static final int PRIMARY_TYPE_DISPLAY_NAME_FIELD_NUMBER = 32; + private com.google.type.LocalizedText primaryTypeDisplayName_; /** * * *
-   * The price range associated with a Place.
+   * The display name of the primary type, localized to the request language if
+   * applicable. For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.type.LocalizedText primary_type_display_name = 32; * - * @return Whether the priceRange field is set. + * @return Whether the primaryTypeDisplayName field is set. */ @java.lang.Override - public boolean hasPriceRange() { - return ((bitField1_ & 0x00000800) != 0); + public boolean hasPrimaryTypeDisplayName() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-   * The price range associated with a Place.
+   * The display name of the primary type, localized to the request language if
+   * applicable. For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.type.LocalizedText primary_type_display_name = 32; * - * @return The priceRange. + * @return The primaryTypeDisplayName. */ @java.lang.Override - public com.google.maps.places.v1.PriceRange getPriceRange() { - return priceRange_ == null - ? com.google.maps.places.v1.PriceRange.getDefaultInstance() - : priceRange_; + public com.google.type.LocalizedText getPrimaryTypeDisplayName() { + return primaryTypeDisplayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : primaryTypeDisplayName_; } /** * * *
-   * The price range associated with a Place.
+   * The display name of the primary type, localized to the request language if
+   * applicable. For the complete list of possible values, see Table A and Table
+   * B at
+   * https://developers.google.com/maps/documentation/places/web-service/place-types
    * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.type.LocalizedText primary_type_display_name = 32; */ @java.lang.Override - public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { - return priceRange_ == null - ? com.google.maps.places.v1.PriceRange.getDefaultInstance() - : priceRange_; + public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder() { + return primaryTypeDisplayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : primaryTypeDisplayName_; } - private byte memoizedIsInitialized = -1; + public static final int NATIONAL_PHONE_NUMBER_FIELD_NUMBER = 7; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private volatile java.lang.Object nationalPhoneNumber_ = ""; - memoizedIsInitialized = 1; - return true; + /** + * + * + *
+   * A human-readable phone number for the place, in national format.
+   * 
+ * + * string national_phone_number = 7; + * + * @return The nationalPhoneNumber. + */ + @java.lang.Override + public java.lang.String getNationalPhoneNumber() { + java.lang.Object ref = nationalPhoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalPhoneNumber_ = s; + return s; + } } + /** + * + * + *
+   * A human-readable phone number for the place, in national format.
+   * 
+ * + * string national_phone_number = 7; + * + * @return The bytes for nationalPhoneNumber. + */ @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(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); - } - for (int i = 0; i < types_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, types_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, nationalPhoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, internationalPhoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, formattedAddress_); - } - for (int i = 0; i < addressComponents_.size(); i++) { - output.writeMessage(10, addressComponents_.get(i)); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(11, getPlusCode()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(12, getLocation()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(13, getViewport()); + public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { + java.lang.Object ref = nationalPhoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nationalPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { - output.writeDouble(14, rating_); + } + + public static final int INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object internationalPhoneNumber_ = ""; + + /** + * + * + *
+   * A human-readable phone number for the place, in international format.
+   * 
+ * + * string international_phone_number = 8; + * + * @return The internationalPhoneNumber. + */ + @java.lang.Override + public java.lang.String getInternationalPhoneNumber() { + java.lang.Object ref = internationalPhoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internationalPhoneNumber_ = s; + return s; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, googleMapsUri_); + } + + /** + * + * + *
+   * A human-readable phone number for the place, in international format.
+   * 
+ * + * string international_phone_number = 8; + * + * @return The bytes for internationalPhoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { + java.lang.Object ref = internationalPhoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internationalPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, websiteUri_); + } + + public static final int FORMATTED_ADDRESS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object formattedAddress_ = ""; + + /** + * + * + *
+   * A full, human-readable address for this place.
+   * 
+ * + * string formatted_address = 9; + * + * @return The formattedAddress. + */ + @java.lang.Override + public java.lang.String getFormattedAddress() { + java.lang.Object ref = formattedAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + formattedAddress_ = s; + return s; } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(21, getRegularOpeningHours()); + } + + /** + * + * + *
+   * A full, human-readable address for this place.
+   * 
+ * + * string formatted_address = 9; + * + * @return The bytes for formattedAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormattedAddressBytes() { + java.lang.Object ref = formattedAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeInt32(22, utcOffsetMinutes_); + } + + public static final int SHORT_FORMATTED_ADDRESS_FIELD_NUMBER = 51; + + @SuppressWarnings("serial") + private volatile java.lang.Object shortFormattedAddress_ = ""; + + /** + * + * + *
+   * A short, human-readable address for this place.
+   * 
+ * + * string short_formatted_address = 51; + * + * @return The shortFormattedAddress. + */ + @java.lang.Override + public java.lang.String getShortFormattedAddress() { + java.lang.Object ref = shortFormattedAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + shortFormattedAddress_ = s; + return s; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, adrFormatAddress_); + } + + /** + * + * + *
+   * A short, human-readable address for this place.
+   * 
+ * + * string short_formatted_address = 51; + * + * @return The bytes for shortFormattedAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getShortFormattedAddressBytes() { + java.lang.Object ref = shortFormattedAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + shortFormattedAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (businessStatus_ - != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(25, businessStatus_); - } - if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { - output.writeEnum(26, priceLevel_); - } - for (int i = 0; i < attributions_.size(); i++) { - output.writeMessage(27, attributions_.get(i)); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeInt32(28, userRatingCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, iconMaskBaseUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, iconBackgroundColor_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(31, getDisplayName()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(32, getPrimaryTypeDisplayName()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeBool(33, takeout_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeBool(34, delivery_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeBool(35, dineIn_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeBool(36, curbsidePickup_); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeBool(38, reservable_); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeBool(39, servesBreakfast_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeBool(40, servesLunch_); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeBool(41, servesDinner_); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeBool(42, servesBeer_); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeBool(43, servesWine_); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeBool(44, servesBrunch_); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeBool(45, servesVegetarianFood_); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(46, getCurrentOpeningHours()); - } - for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { - output.writeMessage(47, currentSecondaryOpeningHours_.get(i)); - } - for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { - output.writeMessage(49, regularSecondaryOpeningHours_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 50, primaryType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortFormattedAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 51, shortFormattedAddress_); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(52, getEditorialSummary()); - } - for (int i = 0; i < reviews_.size(); i++) { - output.writeMessage(53, reviews_.get(i)); - } - for (int i = 0; i < photos_.size(); i++) { - output.writeMessage(54, photos_.get(i)); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeBool(55, outdoorSeating_); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeBool(56, liveMusic_); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeBool(57, menuForChildren_); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeBool(58, servesCocktails_); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeBool(59, servesDessert_); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeBool(60, servesCoffee_); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeBool(62, goodForChildren_); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeBool(63, allowsDogs_); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeBool(64, restroom_); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeBool(65, goodForGroups_); - } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeBool(66, goodForWatchingSports_); - } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeMessage(67, getPaymentOptions()); - } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeMessage(70, getParkingOptions()); - } - for (int i = 0; i < subDestinations_.size(); i++) { - output.writeMessage(71, subDestinations_.get(i)); - } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeMessage(72, getAccessibilityOptions()); - } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeMessage(78, getFuelOptions()); - } - if (((bitField1_ & 0x00000080) != 0)) { - output.writeMessage(79, getEvChargeOptions()); - } - if (((bitField1_ & 0x00000100) != 0)) { - output.writeMessage(80, getGenerativeSummary()); - } - if (((bitField1_ & 0x00000200) != 0)) { - output.writeMessage(81, getAreaSummary()); - } - for (int i = 0; i < containingPlaces_.size(); i++) { - output.writeMessage(82, containingPlaces_.get(i)); - } - if (((bitField1_ & 0x00000400) != 0)) { - output.writeBool(83, pureServiceAreaBusiness_); - } - if (((bitField1_ & 0x00000800) != 0)) { - output.writeMessage(86, getPriceRange()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(88, getTimeZone()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(90, getPostalAddress()); - } - getUnknownFields().writeTo(output); } + public static final int POSTAL_ADDRESS_FIELD_NUMBER = 90; + private com.google.type.PostalAddress postalAddress_; + + /** + * + * + *
+   * The address in postal address format.
+   * 
+ * + * .google.type.PostalAddress postal_address = 90; + * + * @return Whether the postalAddress field is set. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public boolean hasPostalAddress() { + return ((bitField0_ & 0x00000004) != 0); + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); - } - { - int dataSize = 0; - for (int i = 0; i < types_.size(); i++) { - dataSize += computeStringSizeNoTag(types_.getRaw(i)); - } - size += dataSize; - size += 1 * getTypesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, nationalPhoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(8, internationalPhoneNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, formattedAddress_); - } - for (int i = 0; i < addressComponents_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, addressComponents_.get(i)); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPlusCode()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLocation()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getViewport()); - } - if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(14, rating_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, googleMapsUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, websiteUri_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRegularOpeningHours()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, utcOffsetMinutes_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, adrFormatAddress_); - } - if (businessStatus_ - != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, businessStatus_); - } - if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, priceLevel_); - } - for (int i = 0; i < attributions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, attributions_.get(i)); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(28, userRatingCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, iconMaskBaseUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, iconBackgroundColor_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDisplayName()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(32, getPrimaryTypeDisplayName()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, takeout_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, delivery_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, dineIn_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(36, curbsidePickup_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, reservable_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, servesBreakfast_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, servesLunch_); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(41, servesDinner_); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(42, servesBeer_); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(43, servesWine_); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(44, servesBrunch_); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(45, servesVegetarianFood_); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(46, getCurrentOpeningHours()); - } - for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 47, currentSecondaryOpeningHours_.get(i)); - } - for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 49, regularSecondaryOpeningHours_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, primaryType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortFormattedAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(51, shortFormattedAddress_); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getEditorialSummary()); - } - for (int i = 0; i < reviews_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, reviews_.get(i)); - } - for (int i = 0; i < photos_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(54, photos_.get(i)); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, outdoorSeating_); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(56, liveMusic_); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(57, menuForChildren_); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(58, servesCocktails_); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(59, servesDessert_); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(60, servesCoffee_); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(62, goodForChildren_); - } - if (((bitField0_ & 0x80000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(63, allowsDogs_); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(64, restroom_); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(65, goodForGroups_); - } - if (((bitField1_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(66, goodForWatchingSports_); - } - if (((bitField1_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getPaymentOptions()); - } - if (((bitField1_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(70, getParkingOptions()); - } - for (int i = 0; i < subDestinations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(71, subDestinations_.get(i)); - } - if (((bitField1_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(72, getAccessibilityOptions()); - } - if (((bitField1_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(78, getFuelOptions()); - } - if (((bitField1_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getEvChargeOptions()); - } - if (((bitField1_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(80, getGenerativeSummary()); - } - if (((bitField1_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(81, getAreaSummary()); - } - for (int i = 0; i < containingPlaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(82, containingPlaces_.get(i)); - } - if (((bitField1_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(83, pureServiceAreaBusiness_); - } - if (((bitField1_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(86, getPriceRange()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(88, getTimeZone()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(90, getPostalAddress()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
+   * The address in postal address format.
+   * 
+ * + * .google.type.PostalAddress postal_address = 90; + * + * @return The postalAddress. + */ + @java.lang.Override + public com.google.type.PostalAddress getPostalAddress() { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; } + /** + * + * + *
+   * The address in postal address format.
+   * 
+ * + * .google.type.PostalAddress postal_address = 90; + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.maps.places.v1.Place)) { - return super.equals(obj); - } - com.google.maps.places.v1.Place other = (com.google.maps.places.v1.Place) obj; + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; + } - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; - if (hasDisplayName() != other.hasDisplayName()) return false; - if (hasDisplayName()) { - if (!getDisplayName().equals(other.getDisplayName())) return false; - } - if (!getTypesList().equals(other.getTypesList())) return false; - if (!getPrimaryType().equals(other.getPrimaryType())) return false; - if (hasPrimaryTypeDisplayName() != other.hasPrimaryTypeDisplayName()) return false; - if (hasPrimaryTypeDisplayName()) { - if (!getPrimaryTypeDisplayName().equals(other.getPrimaryTypeDisplayName())) return false; - } - if (!getNationalPhoneNumber().equals(other.getNationalPhoneNumber())) return false; - if (!getInternationalPhoneNumber().equals(other.getInternationalPhoneNumber())) return false; - if (!getFormattedAddress().equals(other.getFormattedAddress())) return false; - if (!getShortFormattedAddress().equals(other.getShortFormattedAddress())) return false; - if (hasPostalAddress() != other.hasPostalAddress()) return false; - if (hasPostalAddress()) { - if (!getPostalAddress().equals(other.getPostalAddress())) return false; - } - if (!getAddressComponentsList().equals(other.getAddressComponentsList())) return false; - if (hasPlusCode() != other.hasPlusCode()) return false; - if (hasPlusCode()) { - if (!getPlusCode().equals(other.getPlusCode())) return false; - } - if (hasLocation() != other.hasLocation()) return false; - if (hasLocation()) { - if (!getLocation().equals(other.getLocation())) return false; - } - if (hasViewport() != other.hasViewport()) return false; - if (hasViewport()) { - if (!getViewport().equals(other.getViewport())) return false; - } - if (java.lang.Double.doubleToLongBits(getRating()) - != java.lang.Double.doubleToLongBits(other.getRating())) return false; - if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; - if (!getWebsiteUri().equals(other.getWebsiteUri())) return false; - if (!getReviewsList().equals(other.getReviewsList())) return false; - if (hasRegularOpeningHours() != other.hasRegularOpeningHours()) return false; - if (hasRegularOpeningHours()) { - if (!getRegularOpeningHours().equals(other.getRegularOpeningHours())) return false; - } - if (hasUtcOffsetMinutes() != other.hasUtcOffsetMinutes()) return false; - if (hasUtcOffsetMinutes()) { - if (getUtcOffsetMinutes() != other.getUtcOffsetMinutes()) return false; - } - if (hasTimeZone() != other.hasTimeZone()) return false; - if (hasTimeZone()) { - if (!getTimeZone().equals(other.getTimeZone())) return false; - } - if (!getPhotosList().equals(other.getPhotosList())) return false; - if (!getAdrFormatAddress().equals(other.getAdrFormatAddress())) return false; - if (businessStatus_ != other.businessStatus_) return false; - if (priceLevel_ != other.priceLevel_) return false; - if (!getAttributionsList().equals(other.getAttributionsList())) return false; - if (hasUserRatingCount() != other.hasUserRatingCount()) return false; - if (hasUserRatingCount()) { - if (getUserRatingCount() != other.getUserRatingCount()) return false; - } - if (!getIconMaskBaseUri().equals(other.getIconMaskBaseUri())) return false; - if (!getIconBackgroundColor().equals(other.getIconBackgroundColor())) return false; - if (hasTakeout() != other.hasTakeout()) return false; - if (hasTakeout()) { - if (getTakeout() != other.getTakeout()) return false; - } - if (hasDelivery() != other.hasDelivery()) return false; - if (hasDelivery()) { - if (getDelivery() != other.getDelivery()) return false; - } - if (hasDineIn() != other.hasDineIn()) return false; - if (hasDineIn()) { - if (getDineIn() != other.getDineIn()) return false; - } - if (hasCurbsidePickup() != other.hasCurbsidePickup()) return false; - if (hasCurbsidePickup()) { - if (getCurbsidePickup() != other.getCurbsidePickup()) return false; - } - if (hasReservable() != other.hasReservable()) return false; - if (hasReservable()) { - if (getReservable() != other.getReservable()) return false; - } - if (hasServesBreakfast() != other.hasServesBreakfast()) return false; - if (hasServesBreakfast()) { - if (getServesBreakfast() != other.getServesBreakfast()) return false; - } - if (hasServesLunch() != other.hasServesLunch()) return false; - if (hasServesLunch()) { - if (getServesLunch() != other.getServesLunch()) return false; - } - if (hasServesDinner() != other.hasServesDinner()) return false; - if (hasServesDinner()) { - if (getServesDinner() != other.getServesDinner()) return false; - } - if (hasServesBeer() != other.hasServesBeer()) return false; - if (hasServesBeer()) { - if (getServesBeer() != other.getServesBeer()) return false; - } - if (hasServesWine() != other.hasServesWine()) return false; - if (hasServesWine()) { - if (getServesWine() != other.getServesWine()) return false; - } - if (hasServesBrunch() != other.hasServesBrunch()) return false; - if (hasServesBrunch()) { - if (getServesBrunch() != other.getServesBrunch()) return false; - } - if (hasServesVegetarianFood() != other.hasServesVegetarianFood()) return false; - if (hasServesVegetarianFood()) { - if (getServesVegetarianFood() != other.getServesVegetarianFood()) return false; - } - if (hasCurrentOpeningHours() != other.hasCurrentOpeningHours()) return false; - if (hasCurrentOpeningHours()) { - if (!getCurrentOpeningHours().equals(other.getCurrentOpeningHours())) return false; - } - if (!getCurrentSecondaryOpeningHoursList().equals(other.getCurrentSecondaryOpeningHoursList())) - return false; - if (!getRegularSecondaryOpeningHoursList().equals(other.getRegularSecondaryOpeningHoursList())) - return false; - if (hasEditorialSummary() != other.hasEditorialSummary()) return false; - if (hasEditorialSummary()) { - if (!getEditorialSummary().equals(other.getEditorialSummary())) return false; - } - if (hasOutdoorSeating() != other.hasOutdoorSeating()) return false; - if (hasOutdoorSeating()) { - if (getOutdoorSeating() != other.getOutdoorSeating()) return false; - } - if (hasLiveMusic() != other.hasLiveMusic()) return false; - if (hasLiveMusic()) { - if (getLiveMusic() != other.getLiveMusic()) return false; - } - if (hasMenuForChildren() != other.hasMenuForChildren()) return false; - if (hasMenuForChildren()) { - if (getMenuForChildren() != other.getMenuForChildren()) return false; - } - if (hasServesCocktails() != other.hasServesCocktails()) return false; - if (hasServesCocktails()) { - if (getServesCocktails() != other.getServesCocktails()) return false; - } - if (hasServesDessert() != other.hasServesDessert()) return false; - if (hasServesDessert()) { - if (getServesDessert() != other.getServesDessert()) return false; - } - if (hasServesCoffee() != other.hasServesCoffee()) return false; - if (hasServesCoffee()) { - if (getServesCoffee() != other.getServesCoffee()) return false; - } - if (hasGoodForChildren() != other.hasGoodForChildren()) return false; - if (hasGoodForChildren()) { - if (getGoodForChildren() != other.getGoodForChildren()) return false; - } - if (hasAllowsDogs() != other.hasAllowsDogs()) return false; - if (hasAllowsDogs()) { - if (getAllowsDogs() != other.getAllowsDogs()) return false; - } - if (hasRestroom() != other.hasRestroom()) return false; - if (hasRestroom()) { - if (getRestroom() != other.getRestroom()) return false; - } - if (hasGoodForGroups() != other.hasGoodForGroups()) return false; - if (hasGoodForGroups()) { - if (getGoodForGroups() != other.getGoodForGroups()) return false; - } - if (hasGoodForWatchingSports() != other.hasGoodForWatchingSports()) return false; - if (hasGoodForWatchingSports()) { - if (getGoodForWatchingSports() != other.getGoodForWatchingSports()) return false; - } - if (hasPaymentOptions() != other.hasPaymentOptions()) return false; - if (hasPaymentOptions()) { - if (!getPaymentOptions().equals(other.getPaymentOptions())) return false; - } - if (hasParkingOptions() != other.hasParkingOptions()) return false; - if (hasParkingOptions()) { - if (!getParkingOptions().equals(other.getParkingOptions())) return false; - } - if (!getSubDestinationsList().equals(other.getSubDestinationsList())) return false; - if (hasAccessibilityOptions() != other.hasAccessibilityOptions()) return false; - if (hasAccessibilityOptions()) { - if (!getAccessibilityOptions().equals(other.getAccessibilityOptions())) return false; - } - if (hasFuelOptions() != other.hasFuelOptions()) return false; - if (hasFuelOptions()) { - if (!getFuelOptions().equals(other.getFuelOptions())) return false; - } - if (hasEvChargeOptions() != other.hasEvChargeOptions()) return false; - if (hasEvChargeOptions()) { - if (!getEvChargeOptions().equals(other.getEvChargeOptions())) return false; - } - if (hasGenerativeSummary() != other.hasGenerativeSummary()) return false; - if (hasGenerativeSummary()) { - if (!getGenerativeSummary().equals(other.getGenerativeSummary())) return false; - } - if (hasAreaSummary() != other.hasAreaSummary()) return false; - if (hasAreaSummary()) { - if (!getAreaSummary().equals(other.getAreaSummary())) return false; - } - if (!getContainingPlacesList().equals(other.getContainingPlacesList())) return false; - if (hasPureServiceAreaBusiness() != other.hasPureServiceAreaBusiness()) return false; - if (hasPureServiceAreaBusiness()) { - if (getPureServiceAreaBusiness() != other.getPureServiceAreaBusiness()) return false; - } - if (hasPriceRange() != other.hasPriceRange()) return false; - if (hasPriceRange()) { - if (!getPriceRange().equals(other.getPriceRange())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static final int ADDRESS_COMPONENTS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List addressComponents_; + + /** + * + * + *
+   * Repeated components for each locality level.
+   * Note the following facts about the address_components[] array:
+   * - The array of address components may contain more components than the
+   * formatted_address.
+   * - The array does not necessarily include all the political entities that
+   * contain an address, apart from those included in the formatted_address. To
+   * retrieve all the political entities that contain a specific address, you
+   * should use reverse geocoding, passing the latitude/longitude of the address
+   * as a parameter to the request.
+   * - The format of the response is not guaranteed to remain the same between
+   * requests. In particular, the number of address_components varies based on
+   * the address requested and can change over time for the same address. A
+   * component can change position in the array. The type of the component can
+   * change. A particular component may be missing in a later response.
+   * 
+ * + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + */ + @java.lang.Override + public java.util.List + getAddressComponentsList() { + return addressComponents_; } + /** + * + * + *
+   * Repeated components for each locality level.
+   * Note the following facts about the address_components[] array:
+   * - The array of address components may contain more components than the
+   * formatted_address.
+   * - The array does not necessarily include all the political entities that
+   * contain an address, apart from those included in the formatted_address. To
+   * retrieve all the political entities that contain a specific address, you
+   * should use reverse geocoding, passing the latitude/longitude of the address
+   * as a parameter to the request.
+   * - The format of the response is not guaranteed to remain the same between
+   * requests. In particular, the number of address_components varies based on
+   * the address requested and can change over time for the same address. A
+   * component can change position in the array. The type of the component can
+   * change. A particular component may be missing in a later response.
+   * 
+ * + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + */ @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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasDisplayName()) { - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - } - if (getTypesCount() > 0) { - hash = (37 * hash) + TYPES_FIELD_NUMBER; - hash = (53 * hash) + getTypesList().hashCode(); - } - hash = (37 * hash) + PRIMARY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryType().hashCode(); - if (hasPrimaryTypeDisplayName()) { - hash = (37 * hash) + PRIMARY_TYPE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryTypeDisplayName().hashCode(); - } - hash = (37 * hash) + NATIONAL_PHONE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getNationalPhoneNumber().hashCode(); - hash = (37 * hash) + INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getInternationalPhoneNumber().hashCode(); - hash = (37 * hash) + FORMATTED_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getFormattedAddress().hashCode(); - hash = (37 * hash) + SHORT_FORMATTED_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getShortFormattedAddress().hashCode(); - if (hasPostalAddress()) { - hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getPostalAddress().hashCode(); - } - if (getAddressComponentsCount() > 0) { - hash = (37 * hash) + ADDRESS_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + getAddressComponentsList().hashCode(); - } - if (hasPlusCode()) { - hash = (37 * hash) + PLUS_CODE_FIELD_NUMBER; - hash = (53 * hash) + getPlusCode().hashCode(); - } - if (hasLocation()) { - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - } - if (hasViewport()) { - hash = (37 * hash) + VIEWPORT_FIELD_NUMBER; - hash = (53 * hash) + getViewport().hashCode(); - } - hash = (37 * hash) + RATING_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getRating())); - hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; - hash = (53 * hash) + getGoogleMapsUri().hashCode(); - hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; - hash = (53 * hash) + getWebsiteUri().hashCode(); - if (getReviewsCount() > 0) { - hash = (37 * hash) + REVIEWS_FIELD_NUMBER; - hash = (53 * hash) + getReviewsList().hashCode(); - } - if (hasRegularOpeningHours()) { - hash = (37 * hash) + REGULAR_OPENING_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getRegularOpeningHours().hashCode(); - } - if (hasUtcOffsetMinutes()) { - hash = (37 * hash) + UTC_OFFSET_MINUTES_FIELD_NUMBER; - hash = (53 * hash) + getUtcOffsetMinutes(); - } - if (hasTimeZone()) { - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - } - if (getPhotosCount() > 0) { - hash = (37 * hash) + PHOTOS_FIELD_NUMBER; - hash = (53 * hash) + getPhotosList().hashCode(); - } - hash = (37 * hash) + ADR_FORMAT_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAdrFormatAddress().hashCode(); - hash = (37 * hash) + BUSINESS_STATUS_FIELD_NUMBER; - hash = (53 * hash) + businessStatus_; - hash = (37 * hash) + PRICE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + priceLevel_; - if (getAttributionsCount() > 0) { - hash = (37 * hash) + ATTRIBUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getAttributionsList().hashCode(); - } - if (hasUserRatingCount()) { - hash = (37 * hash) + USER_RATING_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getUserRatingCount(); - } - hash = (37 * hash) + ICON_MASK_BASE_URI_FIELD_NUMBER; - hash = (53 * hash) + getIconMaskBaseUri().hashCode(); - hash = (37 * hash) + ICON_BACKGROUND_COLOR_FIELD_NUMBER; - hash = (53 * hash) + getIconBackgroundColor().hashCode(); - if (hasTakeout()) { - hash = (37 * hash) + TAKEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTakeout()); - } - if (hasDelivery()) { - hash = (37 * hash) + DELIVERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDelivery()); - } - if (hasDineIn()) { - hash = (37 * hash) + DINE_IN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDineIn()); - } - if (hasCurbsidePickup()) { - hash = (37 * hash) + CURBSIDE_PICKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCurbsidePickup()); - } - if (hasReservable()) { - hash = (37 * hash) + RESERVABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReservable()); - } - if (hasServesBreakfast()) { - hash = (37 * hash) + SERVES_BREAKFAST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBreakfast()); - } - if (hasServesLunch()) { - hash = (37 * hash) + SERVES_LUNCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesLunch()); - } - if (hasServesDinner()) { - hash = (37 * hash) + SERVES_DINNER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDinner()); - } - if (hasServesBeer()) { - hash = (37 * hash) + SERVES_BEER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBeer()); - } - if (hasServesWine()) { - hash = (37 * hash) + SERVES_WINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesWine()); - } - if (hasServesBrunch()) { - hash = (37 * hash) + SERVES_BRUNCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBrunch()); - } - if (hasServesVegetarianFood()) { - hash = (37 * hash) + SERVES_VEGETARIAN_FOOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesVegetarianFood()); - } - if (hasCurrentOpeningHours()) { - hash = (37 * hash) + CURRENT_OPENING_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getCurrentOpeningHours().hashCode(); - } - if (getCurrentSecondaryOpeningHoursCount() > 0) { - hash = (37 * hash) + CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getCurrentSecondaryOpeningHoursList().hashCode(); - } - if (getRegularSecondaryOpeningHoursCount() > 0) { - hash = (37 * hash) + REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER; - hash = (53 * hash) + getRegularSecondaryOpeningHoursList().hashCode(); - } - if (hasEditorialSummary()) { - hash = (37 * hash) + EDITORIAL_SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getEditorialSummary().hashCode(); - } - if (hasOutdoorSeating()) { - hash = (37 * hash) + OUTDOOR_SEATING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutdoorSeating()); - } - if (hasLiveMusic()) { - hash = (37 * hash) + LIVE_MUSIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveMusic()); - } - if (hasMenuForChildren()) { - hash = (37 * hash) + MENU_FOR_CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMenuForChildren()); - } - if (hasServesCocktails()) { - hash = (37 * hash) + SERVES_COCKTAILS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCocktails()); - } - if (hasServesDessert()) { - hash = (37 * hash) + SERVES_DESSERT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDessert()); - } - if (hasServesCoffee()) { - hash = (37 * hash) + SERVES_COFFEE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCoffee()); - } - if (hasGoodForChildren()) { - hash = (37 * hash) + GOOD_FOR_CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForChildren()); - } - if (hasAllowsDogs()) { - hash = (37 * hash) + ALLOWS_DOGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowsDogs()); - } - if (hasRestroom()) { - hash = (37 * hash) + RESTROOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestroom()); - } - if (hasGoodForGroups()) { - hash = (37 * hash) + GOOD_FOR_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForGroups()); - } - if (hasGoodForWatchingSports()) { - hash = (37 * hash) + GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForWatchingSports()); - } - if (hasPaymentOptions()) { - hash = (37 * hash) + PAYMENT_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getPaymentOptions().hashCode(); - } - if (hasParkingOptions()) { - hash = (37 * hash) + PARKING_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getParkingOptions().hashCode(); - } - if (getSubDestinationsCount() > 0) { - hash = (37 * hash) + SUB_DESTINATIONS_FIELD_NUMBER; - hash = (53 * hash) + getSubDestinationsList().hashCode(); - } - if (hasAccessibilityOptions()) { - hash = (37 * hash) + ACCESSIBILITY_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getAccessibilityOptions().hashCode(); - } - if (hasFuelOptions()) { - hash = (37 * hash) + FUEL_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getFuelOptions().hashCode(); - } - if (hasEvChargeOptions()) { - hash = (37 * hash) + EV_CHARGE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getEvChargeOptions().hashCode(); - } - if (hasGenerativeSummary()) { - hash = (37 * hash) + GENERATIVE_SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getGenerativeSummary().hashCode(); - } - if (hasAreaSummary()) { - hash = (37 * hash) + AREA_SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getAreaSummary().hashCode(); - } - if (getContainingPlacesCount() > 0) { - hash = (37 * hash) + CONTAINING_PLACES_FIELD_NUMBER; - hash = (53 * hash) + getContainingPlacesList().hashCode(); - } - if (hasPureServiceAreaBusiness()) { - hash = (37 * hash) + PURE_SERVICE_AREA_BUSINESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPureServiceAreaBusiness()); - } - if (hasPriceRange()) { - hash = (37 * hash) + PRICE_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getPriceRange().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.maps.places.v1.Place parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.places.v1.Place parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.places.v1.Place parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public java.util.List + getAddressComponentsOrBuilderList() { + return addressComponents_; } - public static com.google.maps.places.v1.Place parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Repeated components for each locality level.
+   * Note the following facts about the address_components[] array:
+   * - The array of address components may contain more components than the
+   * formatted_address.
+   * - The array does not necessarily include all the political entities that
+   * contain an address, apart from those included in the formatted_address. To
+   * retrieve all the political entities that contain a specific address, you
+   * should use reverse geocoding, passing the latitude/longitude of the address
+   * as a parameter to the request.
+   * - The format of the response is not guaranteed to remain the same between
+   * requests. In particular, the number of address_components varies based on
+   * the address requested and can change over time for the same address. A
+   * component can change position in the array. The type of the component can
+   * change. A particular component may be missing in a later response.
+   * 
+ * + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + */ + @java.lang.Override + public int getAddressComponentsCount() { + return addressComponents_.size(); } - public static com.google.maps.places.v1.Place parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Repeated components for each locality level.
+   * Note the following facts about the address_components[] array:
+   * - The array of address components may contain more components than the
+   * formatted_address.
+   * - The array does not necessarily include all the political entities that
+   * contain an address, apart from those included in the formatted_address. To
+   * retrieve all the political entities that contain a specific address, you
+   * should use reverse geocoding, passing the latitude/longitude of the address
+   * as a parameter to the request.
+   * - The format of the response is not guaranteed to remain the same between
+   * requests. In particular, the number of address_components varies based on
+   * the address requested and can change over time for the same address. A
+   * component can change position in the array. The type of the component can
+   * change. A particular component may be missing in a later response.
+   * 
+ * + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { + return addressComponents_.get(index); } - public static com.google.maps.places.v1.Place parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Repeated components for each locality level.
+   * Note the following facts about the address_components[] array:
+   * - The array of address components may contain more components than the
+   * formatted_address.
+   * - The array does not necessarily include all the political entities that
+   * contain an address, apart from those included in the formatted_address. To
+   * retrieve all the political entities that contain a specific address, you
+   * should use reverse geocoding, passing the latitude/longitude of the address
+   * as a parameter to the request.
+   * - The format of the response is not guaranteed to remain the same between
+   * requests. In particular, the number of address_components varies based on
+   * the address requested and can change over time for the same address. A
+   * component can change position in the array. The type of the component can
+   * change. A particular component may be missing in a later response.
+   * 
+ * + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( + int index) { + return addressComponents_.get(index); } - public static com.google.maps.places.v1.Place parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int PLUS_CODE_FIELD_NUMBER = 11; + private com.google.maps.places.v1.Place.PlusCode plusCode_; - public static com.google.maps.places.v1.Place parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Plus code of the place location lat/long.
+   * 
+ * + * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * + * @return Whether the plusCode field is set. + */ + @java.lang.Override + public boolean hasPlusCode() { + return ((bitField0_ & 0x00000008) != 0); } - public static com.google.maps.places.v1.Place parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
+   * Plus code of the place location lat/long.
+   * 
+ * + * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * + * @return The plusCode. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.PlusCode getPlusCode() { + return plusCode_ == null + ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() + : plusCode_; } - public static com.google.maps.places.v1.Place parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Plus code of the place location lat/long.
+   * 
+ * + * .google.maps.places.v1.Place.PlusCode plus_code = 11; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { + return plusCode_ == null + ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() + : plusCode_; } - public static com.google.maps.places.v1.Place parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int LOCATION_FIELD_NUMBER = 12; + private com.google.type.LatLng location_; - public static com.google.maps.places.v1.Place parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * The position of this place.
+   * 
+ * + * .google.type.LatLng location = 12; + * + * @return Whether the location field is set. + */ + @java.lang.Override + public boolean hasLocation() { + return ((bitField0_ & 0x00000010) != 0); } + /** + * + * + *
+   * The position of this place.
+   * 
+ * + * .google.type.LatLng location = 12; + * + * @return The location. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public com.google.type.LatLng getLocation() { + return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+   * The position of this place.
+   * 
+ * + * .google.type.LatLng location = 12; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getLocationOrBuilder() { + return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } - public static Builder newBuilder(com.google.maps.places.v1.Place prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public static final int VIEWPORT_FIELD_NUMBER = 13; + private com.google.geo.type.Viewport viewport_; + + /** + * + * + *
+   * A viewport suitable for displaying the place on an average-sized map. This
+   * viewport should not be used as the physical boundary or the service area of
+   * the business.
+   * 
+ * + * .google.geo.type.Viewport viewport = 13; + * + * @return Whether the viewport field is set. + */ + @java.lang.Override + public boolean hasViewport() { + return ((bitField0_ & 0x00000020) != 0); } + /** + * + * + *
+   * A viewport suitable for displaying the place on an average-sized map. This
+   * viewport should not be used as the physical boundary or the service area of
+   * the business.
+   * 
+ * + * .google.geo.type.Viewport viewport = 13; + * + * @return The viewport. + */ @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.geo.type.Viewport getViewport() { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } + /** + * + * + *
+   * A viewport suitable for displaying the place on an average-sized map. This
+   * viewport should not be used as the physical boundary or the service area of
+   * the business.
+   * 
+ * + * .google.geo.type.Viewport viewport = 13; + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } + public static final int RATING_FIELD_NUMBER = 14; + private double rating_ = 0D; + /** * * *
-   * All the information representing a Place.
+   * A rating between 1.0 and 5.0, based on user reviews of this place.
    * 
* - * Protobuf type {@code google.maps.places.v1.Place} + * double rating = 14; + * + * @return The rating. */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place) - com.google.maps.places.v1.PlaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_descriptor; - } + @java.lang.Override + public double getRating() { + return rating_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.places.v1.Place.class, com.google.maps.places.v1.Place.Builder.class); - } + public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 15; - // Construct using com.google.maps.places.v1.Place.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @SuppressWarnings("serial") + private volatile java.lang.Object googleMapsUri_ = ""; + + /** + * + * + *
+   * A URL providing more information about this place.
+   * 
+ * + * string google_maps_uri = 15; + * + * @return The googleMapsUri. + */ + @java.lang.Override + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; } + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDisplayNameFieldBuilder(); - getPrimaryTypeDisplayNameFieldBuilder(); - getPostalAddressFieldBuilder(); - getAddressComponentsFieldBuilder(); - getPlusCodeFieldBuilder(); - getLocationFieldBuilder(); - getViewportFieldBuilder(); - getReviewsFieldBuilder(); - getRegularOpeningHoursFieldBuilder(); - getTimeZoneFieldBuilder(); - getPhotosFieldBuilder(); - getAttributionsFieldBuilder(); - getCurrentOpeningHoursFieldBuilder(); - getCurrentSecondaryOpeningHoursFieldBuilder(); - getRegularSecondaryOpeningHoursFieldBuilder(); - getEditorialSummaryFieldBuilder(); - getPaymentOptionsFieldBuilder(); - getParkingOptionsFieldBuilder(); - getSubDestinationsFieldBuilder(); - getAccessibilityOptionsFieldBuilder(); - getFuelOptionsFieldBuilder(); - getEvChargeOptionsFieldBuilder(); - getGenerativeSummaryFieldBuilder(); - getAreaSummaryFieldBuilder(); - getContainingPlacesFieldBuilder(); - getPriceRangeFieldBuilder(); - } + /** + * + * + *
+   * A URL providing more information about this place.
+   * 
+ * + * string google_maps_uri = 15; + * + * @return The bytes for googleMapsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - bitField2_ = 0; - name_ = ""; - id_ = ""; - displayName_ = null; - if (displayNameBuilder_ != null) { - displayNameBuilder_.dispose(); - displayNameBuilder_ = null; - } - types_ = com.google.protobuf.LazyStringArrayList.emptyList(); - primaryType_ = ""; - primaryTypeDisplayName_ = null; - if (primaryTypeDisplayNameBuilder_ != null) { - primaryTypeDisplayNameBuilder_.dispose(); - primaryTypeDisplayNameBuilder_ = null; - } - nationalPhoneNumber_ = ""; - internationalPhoneNumber_ = ""; - formattedAddress_ = ""; - shortFormattedAddress_ = ""; - postalAddress_ = null; - if (postalAddressBuilder_ != null) { - postalAddressBuilder_.dispose(); - postalAddressBuilder_ = null; - } - if (addressComponentsBuilder_ == null) { - addressComponents_ = java.util.Collections.emptyList(); - } else { - addressComponents_ = null; - addressComponentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - plusCode_ = null; - if (plusCodeBuilder_ != null) { - plusCodeBuilder_.dispose(); - plusCodeBuilder_ = null; - } - location_ = null; - if (locationBuilder_ != null) { - locationBuilder_.dispose(); - locationBuilder_ = null; - } - viewport_ = null; - if (viewportBuilder_ != null) { - viewportBuilder_.dispose(); - viewportBuilder_ = null; - } - rating_ = 0D; - googleMapsUri_ = ""; - websiteUri_ = ""; - if (reviewsBuilder_ == null) { - reviews_ = java.util.Collections.emptyList(); - } else { - reviews_ = null; - reviewsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - regularOpeningHours_ = null; - if (regularOpeningHoursBuilder_ != null) { - regularOpeningHoursBuilder_.dispose(); - regularOpeningHoursBuilder_ = null; - } - utcOffsetMinutes_ = 0; - timeZone_ = null; - if (timeZoneBuilder_ != null) { - timeZoneBuilder_.dispose(); - timeZoneBuilder_ = null; - } - if (photosBuilder_ == null) { - photos_ = java.util.Collections.emptyList(); - } else { - photos_ = null; - photosBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00400000); - adrFormatAddress_ = ""; - businessStatus_ = 0; - priceLevel_ = 0; - if (attributionsBuilder_ == null) { - attributions_ = java.util.Collections.emptyList(); - } else { - attributions_ = null; - attributionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x04000000); - userRatingCount_ = 0; - iconMaskBaseUri_ = ""; - iconBackgroundColor_ = ""; - takeout_ = false; - delivery_ = false; - dineIn_ = false; - curbsidePickup_ = false; - reservable_ = false; - servesBreakfast_ = false; - servesLunch_ = false; - servesDinner_ = false; - servesBeer_ = false; - servesWine_ = false; - servesBrunch_ = false; - servesVegetarianFood_ = false; - currentOpeningHours_ = null; - if (currentOpeningHoursBuilder_ != null) { - currentOpeningHoursBuilder_.dispose(); - currentOpeningHoursBuilder_ = null; - } - if (currentSecondaryOpeningHoursBuilder_ == null) { - currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); - } else { - currentSecondaryOpeningHours_ = null; - currentSecondaryOpeningHoursBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00000800); - if (regularSecondaryOpeningHoursBuilder_ == null) { - regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); - } else { - regularSecondaryOpeningHours_ = null; - regularSecondaryOpeningHoursBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00001000); - editorialSummary_ = null; - if (editorialSummaryBuilder_ != null) { - editorialSummaryBuilder_.dispose(); - editorialSummaryBuilder_ = null; - } - outdoorSeating_ = false; - liveMusic_ = false; - menuForChildren_ = false; - servesCocktails_ = false; - servesDessert_ = false; - servesCoffee_ = false; - goodForChildren_ = false; - allowsDogs_ = false; - restroom_ = false; - goodForGroups_ = false; - goodForWatchingSports_ = false; - paymentOptions_ = null; - if (paymentOptionsBuilder_ != null) { - paymentOptionsBuilder_.dispose(); - paymentOptionsBuilder_ = null; - } - parkingOptions_ = null; - if (parkingOptionsBuilder_ != null) { - parkingOptionsBuilder_.dispose(); - parkingOptionsBuilder_ = null; - } - if (subDestinationsBuilder_ == null) { - subDestinations_ = java.util.Collections.emptyList(); - } else { - subDestinations_ = null; - subDestinationsBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x08000000); - accessibilityOptions_ = null; - if (accessibilityOptionsBuilder_ != null) { - accessibilityOptionsBuilder_.dispose(); - accessibilityOptionsBuilder_ = null; - } - fuelOptions_ = null; - if (fuelOptionsBuilder_ != null) { - fuelOptionsBuilder_.dispose(); - fuelOptionsBuilder_ = null; - } - evChargeOptions_ = null; - if (evChargeOptionsBuilder_ != null) { - evChargeOptionsBuilder_.dispose(); - evChargeOptionsBuilder_ = null; - } - generativeSummary_ = null; - if (generativeSummaryBuilder_ != null) { - generativeSummaryBuilder_.dispose(); - generativeSummaryBuilder_ = null; - } - areaSummary_ = null; - if (areaSummaryBuilder_ != null) { - areaSummaryBuilder_.dispose(); - areaSummaryBuilder_ = null; - } - if (containingPlacesBuilder_ == null) { - containingPlaces_ = java.util.Collections.emptyList(); - } else { - containingPlaces_ = null; - containingPlacesBuilder_.clear(); - } - bitField2_ = (bitField2_ & ~0x00000002); - pureServiceAreaBusiness_ = false; - priceRange_ = null; - if (priceRangeBuilder_ != null) { - priceRangeBuilder_.dispose(); - priceRangeBuilder_ = null; - } - return this; - } + public static final int WEBSITE_URI_FIELD_NUMBER = 16; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.places.v1.PlaceProto - .internal_static_google_maps_places_v1_Place_descriptor; - } + @SuppressWarnings("serial") + private volatile java.lang.Object websiteUri_ = ""; - @java.lang.Override - public com.google.maps.places.v1.Place getDefaultInstanceForType() { - return com.google.maps.places.v1.Place.getDefaultInstance(); + /** + * + * + *
+   * The authoritative website for this place, e.g. a business' homepage.
+   * Note that for places that are part of a chain (e.g. an IKEA store), this
+   * will usually be the website for the individual store, not the overall
+   * chain.
+   * 
+ * + * string website_uri = 16; + * + * @return The websiteUri. + */ + @java.lang.Override + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; } + } - @java.lang.Override - public com.google.maps.places.v1.Place build() { - com.google.maps.places.v1.Place result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
+   * The authoritative website for this place, e.g. a business' homepage.
+   * Note that for places that are part of a chain (e.g. an IKEA store), this
+   * will usually be the website for the individual store, not the overall
+   * chain.
+   * 
+ * + * string website_uri = 16; + * + * @return The bytes for websiteUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public com.google.maps.places.v1.Place buildPartial() { - com.google.maps.places.v1.Place result = new com.google.maps.places.v1.Place(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - if (bitField2_ != 0) { - buildPartial2(result); - } - onBuilt(); - return result; - } + public static final int REVIEWS_FIELD_NUMBER = 53; - private void buildPartialRepeatedFields(com.google.maps.places.v1.Place result) { - if (addressComponentsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - addressComponents_ = java.util.Collections.unmodifiableList(addressComponents_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.addressComponents_ = addressComponents_; - } else { - result.addressComponents_ = addressComponentsBuilder_.build(); - } - if (reviewsBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0)) { - reviews_ = java.util.Collections.unmodifiableList(reviews_); - bitField0_ = (bitField0_ & ~0x00040000); - } - result.reviews_ = reviews_; - } else { - result.reviews_ = reviewsBuilder_.build(); - } - if (photosBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0)) { - photos_ = java.util.Collections.unmodifiableList(photos_); - bitField0_ = (bitField0_ & ~0x00400000); - } - result.photos_ = photos_; - } else { - result.photos_ = photosBuilder_.build(); - } - if (attributionsBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0)) { - attributions_ = java.util.Collections.unmodifiableList(attributions_); - bitField0_ = (bitField0_ & ~0x04000000); - } - result.attributions_ = attributions_; - } else { - result.attributions_ = attributionsBuilder_.build(); - } - if (currentSecondaryOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0)) { - currentSecondaryOpeningHours_ = - java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); - bitField1_ = (bitField1_ & ~0x00000800); - } - result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHours_; - } else { - result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHoursBuilder_.build(); - } - if (regularSecondaryOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0)) { - regularSecondaryOpeningHours_ = - java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); - bitField1_ = (bitField1_ & ~0x00001000); - } - result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHours_; - } else { - result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHoursBuilder_.build(); - } - if (subDestinationsBuilder_ == null) { - if (((bitField1_ & 0x08000000) != 0)) { - subDestinations_ = java.util.Collections.unmodifiableList(subDestinations_); - bitField1_ = (bitField1_ & ~0x08000000); - } - result.subDestinations_ = subDestinations_; - } else { - result.subDestinations_ = subDestinationsBuilder_.build(); - } - if (containingPlacesBuilder_ == null) { - if (((bitField2_ & 0x00000002) != 0)) { - containingPlaces_ = java.util.Collections.unmodifiableList(containingPlaces_); - bitField2_ = (bitField2_ & ~0x00000002); - } - result.containingPlaces_ = containingPlaces_; - } else { - result.containingPlaces_ = containingPlacesBuilder_.build(); - } - } + @SuppressWarnings("serial") + private java.util.List reviews_; - private void buildPartial0(com.google.maps.places.v1.Place result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.id_ = id_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = - displayNameBuilder_ == null ? displayName_ : displayNameBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - types_.makeImmutable(); - result.types_ = types_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.primaryType_ = primaryType_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.primaryTypeDisplayName_ = - primaryTypeDisplayNameBuilder_ == null - ? primaryTypeDisplayName_ - : primaryTypeDisplayNameBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.nationalPhoneNumber_ = nationalPhoneNumber_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.internationalPhoneNumber_ = internationalPhoneNumber_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.formattedAddress_ = formattedAddress_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.shortFormattedAddress_ = shortFormattedAddress_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.postalAddress_ = - postalAddressBuilder_ == null ? postalAddress_ : postalAddressBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.plusCode_ = plusCodeBuilder_ == null ? plusCode_ : plusCodeBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.rating_ = rating_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.googleMapsUri_ = googleMapsUri_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.websiteUri_ = websiteUri_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.regularOpeningHours_ = - regularOpeningHoursBuilder_ == null - ? regularOpeningHours_ - : regularOpeningHoursBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.utcOffsetMinutes_ = utcOffsetMinutes_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.adrFormatAddress_ = adrFormatAddress_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.businessStatus_ = businessStatus_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.priceLevel_ = priceLevel_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.userRatingCount_ = userRatingCount_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.iconMaskBaseUri_ = iconMaskBaseUri_; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.iconBackgroundColor_ = iconBackgroundColor_; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.takeout_ = takeout_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.delivery_ = delivery_; - to_bitField0_ |= 0x00000800; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.maps.places.v1.Place result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.dineIn_ = dineIn_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.curbsidePickup_ = curbsidePickup_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.reservable_ = reservable_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.servesBreakfast_ = servesBreakfast_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.servesLunch_ = servesLunch_; - to_bitField0_ |= 0x00010000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.servesDinner_ = servesDinner_; - to_bitField0_ |= 0x00020000; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.servesBeer_ = servesBeer_; - to_bitField0_ |= 0x00040000; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.servesWine_ = servesWine_; - to_bitField0_ |= 0x00080000; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.servesBrunch_ = servesBrunch_; - to_bitField0_ |= 0x00100000; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.servesVegetarianFood_ = servesVegetarianFood_; - to_bitField0_ |= 0x00200000; - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.currentOpeningHours_ = - currentOpeningHoursBuilder_ == null - ? currentOpeningHours_ - : currentOpeningHoursBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.editorialSummary_ = - editorialSummaryBuilder_ == null ? editorialSummary_ : editorialSummaryBuilder_.build(); - to_bitField0_ |= 0x00800000; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.outdoorSeating_ = outdoorSeating_; - to_bitField0_ |= 0x01000000; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.liveMusic_ = liveMusic_; - to_bitField0_ |= 0x02000000; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.menuForChildren_ = menuForChildren_; - to_bitField0_ |= 0x04000000; - } - if (((from_bitField1_ & 0x00020000) != 0)) { - result.servesCocktails_ = servesCocktails_; - to_bitField0_ |= 0x08000000; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.servesDessert_ = servesDessert_; - to_bitField0_ |= 0x10000000; - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.servesCoffee_ = servesCoffee_; - to_bitField0_ |= 0x20000000; - } - if (((from_bitField1_ & 0x00100000) != 0)) { - result.goodForChildren_ = goodForChildren_; - to_bitField0_ |= 0x40000000; - } - if (((from_bitField1_ & 0x00200000) != 0)) { - result.allowsDogs_ = allowsDogs_; - to_bitField0_ |= 0x80000000; - } - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00400000) != 0)) { - result.restroom_ = restroom_; - to_bitField1_ |= 0x00000001; - } - if (((from_bitField1_ & 0x00800000) != 0)) { - result.goodForGroups_ = goodForGroups_; - to_bitField1_ |= 0x00000002; - } - if (((from_bitField1_ & 0x01000000) != 0)) { - result.goodForWatchingSports_ = goodForWatchingSports_; - to_bitField1_ |= 0x00000004; - } - if (((from_bitField1_ & 0x02000000) != 0)) { - result.paymentOptions_ = - paymentOptionsBuilder_ == null ? paymentOptions_ : paymentOptionsBuilder_.build(); - to_bitField1_ |= 0x00000008; - } - if (((from_bitField1_ & 0x04000000) != 0)) { - result.parkingOptions_ = - parkingOptionsBuilder_ == null ? parkingOptions_ : parkingOptionsBuilder_.build(); - to_bitField1_ |= 0x00000010; - } - if (((from_bitField1_ & 0x10000000) != 0)) { - result.accessibilityOptions_ = - accessibilityOptionsBuilder_ == null - ? accessibilityOptions_ - : accessibilityOptionsBuilder_.build(); - to_bitField1_ |= 0x00000020; - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.fuelOptions_ = - fuelOptionsBuilder_ == null ? fuelOptions_ : fuelOptionsBuilder_.build(); - to_bitField1_ |= 0x00000040; - } - if (((from_bitField1_ & 0x40000000) != 0)) { - result.evChargeOptions_ = - evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); - to_bitField1_ |= 0x00000080; - } - if (((from_bitField1_ & 0x80000000) != 0)) { - result.generativeSummary_ = - generativeSummaryBuilder_ == null - ? generativeSummary_ - : generativeSummaryBuilder_.build(); - to_bitField1_ |= 0x00000100; - } - result.bitField0_ |= to_bitField0_; - result.bitField1_ |= to_bitField1_; - } - - private void buildPartial2(com.google.maps.places.v1.Place result) { - int from_bitField2_ = bitField2_; - int to_bitField1_ = 0; - if (((from_bitField2_ & 0x00000001) != 0)) { - result.areaSummary_ = - areaSummaryBuilder_ == null ? areaSummary_ : areaSummaryBuilder_.build(); - to_bitField1_ |= 0x00000200; - } - if (((from_bitField2_ & 0x00000004) != 0)) { - result.pureServiceAreaBusiness_ = pureServiceAreaBusiness_; - to_bitField1_ |= 0x00000400; - } - if (((from_bitField2_ & 0x00000008) != 0)) { - result.priceRange_ = priceRangeBuilder_ == null ? priceRange_ : priceRangeBuilder_.build(); - to_bitField1_ |= 0x00000800; - } - result.bitField1_ |= to_bitField1_; - } + /** + * + * + *
+   * List of reviews about this place, sorted by relevance. A maximum of 5
+   * reviews can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 53; + */ + @java.lang.Override + public java.util.List getReviewsList() { + return reviews_; + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } + /** + * + * + *
+   * List of reviews about this place, sorted by relevance. A maximum of 5
+   * reviews can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 53; + */ + @java.lang.Override + public java.util.List + getReviewsOrBuilderList() { + return reviews_; + } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + /** + * + * + *
+   * List of reviews about this place, sorted by relevance. A maximum of 5
+   * reviews can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 53; + */ + @java.lang.Override + public int getReviewsCount() { + return reviews_.size(); + } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } + /** + * + * + *
+   * List of reviews about this place, sorted by relevance. A maximum of 5
+   * reviews can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 53; + */ + @java.lang.Override + public com.google.maps.places.v1.Review getReviews(int index) { + return reviews_.get(index); + } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + /** + * + * + *
+   * List of reviews about this place, sorted by relevance. A maximum of 5
+   * reviews can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Review reviews = 53; + */ + @java.lang.Override + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + return reviews_.get(index); + } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } + public static final int REGULAR_OPENING_HOURS_FIELD_NUMBER = 21; + private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + /** + * + * + *
+   * The regular hours of operation. Note that if a place is always open (24
+   * hours), the `close` field will not be set. Clients can rely on always open
+   * (24 hours) being represented as an
+   * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+   * period containing
+   * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`,
+   * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`, and
+   * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * + * @return Whether the regularOpeningHours field is set. + */ + @java.lang.Override + public boolean hasRegularOpeningHours() { + return ((bitField0_ & 0x00000040) != 0); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.maps.places.v1.Place) { - return mergeFrom((com.google.maps.places.v1.Place) other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
+   * The regular hours of operation. Note that if a place is always open (24
+   * hours), the `close` field will not be set. Clients can rely on always open
+   * (24 hours) being represented as an
+   * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+   * period containing
+   * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`,
+   * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`, and
+   * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * + * @return The regularOpeningHours. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { + return regularOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : regularOpeningHours_; + } - public Builder mergeFrom(com.google.maps.places.v1.Place other) { - if (other == com.google.maps.places.v1.Place.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDisplayName()) { - mergeDisplayName(other.getDisplayName()); - } - if (!other.types_.isEmpty()) { - if (types_.isEmpty()) { - types_ = other.types_; - bitField0_ |= 0x00000008; - } else { - ensureTypesIsMutable(); - types_.addAll(other.types_); - } - onChanged(); - } - if (!other.getPrimaryType().isEmpty()) { - primaryType_ = other.primaryType_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasPrimaryTypeDisplayName()) { - mergePrimaryTypeDisplayName(other.getPrimaryTypeDisplayName()); - } - if (!other.getNationalPhoneNumber().isEmpty()) { - nationalPhoneNumber_ = other.nationalPhoneNumber_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getInternationalPhoneNumber().isEmpty()) { - internationalPhoneNumber_ = other.internationalPhoneNumber_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getFormattedAddress().isEmpty()) { - formattedAddress_ = other.formattedAddress_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getShortFormattedAddress().isEmpty()) { - shortFormattedAddress_ = other.shortFormattedAddress_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasPostalAddress()) { - mergePostalAddress(other.getPostalAddress()); - } - if (addressComponentsBuilder_ == null) { - if (!other.addressComponents_.isEmpty()) { - if (addressComponents_.isEmpty()) { - addressComponents_ = other.addressComponents_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureAddressComponentsIsMutable(); - addressComponents_.addAll(other.addressComponents_); - } - onChanged(); - } - } else { - if (!other.addressComponents_.isEmpty()) { - if (addressComponentsBuilder_.isEmpty()) { - addressComponentsBuilder_.dispose(); - addressComponentsBuilder_ = null; - addressComponents_ = other.addressComponents_; - bitField0_ = (bitField0_ & ~0x00000800); - addressComponentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAddressComponentsFieldBuilder() - : null; - } else { - addressComponentsBuilder_.addAllMessages(other.addressComponents_); - } - } - } - if (other.hasPlusCode()) { - mergePlusCode(other.getPlusCode()); - } - if (other.hasLocation()) { - mergeLocation(other.getLocation()); - } - if (other.hasViewport()) { - mergeViewport(other.getViewport()); - } - if (other.getRating() != 0D) { - setRating(other.getRating()); - } - if (!other.getGoogleMapsUri().isEmpty()) { - googleMapsUri_ = other.googleMapsUri_; - bitField0_ |= 0x00010000; - onChanged(); - } - if (!other.getWebsiteUri().isEmpty()) { - websiteUri_ = other.websiteUri_; - bitField0_ |= 0x00020000; - onChanged(); - } - if (reviewsBuilder_ == null) { - if (!other.reviews_.isEmpty()) { - if (reviews_.isEmpty()) { - reviews_ = other.reviews_; - bitField0_ = (bitField0_ & ~0x00040000); - } else { - ensureReviewsIsMutable(); - reviews_.addAll(other.reviews_); - } - onChanged(); - } - } else { - if (!other.reviews_.isEmpty()) { - if (reviewsBuilder_.isEmpty()) { - reviewsBuilder_.dispose(); - reviewsBuilder_ = null; - reviews_ = other.reviews_; - bitField0_ = (bitField0_ & ~0x00040000); - reviewsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReviewsFieldBuilder() - : null; - } else { - reviewsBuilder_.addAllMessages(other.reviews_); - } - } - } - if (other.hasRegularOpeningHours()) { - mergeRegularOpeningHours(other.getRegularOpeningHours()); - } - if (other.hasUtcOffsetMinutes()) { - setUtcOffsetMinutes(other.getUtcOffsetMinutes()); - } - if (other.hasTimeZone()) { - mergeTimeZone(other.getTimeZone()); - } - if (photosBuilder_ == null) { - if (!other.photos_.isEmpty()) { - if (photos_.isEmpty()) { - photos_ = other.photos_; - bitField0_ = (bitField0_ & ~0x00400000); - } else { - ensurePhotosIsMutable(); - photos_.addAll(other.photos_); - } - onChanged(); - } - } else { - if (!other.photos_.isEmpty()) { - if (photosBuilder_.isEmpty()) { - photosBuilder_.dispose(); - photosBuilder_ = null; - photos_ = other.photos_; - bitField0_ = (bitField0_ & ~0x00400000); - photosBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhotosFieldBuilder() - : null; - } else { - photosBuilder_.addAllMessages(other.photos_); - } - } - } - if (!other.getAdrFormatAddress().isEmpty()) { - adrFormatAddress_ = other.adrFormatAddress_; - bitField0_ |= 0x00800000; - onChanged(); - } - if (other.businessStatus_ != 0) { - setBusinessStatusValue(other.getBusinessStatusValue()); - } - if (other.priceLevel_ != 0) { - setPriceLevelValue(other.getPriceLevelValue()); - } - if (attributionsBuilder_ == null) { - if (!other.attributions_.isEmpty()) { - if (attributions_.isEmpty()) { - attributions_ = other.attributions_; - bitField0_ = (bitField0_ & ~0x04000000); - } else { - ensureAttributionsIsMutable(); - attributions_.addAll(other.attributions_); - } - onChanged(); - } - } else { - if (!other.attributions_.isEmpty()) { - if (attributionsBuilder_.isEmpty()) { - attributionsBuilder_.dispose(); - attributionsBuilder_ = null; - attributions_ = other.attributions_; - bitField0_ = (bitField0_ & ~0x04000000); - attributionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAttributionsFieldBuilder() - : null; - } else { - attributionsBuilder_.addAllMessages(other.attributions_); - } - } - } - if (other.hasUserRatingCount()) { - setUserRatingCount(other.getUserRatingCount()); - } - if (!other.getIconMaskBaseUri().isEmpty()) { - iconMaskBaseUri_ = other.iconMaskBaseUri_; - bitField0_ |= 0x10000000; - onChanged(); - } - if (!other.getIconBackgroundColor().isEmpty()) { - iconBackgroundColor_ = other.iconBackgroundColor_; - bitField0_ |= 0x20000000; - onChanged(); - } - if (other.hasTakeout()) { - setTakeout(other.getTakeout()); - } - if (other.hasDelivery()) { - setDelivery(other.getDelivery()); - } - if (other.hasDineIn()) { - setDineIn(other.getDineIn()); - } - if (other.hasCurbsidePickup()) { - setCurbsidePickup(other.getCurbsidePickup()); - } - if (other.hasReservable()) { - setReservable(other.getReservable()); - } - if (other.hasServesBreakfast()) { - setServesBreakfast(other.getServesBreakfast()); - } - if (other.hasServesLunch()) { - setServesLunch(other.getServesLunch()); - } - if (other.hasServesDinner()) { - setServesDinner(other.getServesDinner()); - } - if (other.hasServesBeer()) { - setServesBeer(other.getServesBeer()); - } - if (other.hasServesWine()) { - setServesWine(other.getServesWine()); - } - if (other.hasServesBrunch()) { - setServesBrunch(other.getServesBrunch()); - } - if (other.hasServesVegetarianFood()) { - setServesVegetarianFood(other.getServesVegetarianFood()); - } - if (other.hasCurrentOpeningHours()) { - mergeCurrentOpeningHours(other.getCurrentOpeningHours()); - } - if (currentSecondaryOpeningHoursBuilder_ == null) { - if (!other.currentSecondaryOpeningHours_.isEmpty()) { - if (currentSecondaryOpeningHours_.isEmpty()) { - currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00000800); - } else { - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.addAll(other.currentSecondaryOpeningHours_); - } - onChanged(); - } - } else { - if (!other.currentSecondaryOpeningHours_.isEmpty()) { - if (currentSecondaryOpeningHoursBuilder_.isEmpty()) { - currentSecondaryOpeningHoursBuilder_.dispose(); - currentSecondaryOpeningHoursBuilder_ = null; - currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00000800); - currentSecondaryOpeningHoursBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCurrentSecondaryOpeningHoursFieldBuilder() - : null; - } else { - currentSecondaryOpeningHoursBuilder_.addAllMessages( - other.currentSecondaryOpeningHours_); - } - } - } - if (regularSecondaryOpeningHoursBuilder_ == null) { - if (!other.regularSecondaryOpeningHours_.isEmpty()) { - if (regularSecondaryOpeningHours_.isEmpty()) { - regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00001000); - } else { - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.addAll(other.regularSecondaryOpeningHours_); - } - onChanged(); - } - } else { - if (!other.regularSecondaryOpeningHours_.isEmpty()) { - if (regularSecondaryOpeningHoursBuilder_.isEmpty()) { - regularSecondaryOpeningHoursBuilder_.dispose(); - regularSecondaryOpeningHoursBuilder_ = null; - regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; - bitField1_ = (bitField1_ & ~0x00001000); - regularSecondaryOpeningHoursBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRegularSecondaryOpeningHoursFieldBuilder() - : null; - } else { - regularSecondaryOpeningHoursBuilder_.addAllMessages( - other.regularSecondaryOpeningHours_); - } - } - } - if (other.hasEditorialSummary()) { - mergeEditorialSummary(other.getEditorialSummary()); - } - if (other.hasOutdoorSeating()) { - setOutdoorSeating(other.getOutdoorSeating()); - } - if (other.hasLiveMusic()) { - setLiveMusic(other.getLiveMusic()); - } - if (other.hasMenuForChildren()) { - setMenuForChildren(other.getMenuForChildren()); - } - if (other.hasServesCocktails()) { - setServesCocktails(other.getServesCocktails()); - } - if (other.hasServesDessert()) { - setServesDessert(other.getServesDessert()); - } - if (other.hasServesCoffee()) { - setServesCoffee(other.getServesCoffee()); - } - if (other.hasGoodForChildren()) { - setGoodForChildren(other.getGoodForChildren()); - } - if (other.hasAllowsDogs()) { - setAllowsDogs(other.getAllowsDogs()); - } - if (other.hasRestroom()) { - setRestroom(other.getRestroom()); - } - if (other.hasGoodForGroups()) { - setGoodForGroups(other.getGoodForGroups()); - } - if (other.hasGoodForWatchingSports()) { - setGoodForWatchingSports(other.getGoodForWatchingSports()); - } - if (other.hasPaymentOptions()) { - mergePaymentOptions(other.getPaymentOptions()); - } - if (other.hasParkingOptions()) { - mergeParkingOptions(other.getParkingOptions()); - } - if (subDestinationsBuilder_ == null) { - if (!other.subDestinations_.isEmpty()) { - if (subDestinations_.isEmpty()) { - subDestinations_ = other.subDestinations_; - bitField1_ = (bitField1_ & ~0x08000000); - } else { - ensureSubDestinationsIsMutable(); - subDestinations_.addAll(other.subDestinations_); - } - onChanged(); - } - } else { - if (!other.subDestinations_.isEmpty()) { - if (subDestinationsBuilder_.isEmpty()) { - subDestinationsBuilder_.dispose(); - subDestinationsBuilder_ = null; - subDestinations_ = other.subDestinations_; - bitField1_ = (bitField1_ & ~0x08000000); - subDestinationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSubDestinationsFieldBuilder() - : null; - } else { - subDestinationsBuilder_.addAllMessages(other.subDestinations_); - } - } - } - if (other.hasAccessibilityOptions()) { - mergeAccessibilityOptions(other.getAccessibilityOptions()); - } - if (other.hasFuelOptions()) { - mergeFuelOptions(other.getFuelOptions()); - } - if (other.hasEvChargeOptions()) { - mergeEvChargeOptions(other.getEvChargeOptions()); - } - if (other.hasGenerativeSummary()) { - mergeGenerativeSummary(other.getGenerativeSummary()); - } - if (other.hasAreaSummary()) { - mergeAreaSummary(other.getAreaSummary()); - } - if (containingPlacesBuilder_ == null) { - if (!other.containingPlaces_.isEmpty()) { - if (containingPlaces_.isEmpty()) { - containingPlaces_ = other.containingPlaces_; - bitField2_ = (bitField2_ & ~0x00000002); - } else { - ensureContainingPlacesIsMutable(); - containingPlaces_.addAll(other.containingPlaces_); - } - onChanged(); - } - } else { - if (!other.containingPlaces_.isEmpty()) { - if (containingPlacesBuilder_.isEmpty()) { - containingPlacesBuilder_.dispose(); - containingPlacesBuilder_ = null; - containingPlaces_ = other.containingPlaces_; - bitField2_ = (bitField2_ & ~0x00000002); - containingPlacesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getContainingPlacesFieldBuilder() - : null; - } else { - containingPlacesBuilder_.addAllMessages(other.containingPlaces_); - } - } - } - if (other.hasPureServiceAreaBusiness()) { - setPureServiceAreaBusiness(other.getPureServiceAreaBusiness()); - } - if (other.hasPriceRange()) { - mergePriceRange(other.getPriceRange()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
+   * The regular hours of operation. Note that if a place is always open (24
+   * hours), the `close` field will not be set. Clients can rely on always open
+   * (24 hours) being represented as an
+   * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+   * period containing
+   * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`,
+   * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`, and
+   * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+   * with value `0`.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { + return regularOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : regularOpeningHours_; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static final int UTC_OFFSET_MINUTES_FIELD_NUMBER = 22; + private int utcOffsetMinutes_ = 0; - @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 { + /** + * + * + *
+   * Number of minutes this place's timezone is currently offset from UTC.
+   * This is expressed in minutes to support timezones that are offset by
+   * fractions of an hour, e.g. X hours and 15 minutes.
+   * 
+ * + * optional int32 utc_offset_minutes = 22; + * + * @return Whether the utcOffsetMinutes field is set. + */ + @java.lang.Override + public boolean hasUtcOffsetMinutes() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Number of minutes this place's timezone is currently offset from UTC.
+   * This is expressed in minutes to support timezones that are offset by
+   * fractions of an hour, e.g. X hours and 15 minutes.
+   * 
+ * + * optional int32 utc_offset_minutes = 22; + * + * @return The utcOffsetMinutes. + */ + @java.lang.Override + public int getUtcOffsetMinutes() { + return utcOffsetMinutes_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 88; + private com.google.type.TimeZone timeZone_; + + /** + * + * + *
+   * IANA Time Zone Database time zone. For example "America/New_York".
+   * 
+ * + * .google.type.TimeZone time_zone = 88; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * IANA Time Zone Database time zone. For example "America/New_York".
+   * 
+ * + * .google.type.TimeZone time_zone = 88; + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + /** + * + * + *
+   * IANA Time Zone Database time zone. For example "America/New_York".
+   * 
+ * + * .google.type.TimeZone time_zone = 88; + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int PHOTOS_FIELD_NUMBER = 54; + + @SuppressWarnings("serial") + private java.util.List photos_; + + /** + * + * + *
+   * Information (including references) about photos of this place. A maximum of
+   * 10 photos can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 54; + */ + @java.lang.Override + public java.util.List getPhotosList() { + return photos_; + } + + /** + * + * + *
+   * Information (including references) about photos of this place. A maximum of
+   * 10 photos can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 54; + */ + @java.lang.Override + public java.util.List + getPhotosOrBuilderList() { + return photos_; + } + + /** + * + * + *
+   * Information (including references) about photos of this place. A maximum of
+   * 10 photos can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 54; + */ + @java.lang.Override + public int getPhotosCount() { + return photos_.size(); + } + + /** + * + * + *
+   * Information (including references) about photos of this place. A maximum of
+   * 10 photos can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 54; + */ + @java.lang.Override + public com.google.maps.places.v1.Photo getPhotos(int index) { + return photos_.get(index); + } + + /** + * + * + *
+   * Information (including references) about photos of this place. A maximum of
+   * 10 photos can be returned.
+   * 
+ * + * repeated .google.maps.places.v1.Photo photos = 54; + */ + @java.lang.Override + public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { + return photos_.get(index); + } + + public static final int ADR_FORMAT_ADDRESS_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object adrFormatAddress_ = ""; + + /** + * + * + *
+   * The place's address in adr microformat: http://microformats.org/wiki/adr.
+   * 
+ * + * string adr_format_address = 24; + * + * @return The adrFormatAddress. + */ + @java.lang.Override + public java.lang.String getAdrFormatAddress() { + java.lang.Object ref = adrFormatAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adrFormatAddress_ = s; + return s; + } + } + + /** + * + * + *
+   * The place's address in adr microformat: http://microformats.org/wiki/adr.
+   * 
+ * + * string adr_format_address = 24; + * + * @return The bytes for adrFormatAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdrFormatAddressBytes() { + java.lang.Object ref = adrFormatAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adrFormatAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUSINESS_STATUS_FIELD_NUMBER = 25; + private int businessStatus_ = 0; + + /** + * + * + *
+   * The business status for the place.
+   * 
+ * + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @return The enum numeric value on the wire for businessStatus. + */ + @java.lang.Override + public int getBusinessStatusValue() { + return businessStatus_; + } + + /** + * + * + *
+   * The business status for the place.
+   * 
+ * + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @return The businessStatus. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { + com.google.maps.places.v1.Place.BusinessStatus result = + com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); + return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; + } + + public static final int PRICE_LEVEL_FIELD_NUMBER = 26; + private int priceLevel_ = 0; + + /** + * + * + *
+   * Price level of the place.
+   * 
+ * + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @return The enum numeric value on the wire for priceLevel. + */ + @java.lang.Override + public int getPriceLevelValue() { + return priceLevel_; + } + + /** + * + * + *
+   * Price level of the place.
+   * 
+ * + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @return The priceLevel. + */ + @java.lang.Override + public com.google.maps.places.v1.PriceLevel getPriceLevel() { + com.google.maps.places.v1.PriceLevel result = + com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); + return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; + } + + public static final int ATTRIBUTIONS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List attributions_; + + /** + * + * + *
+   * A set of data provider that must be shown with this result.
+   * 
+ * + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + */ + @java.lang.Override + public java.util.List getAttributionsList() { + return attributions_; + } + + /** + * + * + *
+   * A set of data provider that must be shown with this result.
+   * 
+ * + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + */ + @java.lang.Override + public java.util.List + getAttributionsOrBuilderList() { + return attributions_; + } + + /** + * + * + *
+   * A set of data provider that must be shown with this result.
+   * 
+ * + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + */ + @java.lang.Override + public int getAttributionsCount() { + return attributions_.size(); + } + + /** + * + * + *
+   * A set of data provider that must be shown with this result.
+   * 
+ * + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { + return attributions_.get(index); + } + + /** + * + * + *
+   * A set of data provider that must be shown with this result.
+   * 
+ * + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder(int index) { + return attributions_.get(index); + } + + public static final int USER_RATING_COUNT_FIELD_NUMBER = 28; + private int userRatingCount_ = 0; + + /** + * + * + *
+   * The total number of reviews (with or without text) for this place.
+   * 
+ * + * optional int32 user_rating_count = 28; + * + * @return Whether the userRatingCount field is set. + */ + @java.lang.Override + public boolean hasUserRatingCount() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * The total number of reviews (with or without text) for this place.
+   * 
+ * + * optional int32 user_rating_count = 28; + * + * @return The userRatingCount. + */ + @java.lang.Override + public int getUserRatingCount() { + return userRatingCount_; + } + + public static final int ICON_MASK_BASE_URI_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconMaskBaseUri_ = ""; + + /** + * + * + *
+   * A truncated URL to an icon mask. User can access different icon type by
+   * appending type suffix to the end (eg, ".svg" or ".png").
+   * 
+ * + * string icon_mask_base_uri = 29; + * + * @return The iconMaskBaseUri. + */ + @java.lang.Override + public java.lang.String getIconMaskBaseUri() { + java.lang.Object ref = iconMaskBaseUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconMaskBaseUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A truncated URL to an icon mask. User can access different icon type by
+   * appending type suffix to the end (eg, ".svg" or ".png").
+   * 
+ * + * string icon_mask_base_uri = 29; + * + * @return The bytes for iconMaskBaseUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { + java.lang.Object ref = iconMaskBaseUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconMaskBaseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_BACKGROUND_COLOR_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconBackgroundColor_ = ""; + + /** + * + * + *
+   * Background color for icon_mask in hex format, e.g. #909CE1.
+   * 
+ * + * string icon_background_color = 30; + * + * @return The iconBackgroundColor. + */ + @java.lang.Override + public java.lang.String getIconBackgroundColor() { + java.lang.Object ref = iconBackgroundColor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconBackgroundColor_ = s; + return s; + } + } + + /** + * + * + *
+   * Background color for icon_mask in hex format, e.g. #909CE1.
+   * 
+ * + * string icon_background_color = 30; + * + * @return The bytes for iconBackgroundColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconBackgroundColorBytes() { + java.lang.Object ref = iconBackgroundColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconBackgroundColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAKEOUT_FIELD_NUMBER = 33; + private boolean takeout_ = false; + + /** + * + * + *
+   * Specifies if the business supports takeout.
+   * 
+ * + * optional bool takeout = 33; + * + * @return Whether the takeout field is set. + */ + @java.lang.Override + public boolean hasTakeout() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Specifies if the business supports takeout.
+   * 
+ * + * optional bool takeout = 33; + * + * @return The takeout. + */ + @java.lang.Override + public boolean getTakeout() { + return takeout_; + } + + public static final int DELIVERY_FIELD_NUMBER = 34; + private boolean delivery_ = false; + + /** + * + * + *
+   * Specifies if the business supports delivery.
+   * 
+ * + * optional bool delivery = 34; + * + * @return Whether the delivery field is set. + */ + @java.lang.Override + public boolean hasDelivery() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Specifies if the business supports delivery.
+   * 
+ * + * optional bool delivery = 34; + * + * @return The delivery. + */ + @java.lang.Override + public boolean getDelivery() { + return delivery_; + } + + public static final int DINE_IN_FIELD_NUMBER = 35; + private boolean dineIn_ = false; + + /** + * + * + *
+   * Specifies if the business supports indoor or outdoor seating options.
+   * 
+ * + * optional bool dine_in = 35; + * + * @return Whether the dineIn field is set. + */ + @java.lang.Override + public boolean hasDineIn() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * Specifies if the business supports indoor or outdoor seating options.
+   * 
+ * + * optional bool dine_in = 35; + * + * @return The dineIn. + */ + @java.lang.Override + public boolean getDineIn() { + return dineIn_; + } + + public static final int CURBSIDE_PICKUP_FIELD_NUMBER = 36; + private boolean curbsidePickup_ = false; + + /** + * + * + *
+   * Specifies if the business supports curbside pickup.
+   * 
+ * + * optional bool curbside_pickup = 36; + * + * @return Whether the curbsidePickup field is set. + */ + @java.lang.Override + public boolean hasCurbsidePickup() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Specifies if the business supports curbside pickup.
+   * 
+ * + * optional bool curbside_pickup = 36; + * + * @return The curbsidePickup. + */ + @java.lang.Override + public boolean getCurbsidePickup() { + return curbsidePickup_; + } + + public static final int RESERVABLE_FIELD_NUMBER = 38; + private boolean reservable_ = false; + + /** + * + * + *
+   * Specifies if the place supports reservations.
+   * 
+ * + * optional bool reservable = 38; + * + * @return Whether the reservable field is set. + */ + @java.lang.Override + public boolean hasReservable() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Specifies if the place supports reservations.
+   * 
+ * + * optional bool reservable = 38; + * + * @return The reservable. + */ + @java.lang.Override + public boolean getReservable() { + return reservable_; + } + + public static final int SERVES_BREAKFAST_FIELD_NUMBER = 39; + private boolean servesBreakfast_ = false; + + /** + * + * + *
+   * Specifies if the place serves breakfast.
+   * 
+ * + * optional bool serves_breakfast = 39; + * + * @return Whether the servesBreakfast field is set. + */ + @java.lang.Override + public boolean hasServesBreakfast() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves breakfast.
+   * 
+ * + * optional bool serves_breakfast = 39; + * + * @return The servesBreakfast. + */ + @java.lang.Override + public boolean getServesBreakfast() { + return servesBreakfast_; + } + + public static final int SERVES_LUNCH_FIELD_NUMBER = 40; + private boolean servesLunch_ = false; + + /** + * + * + *
+   * Specifies if the place serves lunch.
+   * 
+ * + * optional bool serves_lunch = 40; + * + * @return Whether the servesLunch field is set. + */ + @java.lang.Override + public boolean hasServesLunch() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves lunch.
+   * 
+ * + * optional bool serves_lunch = 40; + * + * @return The servesLunch. + */ + @java.lang.Override + public boolean getServesLunch() { + return servesLunch_; + } + + public static final int SERVES_DINNER_FIELD_NUMBER = 41; + private boolean servesDinner_ = false; + + /** + * + * + *
+   * Specifies if the place serves dinner.
+   * 
+ * + * optional bool serves_dinner = 41; + * + * @return Whether the servesDinner field is set. + */ + @java.lang.Override + public boolean hasServesDinner() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves dinner.
+   * 
+ * + * optional bool serves_dinner = 41; + * + * @return The servesDinner. + */ + @java.lang.Override + public boolean getServesDinner() { + return servesDinner_; + } + + public static final int SERVES_BEER_FIELD_NUMBER = 42; + private boolean servesBeer_ = false; + + /** + * + * + *
+   * Specifies if the place serves beer.
+   * 
+ * + * optional bool serves_beer = 42; + * + * @return Whether the servesBeer field is set. + */ + @java.lang.Override + public boolean hasServesBeer() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves beer.
+   * 
+ * + * optional bool serves_beer = 42; + * + * @return The servesBeer. + */ + @java.lang.Override + public boolean getServesBeer() { + return servesBeer_; + } + + public static final int SERVES_WINE_FIELD_NUMBER = 43; + private boolean servesWine_ = false; + + /** + * + * + *
+   * Specifies if the place serves wine.
+   * 
+ * + * optional bool serves_wine = 43; + * + * @return Whether the servesWine field is set. + */ + @java.lang.Override + public boolean hasServesWine() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves wine.
+   * 
+ * + * optional bool serves_wine = 43; + * + * @return The servesWine. + */ + @java.lang.Override + public boolean getServesWine() { + return servesWine_; + } + + public static final int SERVES_BRUNCH_FIELD_NUMBER = 44; + private boolean servesBrunch_ = false; + + /** + * + * + *
+   * Specifies if the place serves brunch.
+   * 
+ * + * optional bool serves_brunch = 44; + * + * @return Whether the servesBrunch field is set. + */ + @java.lang.Override + public boolean hasServesBrunch() { + return ((bitField0_ & 0x00100000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves brunch.
+   * 
+ * + * optional bool serves_brunch = 44; + * + * @return The servesBrunch. + */ + @java.lang.Override + public boolean getServesBrunch() { + return servesBrunch_; + } + + public static final int SERVES_VEGETARIAN_FOOD_FIELD_NUMBER = 45; + private boolean servesVegetarianFood_ = false; + + /** + * + * + *
+   * Specifies if the place serves vegetarian food.
+   * 
+ * + * optional bool serves_vegetarian_food = 45; + * + * @return Whether the servesVegetarianFood field is set. + */ + @java.lang.Override + public boolean hasServesVegetarianFood() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+   * Specifies if the place serves vegetarian food.
+   * 
+ * + * optional bool serves_vegetarian_food = 45; + * + * @return The servesVegetarianFood. + */ + @java.lang.Override + public boolean getServesVegetarianFood() { + return servesVegetarianFood_; + } + + public static final int CURRENT_OPENING_HOURS_FIELD_NUMBER = 46; + private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; + + /** + * + * + *
+   * The hours of operation for the next seven days (including today). The time
+   * period starts at midnight on the date of the request and ends at 11:59 pm
+   * six days later. This field includes the special_days subfield of all hours,
+   * set for dates that have exceptional hours.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * @return Whether the currentOpeningHours field is set. + */ + @java.lang.Override + public boolean hasCurrentOpeningHours() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+   * The hours of operation for the next seven days (including today). The time
+   * period starts at midnight on the date of the request and ends at 11:59 pm
+   * six days later. This field includes the special_days subfield of all hours,
+   * set for dates that have exceptional hours.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * @return The currentOpeningHours. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { + return currentOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : currentOpeningHours_; + } + + /** + * + * + *
+   * The hours of operation for the next seven days (including today). The time
+   * period starts at midnight on the date of the request and ends at 11:59 pm
+   * six days later. This field includes the special_days subfield of all hours,
+   * set for dates that have exceptional hours.
+   * 
+ * + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { + return currentOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : currentOpeningHours_; + } + + public static final int CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 47; + + @SuppressWarnings("serial") + private java.util.List + currentSecondaryOpeningHours_; + + /** + * + * + *
+   * Contains an array of entries for the next seven days including information
+   * about secondary hours of a business. Secondary hours are different from a
+   * business's main hours. For example, a restaurant can specify drive through
+   * hours or delivery hours as its secondary hours. This field populates the
+   * type subfield, which draws from a predefined list of opening hours types
+   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+   * place. This field includes the special_days subfield of all hours, set for
+   * dates that have exceptional hours.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * + */ + @java.lang.Override + public java.util.List + getCurrentSecondaryOpeningHoursList() { + return currentSecondaryOpeningHours_; + } + + /** + * + * + *
+   * Contains an array of entries for the next seven days including information
+   * about secondary hours of a business. Secondary hours are different from a
+   * business's main hours. For example, a restaurant can specify drive through
+   * hours or delivery hours as its secondary hours. This field populates the
+   * type subfield, which draws from a predefined list of opening hours types
+   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+   * place. This field includes the special_days subfield of all hours, set for
+   * dates that have exceptional hours.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * + */ + @java.lang.Override + public java.util.List + getCurrentSecondaryOpeningHoursOrBuilderList() { + return currentSecondaryOpeningHours_; + } + + /** + * + * + *
+   * Contains an array of entries for the next seven days including information
+   * about secondary hours of a business. Secondary hours are different from a
+   * business's main hours. For example, a restaurant can specify drive through
+   * hours or delivery hours as its secondary hours. This field populates the
+   * type subfield, which draws from a predefined list of opening hours types
+   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+   * place. This field includes the special_days subfield of all hours, set for
+   * dates that have exceptional hours.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * + */ + @java.lang.Override + public int getCurrentSecondaryOpeningHoursCount() { + return currentSecondaryOpeningHours_.size(); + } + + /** + * + * + *
+   * Contains an array of entries for the next seven days including information
+   * about secondary hours of a business. Secondary hours are different from a
+   * business's main hours. For example, a restaurant can specify drive through
+   * hours or delivery hours as its secondary hours. This field populates the
+   * type subfield, which draws from a predefined list of opening hours types
+   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+   * place. This field includes the special_days subfield of all hours, set for
+   * dates that have exceptional hours.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { + return currentSecondaryOpeningHours_.get(index); + } + + /** + * + * + *
+   * Contains an array of entries for the next seven days including information
+   * about secondary hours of a business. Secondary hours are different from a
+   * business's main hours. For example, a restaurant can specify drive through
+   * hours or delivery hours as its secondary hours. This field populates the
+   * type subfield, which draws from a predefined list of opening hours types
+   * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+   * place. This field includes the special_days subfield of all hours, set for
+   * dates that have exceptional hours.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder + getCurrentSecondaryOpeningHoursOrBuilder(int index) { + return currentSecondaryOpeningHours_.get(index); + } + + public static final int REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private java.util.List + regularSecondaryOpeningHours_; + + /** + * + * + *
+   * Contains an array of entries for information about regular secondary hours
+   * of a business. Secondary hours are different from a business's main hours.
+   * For example, a restaurant can specify drive through hours or delivery hours
+   * as its secondary hours. This field populates the type subfield, which draws
+   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+   * PICKUP, or TAKEOUT) based on the types of the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + @java.lang.Override + public java.util.List + getRegularSecondaryOpeningHoursList() { + return regularSecondaryOpeningHours_; + } + + /** + * + * + *
+   * Contains an array of entries for information about regular secondary hours
+   * of a business. Secondary hours are different from a business's main hours.
+   * For example, a restaurant can specify drive through hours or delivery hours
+   * as its secondary hours. This field populates the type subfield, which draws
+   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+   * PICKUP, or TAKEOUT) based on the types of the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + @java.lang.Override + public java.util.List + getRegularSecondaryOpeningHoursOrBuilderList() { + return regularSecondaryOpeningHours_; + } + + /** + * + * + *
+   * Contains an array of entries for information about regular secondary hours
+   * of a business. Secondary hours are different from a business's main hours.
+   * For example, a restaurant can specify drive through hours or delivery hours
+   * as its secondary hours. This field populates the type subfield, which draws
+   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+   * PICKUP, or TAKEOUT) based on the types of the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + @java.lang.Override + public int getRegularSecondaryOpeningHoursCount() { + return regularSecondaryOpeningHours_.size(); + } + + /** + * + * + *
+   * Contains an array of entries for information about regular secondary hours
+   * of a business. Secondary hours are different from a business's main hours.
+   * For example, a restaurant can specify drive through hours or delivery hours
+   * as its secondary hours. This field populates the type subfield, which draws
+   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+   * PICKUP, or TAKEOUT) based on the types of the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { + return regularSecondaryOpeningHours_.get(index); + } + + /** + * + * + *
+   * Contains an array of entries for information about regular secondary hours
+   * of a business. Secondary hours are different from a business's main hours.
+   * For example, a restaurant can specify drive through hours or delivery hours
+   * as its secondary hours. This field populates the type subfield, which draws
+   * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+   * PICKUP, or TAKEOUT) based on the types of the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder + getRegularSecondaryOpeningHoursOrBuilder(int index) { + return regularSecondaryOpeningHours_.get(index); + } + + public static final int EDITORIAL_SUMMARY_FIELD_NUMBER = 52; + private com.google.type.LocalizedText editorialSummary_; + + /** + * + * + *
+   * Contains a summary of the place. A summary is comprised of a textual
+   * overview, and also includes the language code for these if applicable.
+   * Summary text must be presented as-is and can not be modified or altered.
+   * 
+ * + * .google.type.LocalizedText editorial_summary = 52; + * + * @return Whether the editorialSummary field is set. + */ + @java.lang.Override + public boolean hasEditorialSummary() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
+   * Contains a summary of the place. A summary is comprised of a textual
+   * overview, and also includes the language code for these if applicable.
+   * Summary text must be presented as-is and can not be modified or altered.
+   * 
+ * + * .google.type.LocalizedText editorial_summary = 52; + * + * @return The editorialSummary. + */ + @java.lang.Override + public com.google.type.LocalizedText getEditorialSummary() { + return editorialSummary_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : editorialSummary_; + } + + /** + * + * + *
+   * Contains a summary of the place. A summary is comprised of a textual
+   * overview, and also includes the language code for these if applicable.
+   * Summary text must be presented as-is and can not be modified or altered.
+   * 
+ * + * .google.type.LocalizedText editorial_summary = 52; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { + return editorialSummary_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : editorialSummary_; + } + + public static final int OUTDOOR_SEATING_FIELD_NUMBER = 55; + private boolean outdoorSeating_ = false; + + /** + * + * + *
+   * Place provides outdoor seating.
+   * 
+ * + * optional bool outdoor_seating = 55; + * + * @return Whether the outdoorSeating field is set. + */ + @java.lang.Override + public boolean hasOutdoorSeating() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+   * Place provides outdoor seating.
+   * 
+ * + * optional bool outdoor_seating = 55; + * + * @return The outdoorSeating. + */ + @java.lang.Override + public boolean getOutdoorSeating() { + return outdoorSeating_; + } + + public static final int LIVE_MUSIC_FIELD_NUMBER = 56; + private boolean liveMusic_ = false; + + /** + * + * + *
+   * Place provides live music.
+   * 
+ * + * optional bool live_music = 56; + * + * @return Whether the liveMusic field is set. + */ + @java.lang.Override + public boolean hasLiveMusic() { + return ((bitField0_ & 0x02000000) != 0); + } + + /** + * + * + *
+   * Place provides live music.
+   * 
+ * + * optional bool live_music = 56; + * + * @return The liveMusic. + */ + @java.lang.Override + public boolean getLiveMusic() { + return liveMusic_; + } + + public static final int MENU_FOR_CHILDREN_FIELD_NUMBER = 57; + private boolean menuForChildren_ = false; + + /** + * + * + *
+   * Place has a children's menu.
+   * 
+ * + * optional bool menu_for_children = 57; + * + * @return Whether the menuForChildren field is set. + */ + @java.lang.Override + public boolean hasMenuForChildren() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
+   * Place has a children's menu.
+   * 
+ * + * optional bool menu_for_children = 57; + * + * @return The menuForChildren. + */ + @java.lang.Override + public boolean getMenuForChildren() { + return menuForChildren_; + } + + public static final int SERVES_COCKTAILS_FIELD_NUMBER = 58; + private boolean servesCocktails_ = false; + + /** + * + * + *
+   * Place serves cocktails.
+   * 
+ * + * optional bool serves_cocktails = 58; + * + * @return Whether the servesCocktails field is set. + */ + @java.lang.Override + public boolean hasServesCocktails() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+   * Place serves cocktails.
+   * 
+ * + * optional bool serves_cocktails = 58; + * + * @return The servesCocktails. + */ + @java.lang.Override + public boolean getServesCocktails() { + return servesCocktails_; + } + + public static final int SERVES_DESSERT_FIELD_NUMBER = 59; + private boolean servesDessert_ = false; + + /** + * + * + *
+   * Place serves dessert.
+   * 
+ * + * optional bool serves_dessert = 59; + * + * @return Whether the servesDessert field is set. + */ + @java.lang.Override + public boolean hasServesDessert() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
+   * Place serves dessert.
+   * 
+ * + * optional bool serves_dessert = 59; + * + * @return The servesDessert. + */ + @java.lang.Override + public boolean getServesDessert() { + return servesDessert_; + } + + public static final int SERVES_COFFEE_FIELD_NUMBER = 60; + private boolean servesCoffee_ = false; + + /** + * + * + *
+   * Place serves coffee.
+   * 
+ * + * optional bool serves_coffee = 60; + * + * @return Whether the servesCoffee field is set. + */ + @java.lang.Override + public boolean hasServesCoffee() { + return ((bitField0_ & 0x20000000) != 0); + } + + /** + * + * + *
+   * Place serves coffee.
+   * 
+ * + * optional bool serves_coffee = 60; + * + * @return The servesCoffee. + */ + @java.lang.Override + public boolean getServesCoffee() { + return servesCoffee_; + } + + public static final int GOOD_FOR_CHILDREN_FIELD_NUMBER = 62; + private boolean goodForChildren_ = false; + + /** + * + * + *
+   * Place is good for children.
+   * 
+ * + * optional bool good_for_children = 62; + * + * @return Whether the goodForChildren field is set. + */ + @java.lang.Override + public boolean hasGoodForChildren() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+   * Place is good for children.
+   * 
+ * + * optional bool good_for_children = 62; + * + * @return The goodForChildren. + */ + @java.lang.Override + public boolean getGoodForChildren() { + return goodForChildren_; + } + + public static final int ALLOWS_DOGS_FIELD_NUMBER = 63; + private boolean allowsDogs_ = false; + + /** + * + * + *
+   * Place allows dogs.
+   * 
+ * + * optional bool allows_dogs = 63; + * + * @return Whether the allowsDogs field is set. + */ + @java.lang.Override + public boolean hasAllowsDogs() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** + * + * + *
+   * Place allows dogs.
+   * 
+ * + * optional bool allows_dogs = 63; + * + * @return The allowsDogs. + */ + @java.lang.Override + public boolean getAllowsDogs() { + return allowsDogs_; + } + + public static final int RESTROOM_FIELD_NUMBER = 64; + private boolean restroom_ = false; + + /** + * + * + *
+   * Place has restroom.
+   * 
+ * + * optional bool restroom = 64; + * + * @return Whether the restroom field is set. + */ + @java.lang.Override + public boolean hasRestroom() { + return ((bitField1_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Place has restroom.
+   * 
+ * + * optional bool restroom = 64; + * + * @return The restroom. + */ + @java.lang.Override + public boolean getRestroom() { + return restroom_; + } + + public static final int GOOD_FOR_GROUPS_FIELD_NUMBER = 65; + private boolean goodForGroups_ = false; + + /** + * + * + *
+   * Place accommodates groups.
+   * 
+ * + * optional bool good_for_groups = 65; + * + * @return Whether the goodForGroups field is set. + */ + @java.lang.Override + public boolean hasGoodForGroups() { + return ((bitField1_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Place accommodates groups.
+   * 
+ * + * optional bool good_for_groups = 65; + * + * @return The goodForGroups. + */ + @java.lang.Override + public boolean getGoodForGroups() { + return goodForGroups_; + } + + public static final int GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER = 66; + private boolean goodForWatchingSports_ = false; + + /** + * + * + *
+   * Place is suitable for watching sports.
+   * 
+ * + * optional bool good_for_watching_sports = 66; + * + * @return Whether the goodForWatchingSports field is set. + */ + @java.lang.Override + public boolean hasGoodForWatchingSports() { + return ((bitField1_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Place is suitable for watching sports.
+   * 
+ * + * optional bool good_for_watching_sports = 66; + * + * @return The goodForWatchingSports. + */ + @java.lang.Override + public boolean getGoodForWatchingSports() { + return goodForWatchingSports_; + } + + public static final int PAYMENT_OPTIONS_FIELD_NUMBER = 67; + private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; + + /** + * + * + *
+   * Payment options the place accepts. If a payment option data is not
+   * available, the payment option field will be unset.
+   * 
+ * + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * + * @return Whether the paymentOptions field is set. + */ + @java.lang.Override + public boolean hasPaymentOptions() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Payment options the place accepts. If a payment option data is not
+   * available, the payment option field will be unset.
+   * 
+ * + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * + * @return The paymentOptions. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { + return paymentOptions_ == null + ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() + : paymentOptions_; + } + + /** + * + * + *
+   * Payment options the place accepts. If a payment option data is not
+   * available, the payment option field will be unset.
+   * 
+ * + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { + return paymentOptions_ == null + ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() + : paymentOptions_; + } + + public static final int PARKING_OPTIONS_FIELD_NUMBER = 70; + private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; + + /** + * + * + *
+   * Options of parking provided by the place.
+   * 
+ * + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * + * @return Whether the parkingOptions field is set. + */ + @java.lang.Override + public boolean hasParkingOptions() { + return ((bitField1_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Options of parking provided by the place.
+   * 
+ * + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * + * @return The parkingOptions. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { + return parkingOptions_ == null + ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() + : parkingOptions_; + } + + /** + * + * + *
+   * Options of parking provided by the place.
+   * 
+ * + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { + return parkingOptions_ == null + ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() + : parkingOptions_; + } + + public static final int SUB_DESTINATIONS_FIELD_NUMBER = 71; + + @SuppressWarnings("serial") + private java.util.List subDestinations_; + + /** + * + * + *
+   * A list of sub-destinations related to the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + @java.lang.Override + public java.util.List getSubDestinationsList() { + return subDestinations_; + } + + /** + * + * + *
+   * A list of sub-destinations related to the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + @java.lang.Override + public java.util.List + getSubDestinationsOrBuilderList() { + return subDestinations_; + } + + /** + * + * + *
+   * A list of sub-destinations related to the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + @java.lang.Override + public int getSubDestinationsCount() { + return subDestinations_.size(); + } + + /** + * + * + *
+   * A list of sub-destinations related to the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { + return subDestinations_.get(index); + } + + /** + * + * + *
+   * A list of sub-destinations related to the place.
+   * 
+ * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( + int index) { + return subDestinations_.get(index); + } + + public static final int ACCESSIBILITY_OPTIONS_FIELD_NUMBER = 72; + private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; + + /** + * + * + *
+   * Information about the accessibility options a place offers.
+   * 
+ * + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * + * + * @return Whether the accessibilityOptions field is set. + */ + @java.lang.Override + public boolean hasAccessibilityOptions() { + return ((bitField1_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Information about the accessibility options a place offers.
+   * 
+ * + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * + * + * @return The accessibilityOptions. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { + return accessibilityOptions_ == null + ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() + : accessibilityOptions_; + } + + /** + * + * + *
+   * Information about the accessibility options a place offers.
+   * 
+ * + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder + getAccessibilityOptionsOrBuilder() { + return accessibilityOptions_ == null + ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() + : accessibilityOptions_; + } + + public static final int FUEL_OPTIONS_FIELD_NUMBER = 78; + private com.google.maps.places.v1.FuelOptions fuelOptions_; + + /** + * + * + *
+   * The most recent information about fuel options in a gas station. This
+   * information is updated regularly.
+   * 
+ * + * .google.maps.places.v1.FuelOptions fuel_options = 78; + * + * @return Whether the fuelOptions field is set. + */ + @java.lang.Override + public boolean hasFuelOptions() { + return ((bitField1_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * The most recent information about fuel options in a gas station. This
+   * information is updated regularly.
+   * 
+ * + * .google.maps.places.v1.FuelOptions fuel_options = 78; + * + * @return The fuelOptions. + */ + @java.lang.Override + public com.google.maps.places.v1.FuelOptions getFuelOptions() { + return fuelOptions_ == null + ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() + : fuelOptions_; + } + + /** + * + * + *
+   * The most recent information about fuel options in a gas station. This
+   * information is updated regularly.
+   * 
+ * + * .google.maps.places.v1.FuelOptions fuel_options = 78; + */ + @java.lang.Override + public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { + return fuelOptions_ == null + ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() + : fuelOptions_; + } + + public static final int EV_CHARGE_OPTIONS_FIELD_NUMBER = 79; + private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; + + /** + * + * + *
+   * Information of ev charging options.
+   * 
+ * + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * + * @return Whether the evChargeOptions field is set. + */ + @java.lang.Override + public boolean hasEvChargeOptions() { + return ((bitField1_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Information of ev charging options.
+   * 
+ * + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * + * @return The evChargeOptions. + */ + @java.lang.Override + public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { + return evChargeOptions_ == null + ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() + : evChargeOptions_; + } + + /** + * + * + *
+   * Information of ev charging options.
+   * 
+ * + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + */ + @java.lang.Override + public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { + return evChargeOptions_ == null + ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() + : evChargeOptions_; + } + + public static final int GENERATIVE_SUMMARY_FIELD_NUMBER = 80; + private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; + + /** + * + * + *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return Whether the generativeSummary field is set. + */ + @java.lang.Override + public boolean hasGenerativeSummary() { + return ((bitField1_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * + * @return The generativeSummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } + + /** + * + * + *
+   * AI-generated summary of the place.
+   * 
+ * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder + getGenerativeSummaryOrBuilder() { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; + } + + public static final int CONTAINING_PLACES_FIELD_NUMBER = 82; + + @SuppressWarnings("serial") + private java.util.List containingPlaces_; + + /** + * + * + *
+   * List of places in which the current place is located.
+   * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + @java.lang.Override + public java.util.List getContainingPlacesList() { + return containingPlaces_; + } + + /** + * + * + *
+   * List of places in which the current place is located.
+   * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + @java.lang.Override + public java.util.List + getContainingPlacesOrBuilderList() { + return containingPlaces_; + } + + /** + * + * + *
+   * List of places in which the current place is located.
+   * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + @java.lang.Override + public int getContainingPlacesCount() { + return containingPlaces_.size(); + } + + /** + * + * + *
+   * List of places in which the current place is located.
+   * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ContainingPlace getContainingPlaces(int index) { + return containingPlaces_.get(index); + } + + /** + * + * + *
+   * List of places in which the current place is located.
+   * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPlacesOrBuilder( + int index) { + return containingPlaces_.get(index); + } + + public static final int PURE_SERVICE_AREA_BUSINESS_FIELD_NUMBER = 83; + private boolean pureServiceAreaBusiness_ = false; + + /** + * + * + *
+   * Indicates whether the place is a pure service area business. Pure service
+   * area business is a business that visits or delivers to customers directly
+   * but does not serve customers at their business address. For example,
+   * businesses like cleaning services or plumbers. Those businesses may not
+   * have a physical address or location on Google Maps.
+   * 
+ * + * optional bool pure_service_area_business = 83; + * + * @return Whether the pureServiceAreaBusiness field is set. + */ + @java.lang.Override + public boolean hasPureServiceAreaBusiness() { + return ((bitField1_ & 0x00000200) != 0); + } + + /** + * + * + *
+   * Indicates whether the place is a pure service area business. Pure service
+   * area business is a business that visits or delivers to customers directly
+   * but does not serve customers at their business address. For example,
+   * businesses like cleaning services or plumbers. Those businesses may not
+   * have a physical address or location on Google Maps.
+   * 
+ * + * optional bool pure_service_area_business = 83; + * + * @return The pureServiceAreaBusiness. + */ + @java.lang.Override + public boolean getPureServiceAreaBusiness() { + return pureServiceAreaBusiness_; + } + + public static final int ADDRESS_DESCRIPTOR_FIELD_NUMBER = 84; + private com.google.maps.places.v1.AddressDescriptor addressDescriptor_; + + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + * + * @return Whether the addressDescriptor field is set. + */ + @java.lang.Override + public boolean hasAddressDescriptor() { + return ((bitField1_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + * + * @return The addressDescriptor. + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptor getAddressDescriptor() { + return addressDescriptor_ == null + ? com.google.maps.places.v1.AddressDescriptor.getDefaultInstance() + : addressDescriptor_; + } + + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + */ + @java.lang.Override + public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptorOrBuilder() { + return addressDescriptor_ == null + ? com.google.maps.places.v1.AddressDescriptor.getDefaultInstance() + : addressDescriptor_; + } + + public static final int PRICE_RANGE_FIELD_NUMBER = 86; + private com.google.maps.places.v1.PriceRange priceRange_; + + /** + * + * + *
+   * The price range associated with a Place.
+   * 
+ * + * .google.maps.places.v1.PriceRange price_range = 86; + * + * @return Whether the priceRange field is set. + */ + @java.lang.Override + public boolean hasPriceRange() { + return ((bitField1_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * The price range associated with a Place.
+   * 
+ * + * .google.maps.places.v1.PriceRange price_range = 86; + * + * @return The priceRange. + */ + @java.lang.Override + public com.google.maps.places.v1.PriceRange getPriceRange() { + return priceRange_ == null + ? com.google.maps.places.v1.PriceRange.getDefaultInstance() + : priceRange_; + } + + /** + * + * + *
+   * The price range associated with a Place.
+   * 
+ * + * .google.maps.places.v1.PriceRange price_range = 86; + */ + @java.lang.Override + public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { + return priceRange_ == null + ? com.google.maps.places.v1.PriceRange.getDefaultInstance() + : priceRange_; + } + + public static final int REVIEW_SUMMARY_FIELD_NUMBER = 87; + private com.google.maps.places.v1.Place.ReviewSummary reviewSummary_; + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + * + * @return Whether the reviewSummary field is set. + */ + @java.lang.Override + public boolean hasReviewSummary() { + return ((bitField1_ & 0x00001000) != 0); + } + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + * + * @return The reviewSummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ReviewSummary getReviewSummary() { + return reviewSummary_ == null + ? com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance() + : reviewSummary_; + } + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.ReviewSummaryOrBuilder getReviewSummaryOrBuilder() { + return reviewSummary_ == null + ? com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance() + : reviewSummary_; + } + + public static final int EV_CHARGE_AMENITY_SUMMARY_FIELD_NUMBER = 89; + private com.google.maps.places.v1.Place.EvChargeAmenitySummary evChargeAmenitySummary_; + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return Whether the evChargeAmenitySummary field is set. + */ + @java.lang.Override + public boolean hasEvChargeAmenitySummary() { + return ((bitField1_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return The evChargeAmenitySummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummary getEvChargeAmenitySummary() { + return evChargeAmenitySummary_ == null + ? com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance() + : evChargeAmenitySummary_; + } + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + */ + @java.lang.Override + public com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder + getEvChargeAmenitySummaryOrBuilder() { + return evChargeAmenitySummary_ == null + ? com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance() + : evChargeAmenitySummary_; + } + + public static final int NEIGHBORHOOD_SUMMARY_FIELD_NUMBER = 91; + private com.google.maps.places.v1.Place.NeighborhoodSummary neighborhoodSummary_; + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + * + * @return Whether the neighborhoodSummary field is set. + */ + @java.lang.Override + public boolean hasNeighborhoodSummary() { + return ((bitField1_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + * + * @return The neighborhoodSummary. + */ + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummary() { + return neighborhoodSummary_ == null + ? com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance() + : neighborhoodSummary_; + } + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + */ + @java.lang.Override + public com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder + getNeighborhoodSummaryOrBuilder() { + return neighborhoodSummary_ == null + ? com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance() + : neighborhoodSummary_; + } + + 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(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + for (int i = 0; i < types_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, types_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, nationalPhoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, internationalPhoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, formattedAddress_); + } + for (int i = 0; i < addressComponents_.size(); i++) { + output.writeMessage(10, addressComponents_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getPlusCode()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getLocation()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(13, getViewport()); + } + if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { + output.writeDouble(14, rating_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, googleMapsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, websiteUri_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(21, getRegularOpeningHours()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt32(22, utcOffsetMinutes_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, adrFormatAddress_); + } + if (businessStatus_ + != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(25, businessStatus_); + } + if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(26, priceLevel_); + } + for (int i = 0; i < attributions_.size(); i++) { + output.writeMessage(27, attributions_.get(i)); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt32(28, userRatingCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, iconMaskBaseUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, iconBackgroundColor_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(31, getDisplayName()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(32, getPrimaryTypeDisplayName()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeBool(33, takeout_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBool(34, delivery_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeBool(35, dineIn_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeBool(36, curbsidePickup_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeBool(38, reservable_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeBool(39, servesBreakfast_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeBool(40, servesLunch_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeBool(41, servesDinner_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeBool(42, servesBeer_); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeBool(43, servesWine_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeBool(44, servesBrunch_); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeBool(45, servesVegetarianFood_); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(46, getCurrentOpeningHours()); + } + for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { + output.writeMessage(47, currentSecondaryOpeningHours_.get(i)); + } + for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { + output.writeMessage(49, regularSecondaryOpeningHours_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 50, primaryType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortFormattedAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 51, shortFormattedAddress_); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(52, getEditorialSummary()); + } + for (int i = 0; i < reviews_.size(); i++) { + output.writeMessage(53, reviews_.get(i)); + } + for (int i = 0; i < photos_.size(); i++) { + output.writeMessage(54, photos_.get(i)); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeBool(55, outdoorSeating_); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeBool(56, liveMusic_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeBool(57, menuForChildren_); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeBool(58, servesCocktails_); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeBool(59, servesDessert_); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeBool(60, servesCoffee_); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeBool(62, goodForChildren_); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeBool(63, allowsDogs_); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeBool(64, restroom_); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeBool(65, goodForGroups_); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeBool(66, goodForWatchingSports_); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(67, getPaymentOptions()); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(70, getParkingOptions()); + } + for (int i = 0; i < subDestinations_.size(); i++) { + output.writeMessage(71, subDestinations_.get(i)); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(72, getAccessibilityOptions()); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(78, getFuelOptions()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(79, getEvChargeOptions()); + } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(80, getGenerativeSummary()); + } + for (int i = 0; i < containingPlaces_.size(); i++) { + output.writeMessage(82, containingPlaces_.get(i)); + } + if (((bitField1_ & 0x00000200) != 0)) { + output.writeBool(83, pureServiceAreaBusiness_); + } + if (((bitField1_ & 0x00000400) != 0)) { + output.writeMessage(84, getAddressDescriptor()); + } + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(86, getPriceRange()); + } + if (((bitField1_ & 0x00001000) != 0)) { + output.writeMessage(87, getReviewSummary()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(88, getTimeZone()); + } + if (((bitField1_ & 0x00002000) != 0)) { + output.writeMessage(89, getEvChargeAmenitySummary()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(90, getPostalAddress()); + } + if (((bitField1_ & 0x00004000) != 0)) { + output.writeMessage(91, getNeighborhoodSummary()); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + { + int dataSize = 0; + for (int i = 0; i < types_.size(); i++) { + dataSize += computeStringSizeNoTag(types_.getRaw(i)); + } + size += dataSize; + size += 1 * getTypesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, nationalPhoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internationalPhoneNumber_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(8, internationalPhoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, formattedAddress_); + } + for (int i = 0; i < addressComponents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, addressComponents_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPlusCode()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLocation()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getViewport()); + } + if (java.lang.Double.doubleToRawLongBits(rating_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(14, rating_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, googleMapsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(websiteUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, websiteUri_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRegularOpeningHours()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, utcOffsetMinutes_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adrFormatAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, adrFormatAddress_); + } + if (businessStatus_ + != com.google.maps.places.v1.Place.BusinessStatus.BUSINESS_STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, businessStatus_); + } + if (priceLevel_ != com.google.maps.places.v1.PriceLevel.PRICE_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, priceLevel_); + } + for (int i = 0; i < attributions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, attributions_.get(i)); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(28, userRatingCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconMaskBaseUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, iconMaskBaseUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconBackgroundColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, iconBackgroundColor_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDisplayName()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(32, getPrimaryTypeDisplayName()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, takeout_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, delivery_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, dineIn_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(36, curbsidePickup_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, reservable_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, servesBreakfast_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, servesLunch_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(41, servesDinner_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(42, servesBeer_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(43, servesWine_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(44, servesBrunch_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(45, servesVegetarianFood_); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(46, getCurrentOpeningHours()); + } + for (int i = 0; i < currentSecondaryOpeningHours_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 47, currentSecondaryOpeningHours_.get(i)); + } + for (int i = 0; i < regularSecondaryOpeningHours_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 49, regularSecondaryOpeningHours_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, primaryType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortFormattedAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(51, shortFormattedAddress_); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getEditorialSummary()); + } + for (int i = 0; i < reviews_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, reviews_.get(i)); + } + for (int i = 0; i < photos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(54, photos_.get(i)); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(55, outdoorSeating_); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(56, liveMusic_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(57, menuForChildren_); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(58, servesCocktails_); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(59, servesDessert_); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(60, servesCoffee_); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(62, goodForChildren_); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(63, allowsDogs_); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(64, restroom_); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(65, goodForGroups_); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(66, goodForWatchingSports_); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getPaymentOptions()); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(70, getParkingOptions()); + } + for (int i = 0; i < subDestinations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(71, subDestinations_.get(i)); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(72, getAccessibilityOptions()); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(78, getFuelOptions()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(79, getEvChargeOptions()); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(80, getGenerativeSummary()); + } + for (int i = 0; i < containingPlaces_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(82, containingPlaces_.get(i)); + } + if (((bitField1_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(83, pureServiceAreaBusiness_); + } + if (((bitField1_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(84, getAddressDescriptor()); + } + if (((bitField1_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(86, getPriceRange()); + } + if (((bitField1_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(87, getReviewSummary()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(88, getTimeZone()); + } + if (((bitField1_ & 0x00002000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(89, getEvChargeAmenitySummary()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(90, getPostalAddress()); + } + if (((bitField1_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(91, getNeighborhoodSummary()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.maps.places.v1.Place)) { + return super.equals(obj); + } + com.google.maps.places.v1.Place other = (com.google.maps.places.v1.Place) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (!getTypesList().equals(other.getTypesList())) return false; + if (!getPrimaryType().equals(other.getPrimaryType())) return false; + if (hasPrimaryTypeDisplayName() != other.hasPrimaryTypeDisplayName()) return false; + if (hasPrimaryTypeDisplayName()) { + if (!getPrimaryTypeDisplayName().equals(other.getPrimaryTypeDisplayName())) return false; + } + if (!getNationalPhoneNumber().equals(other.getNationalPhoneNumber())) return false; + if (!getInternationalPhoneNumber().equals(other.getInternationalPhoneNumber())) return false; + if (!getFormattedAddress().equals(other.getFormattedAddress())) return false; + if (!getShortFormattedAddress().equals(other.getShortFormattedAddress())) return false; + if (hasPostalAddress() != other.hasPostalAddress()) return false; + if (hasPostalAddress()) { + if (!getPostalAddress().equals(other.getPostalAddress())) return false; + } + if (!getAddressComponentsList().equals(other.getAddressComponentsList())) return false; + if (hasPlusCode() != other.hasPlusCode()) return false; + if (hasPlusCode()) { + if (!getPlusCode().equals(other.getPlusCode())) return false; + } + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation().equals(other.getLocation())) return false; + } + if (hasViewport() != other.hasViewport()) return false; + if (hasViewport()) { + if (!getViewport().equals(other.getViewport())) return false; + } + if (java.lang.Double.doubleToLongBits(getRating()) + != java.lang.Double.doubleToLongBits(other.getRating())) return false; + if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; + if (!getWebsiteUri().equals(other.getWebsiteUri())) return false; + if (!getReviewsList().equals(other.getReviewsList())) return false; + if (hasRegularOpeningHours() != other.hasRegularOpeningHours()) return false; + if (hasRegularOpeningHours()) { + if (!getRegularOpeningHours().equals(other.getRegularOpeningHours())) return false; + } + if (hasUtcOffsetMinutes() != other.hasUtcOffsetMinutes()) return false; + if (hasUtcOffsetMinutes()) { + if (getUtcOffsetMinutes() != other.getUtcOffsetMinutes()) return false; + } + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (!getPhotosList().equals(other.getPhotosList())) return false; + if (!getAdrFormatAddress().equals(other.getAdrFormatAddress())) return false; + if (businessStatus_ != other.businessStatus_) return false; + if (priceLevel_ != other.priceLevel_) return false; + if (!getAttributionsList().equals(other.getAttributionsList())) return false; + if (hasUserRatingCount() != other.hasUserRatingCount()) return false; + if (hasUserRatingCount()) { + if (getUserRatingCount() != other.getUserRatingCount()) return false; + } + if (!getIconMaskBaseUri().equals(other.getIconMaskBaseUri())) return false; + if (!getIconBackgroundColor().equals(other.getIconBackgroundColor())) return false; + if (hasTakeout() != other.hasTakeout()) return false; + if (hasTakeout()) { + if (getTakeout() != other.getTakeout()) return false; + } + if (hasDelivery() != other.hasDelivery()) return false; + if (hasDelivery()) { + if (getDelivery() != other.getDelivery()) return false; + } + if (hasDineIn() != other.hasDineIn()) return false; + if (hasDineIn()) { + if (getDineIn() != other.getDineIn()) return false; + } + if (hasCurbsidePickup() != other.hasCurbsidePickup()) return false; + if (hasCurbsidePickup()) { + if (getCurbsidePickup() != other.getCurbsidePickup()) return false; + } + if (hasReservable() != other.hasReservable()) return false; + if (hasReservable()) { + if (getReservable() != other.getReservable()) return false; + } + if (hasServesBreakfast() != other.hasServesBreakfast()) return false; + if (hasServesBreakfast()) { + if (getServesBreakfast() != other.getServesBreakfast()) return false; + } + if (hasServesLunch() != other.hasServesLunch()) return false; + if (hasServesLunch()) { + if (getServesLunch() != other.getServesLunch()) return false; + } + if (hasServesDinner() != other.hasServesDinner()) return false; + if (hasServesDinner()) { + if (getServesDinner() != other.getServesDinner()) return false; + } + if (hasServesBeer() != other.hasServesBeer()) return false; + if (hasServesBeer()) { + if (getServesBeer() != other.getServesBeer()) return false; + } + if (hasServesWine() != other.hasServesWine()) return false; + if (hasServesWine()) { + if (getServesWine() != other.getServesWine()) return false; + } + if (hasServesBrunch() != other.hasServesBrunch()) return false; + if (hasServesBrunch()) { + if (getServesBrunch() != other.getServesBrunch()) return false; + } + if (hasServesVegetarianFood() != other.hasServesVegetarianFood()) return false; + if (hasServesVegetarianFood()) { + if (getServesVegetarianFood() != other.getServesVegetarianFood()) return false; + } + if (hasCurrentOpeningHours() != other.hasCurrentOpeningHours()) return false; + if (hasCurrentOpeningHours()) { + if (!getCurrentOpeningHours().equals(other.getCurrentOpeningHours())) return false; + } + if (!getCurrentSecondaryOpeningHoursList().equals(other.getCurrentSecondaryOpeningHoursList())) + return false; + if (!getRegularSecondaryOpeningHoursList().equals(other.getRegularSecondaryOpeningHoursList())) + return false; + if (hasEditorialSummary() != other.hasEditorialSummary()) return false; + if (hasEditorialSummary()) { + if (!getEditorialSummary().equals(other.getEditorialSummary())) return false; + } + if (hasOutdoorSeating() != other.hasOutdoorSeating()) return false; + if (hasOutdoorSeating()) { + if (getOutdoorSeating() != other.getOutdoorSeating()) return false; + } + if (hasLiveMusic() != other.hasLiveMusic()) return false; + if (hasLiveMusic()) { + if (getLiveMusic() != other.getLiveMusic()) return false; + } + if (hasMenuForChildren() != other.hasMenuForChildren()) return false; + if (hasMenuForChildren()) { + if (getMenuForChildren() != other.getMenuForChildren()) return false; + } + if (hasServesCocktails() != other.hasServesCocktails()) return false; + if (hasServesCocktails()) { + if (getServesCocktails() != other.getServesCocktails()) return false; + } + if (hasServesDessert() != other.hasServesDessert()) return false; + if (hasServesDessert()) { + if (getServesDessert() != other.getServesDessert()) return false; + } + if (hasServesCoffee() != other.hasServesCoffee()) return false; + if (hasServesCoffee()) { + if (getServesCoffee() != other.getServesCoffee()) return false; + } + if (hasGoodForChildren() != other.hasGoodForChildren()) return false; + if (hasGoodForChildren()) { + if (getGoodForChildren() != other.getGoodForChildren()) return false; + } + if (hasAllowsDogs() != other.hasAllowsDogs()) return false; + if (hasAllowsDogs()) { + if (getAllowsDogs() != other.getAllowsDogs()) return false; + } + if (hasRestroom() != other.hasRestroom()) return false; + if (hasRestroom()) { + if (getRestroom() != other.getRestroom()) return false; + } + if (hasGoodForGroups() != other.hasGoodForGroups()) return false; + if (hasGoodForGroups()) { + if (getGoodForGroups() != other.getGoodForGroups()) return false; + } + if (hasGoodForWatchingSports() != other.hasGoodForWatchingSports()) return false; + if (hasGoodForWatchingSports()) { + if (getGoodForWatchingSports() != other.getGoodForWatchingSports()) return false; + } + if (hasPaymentOptions() != other.hasPaymentOptions()) return false; + if (hasPaymentOptions()) { + if (!getPaymentOptions().equals(other.getPaymentOptions())) return false; + } + if (hasParkingOptions() != other.hasParkingOptions()) return false; + if (hasParkingOptions()) { + if (!getParkingOptions().equals(other.getParkingOptions())) return false; + } + if (!getSubDestinationsList().equals(other.getSubDestinationsList())) return false; + if (hasAccessibilityOptions() != other.hasAccessibilityOptions()) return false; + if (hasAccessibilityOptions()) { + if (!getAccessibilityOptions().equals(other.getAccessibilityOptions())) return false; + } + if (hasFuelOptions() != other.hasFuelOptions()) return false; + if (hasFuelOptions()) { + if (!getFuelOptions().equals(other.getFuelOptions())) return false; + } + if (hasEvChargeOptions() != other.hasEvChargeOptions()) return false; + if (hasEvChargeOptions()) { + if (!getEvChargeOptions().equals(other.getEvChargeOptions())) return false; + } + if (hasGenerativeSummary() != other.hasGenerativeSummary()) return false; + if (hasGenerativeSummary()) { + if (!getGenerativeSummary().equals(other.getGenerativeSummary())) return false; + } + if (!getContainingPlacesList().equals(other.getContainingPlacesList())) return false; + if (hasPureServiceAreaBusiness() != other.hasPureServiceAreaBusiness()) return false; + if (hasPureServiceAreaBusiness()) { + if (getPureServiceAreaBusiness() != other.getPureServiceAreaBusiness()) return false; + } + if (hasAddressDescriptor() != other.hasAddressDescriptor()) return false; + if (hasAddressDescriptor()) { + if (!getAddressDescriptor().equals(other.getAddressDescriptor())) return false; + } + if (hasPriceRange() != other.hasPriceRange()) return false; + if (hasPriceRange()) { + if (!getPriceRange().equals(other.getPriceRange())) return false; + } + if (hasReviewSummary() != other.hasReviewSummary()) return false; + if (hasReviewSummary()) { + if (!getReviewSummary().equals(other.getReviewSummary())) return false; + } + if (hasEvChargeAmenitySummary() != other.hasEvChargeAmenitySummary()) return false; + if (hasEvChargeAmenitySummary()) { + if (!getEvChargeAmenitySummary().equals(other.getEvChargeAmenitySummary())) return false; + } + if (hasNeighborhoodSummary() != other.hasNeighborhoodSummary()) return false; + if (hasNeighborhoodSummary()) { + if (!getNeighborhoodSummary().equals(other.getNeighborhoodSummary())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (getTypesCount() > 0) { + hash = (37 * hash) + TYPES_FIELD_NUMBER; + hash = (53 * hash) + getTypesList().hashCode(); + } + hash = (37 * hash) + PRIMARY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryType().hashCode(); + if (hasPrimaryTypeDisplayName()) { + hash = (37 * hash) + PRIMARY_TYPE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryTypeDisplayName().hashCode(); + } + hash = (37 * hash) + NATIONAL_PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getNationalPhoneNumber().hashCode(); + hash = (37 * hash) + INTERNATIONAL_PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getInternationalPhoneNumber().hashCode(); + hash = (37 * hash) + FORMATTED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getFormattedAddress().hashCode(); + hash = (37 * hash) + SHORT_FORMATTED_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getShortFormattedAddress().hashCode(); + if (hasPostalAddress()) { + hash = (37 * hash) + POSTAL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getPostalAddress().hashCode(); + } + if (getAddressComponentsCount() > 0) { + hash = (37 * hash) + ADDRESS_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getAddressComponentsList().hashCode(); + } + if (hasPlusCode()) { + hash = (37 * hash) + PLUS_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPlusCode().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + if (hasViewport()) { + hash = (37 * hash) + VIEWPORT_FIELD_NUMBER; + hash = (53 * hash) + getViewport().hashCode(); + } + hash = (37 * hash) + RATING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getRating())); + hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsUri().hashCode(); + hash = (37 * hash) + WEBSITE_URI_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteUri().hashCode(); + if (getReviewsCount() > 0) { + hash = (37 * hash) + REVIEWS_FIELD_NUMBER; + hash = (53 * hash) + getReviewsList().hashCode(); + } + if (hasRegularOpeningHours()) { + hash = (37 * hash) + REGULAR_OPENING_HOURS_FIELD_NUMBER; + hash = (53 * hash) + getRegularOpeningHours().hashCode(); + } + if (hasUtcOffsetMinutes()) { + hash = (37 * hash) + UTC_OFFSET_MINUTES_FIELD_NUMBER; + hash = (53 * hash) + getUtcOffsetMinutes(); + } + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + if (getPhotosCount() > 0) { + hash = (37 * hash) + PHOTOS_FIELD_NUMBER; + hash = (53 * hash) + getPhotosList().hashCode(); + } + hash = (37 * hash) + ADR_FORMAT_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAdrFormatAddress().hashCode(); + hash = (37 * hash) + BUSINESS_STATUS_FIELD_NUMBER; + hash = (53 * hash) + businessStatus_; + hash = (37 * hash) + PRICE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + priceLevel_; + if (getAttributionsCount() > 0) { + hash = (37 * hash) + ATTRIBUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAttributionsList().hashCode(); + } + if (hasUserRatingCount()) { + hash = (37 * hash) + USER_RATING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getUserRatingCount(); + } + hash = (37 * hash) + ICON_MASK_BASE_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconMaskBaseUri().hashCode(); + hash = (37 * hash) + ICON_BACKGROUND_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getIconBackgroundColor().hashCode(); + if (hasTakeout()) { + hash = (37 * hash) + TAKEOUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTakeout()); + } + if (hasDelivery()) { + hash = (37 * hash) + DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDelivery()); + } + if (hasDineIn()) { + hash = (37 * hash) + DINE_IN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDineIn()); + } + if (hasCurbsidePickup()) { + hash = (37 * hash) + CURBSIDE_PICKUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCurbsidePickup()); + } + if (hasReservable()) { + hash = (37 * hash) + RESERVABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReservable()); + } + if (hasServesBreakfast()) { + hash = (37 * hash) + SERVES_BREAKFAST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBreakfast()); + } + if (hasServesLunch()) { + hash = (37 * hash) + SERVES_LUNCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesLunch()); + } + if (hasServesDinner()) { + hash = (37 * hash) + SERVES_DINNER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDinner()); + } + if (hasServesBeer()) { + hash = (37 * hash) + SERVES_BEER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBeer()); + } + if (hasServesWine()) { + hash = (37 * hash) + SERVES_WINE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesWine()); + } + if (hasServesBrunch()) { + hash = (37 * hash) + SERVES_BRUNCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesBrunch()); + } + if (hasServesVegetarianFood()) { + hash = (37 * hash) + SERVES_VEGETARIAN_FOOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesVegetarianFood()); + } + if (hasCurrentOpeningHours()) { + hash = (37 * hash) + CURRENT_OPENING_HOURS_FIELD_NUMBER; + hash = (53 * hash) + getCurrentOpeningHours().hashCode(); + } + if (getCurrentSecondaryOpeningHoursCount() > 0) { + hash = (37 * hash) + CURRENT_SECONDARY_OPENING_HOURS_FIELD_NUMBER; + hash = (53 * hash) + getCurrentSecondaryOpeningHoursList().hashCode(); + } + if (getRegularSecondaryOpeningHoursCount() > 0) { + hash = (37 * hash) + REGULAR_SECONDARY_OPENING_HOURS_FIELD_NUMBER; + hash = (53 * hash) + getRegularSecondaryOpeningHoursList().hashCode(); + } + if (hasEditorialSummary()) { + hash = (37 * hash) + EDITORIAL_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getEditorialSummary().hashCode(); + } + if (hasOutdoorSeating()) { + hash = (37 * hash) + OUTDOOR_SEATING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutdoorSeating()); + } + if (hasLiveMusic()) { + hash = (37 * hash) + LIVE_MUSIC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLiveMusic()); + } + if (hasMenuForChildren()) { + hash = (37 * hash) + MENU_FOR_CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMenuForChildren()); + } + if (hasServesCocktails()) { + hash = (37 * hash) + SERVES_COCKTAILS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCocktails()); + } + if (hasServesDessert()) { + hash = (37 * hash) + SERVES_DESSERT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesDessert()); + } + if (hasServesCoffee()) { + hash = (37 * hash) + SERVES_COFFEE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getServesCoffee()); + } + if (hasGoodForChildren()) { + hash = (37 * hash) + GOOD_FOR_CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForChildren()); + } + if (hasAllowsDogs()) { + hash = (37 * hash) + ALLOWS_DOGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowsDogs()); + } + if (hasRestroom()) { + hash = (37 * hash) + RESTROOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRestroom()); + } + if (hasGoodForGroups()) { + hash = (37 * hash) + GOOD_FOR_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForGroups()); + } + if (hasGoodForWatchingSports()) { + hash = (37 * hash) + GOOD_FOR_WATCHING_SPORTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGoodForWatchingSports()); + } + if (hasPaymentOptions()) { + hash = (37 * hash) + PAYMENT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPaymentOptions().hashCode(); + } + if (hasParkingOptions()) { + hash = (37 * hash) + PARKING_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getParkingOptions().hashCode(); + } + if (getSubDestinationsCount() > 0) { + hash = (37 * hash) + SUB_DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + getSubDestinationsList().hashCode(); + } + if (hasAccessibilityOptions()) { + hash = (37 * hash) + ACCESSIBILITY_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getAccessibilityOptions().hashCode(); + } + if (hasFuelOptions()) { + hash = (37 * hash) + FUEL_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getFuelOptions().hashCode(); + } + if (hasEvChargeOptions()) { + hash = (37 * hash) + EV_CHARGE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getEvChargeOptions().hashCode(); + } + if (hasGenerativeSummary()) { + hash = (37 * hash) + GENERATIVE_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getGenerativeSummary().hashCode(); + } + if (getContainingPlacesCount() > 0) { + hash = (37 * hash) + CONTAINING_PLACES_FIELD_NUMBER; + hash = (53 * hash) + getContainingPlacesList().hashCode(); + } + if (hasPureServiceAreaBusiness()) { + hash = (37 * hash) + PURE_SERVICE_AREA_BUSINESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPureServiceAreaBusiness()); + } + if (hasAddressDescriptor()) { + hash = (37 * hash) + ADDRESS_DESCRIPTOR_FIELD_NUMBER; + hash = (53 * hash) + getAddressDescriptor().hashCode(); + } + if (hasPriceRange()) { + hash = (37 * hash) + PRICE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPriceRange().hashCode(); + } + if (hasReviewSummary()) { + hash = (37 * hash) + REVIEW_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getReviewSummary().hashCode(); + } + if (hasEvChargeAmenitySummary()) { + hash = (37 * hash) + EV_CHARGE_AMENITY_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getEvChargeAmenitySummary().hashCode(); + } + if (hasNeighborhoodSummary()) { + hash = (37 * hash) + NEIGHBORHOOD_SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getNeighborhoodSummary().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.places.v1.Place parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.maps.places.v1.Place parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.maps.places.v1.Place parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.maps.places.v1.Place parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.maps.places.v1.Place parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.maps.places.v1.Place 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; + } + + /** + * + * + *
+   * All the information representing a Place.
+   * 
+ * + * Protobuf type {@code google.maps.places.v1.Place} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.maps.places.v1.Place) + com.google.maps.places.v1.PlaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.places.v1.Place.class, com.google.maps.places.v1.Place.Builder.class); + } + + // Construct using com.google.maps.places.v1.Place.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisplayNameFieldBuilder(); + getPrimaryTypeDisplayNameFieldBuilder(); + getPostalAddressFieldBuilder(); + getAddressComponentsFieldBuilder(); + getPlusCodeFieldBuilder(); + getLocationFieldBuilder(); + getViewportFieldBuilder(); + getReviewsFieldBuilder(); + getRegularOpeningHoursFieldBuilder(); + getTimeZoneFieldBuilder(); + getPhotosFieldBuilder(); + getAttributionsFieldBuilder(); + getCurrentOpeningHoursFieldBuilder(); + getCurrentSecondaryOpeningHoursFieldBuilder(); + getRegularSecondaryOpeningHoursFieldBuilder(); + getEditorialSummaryFieldBuilder(); + getPaymentOptionsFieldBuilder(); + getParkingOptionsFieldBuilder(); + getSubDestinationsFieldBuilder(); + getAccessibilityOptionsFieldBuilder(); + getFuelOptionsFieldBuilder(); + getEvChargeOptionsFieldBuilder(); + getGenerativeSummaryFieldBuilder(); + getContainingPlacesFieldBuilder(); + getAddressDescriptorFieldBuilder(); + getPriceRangeFieldBuilder(); + getReviewSummaryFieldBuilder(); + getEvChargeAmenitySummaryFieldBuilder(); + getNeighborhoodSummaryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + bitField2_ = 0; + name_ = ""; + id_ = ""; + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + primaryType_ = ""; + primaryTypeDisplayName_ = null; + if (primaryTypeDisplayNameBuilder_ != null) { + primaryTypeDisplayNameBuilder_.dispose(); + primaryTypeDisplayNameBuilder_ = null; + } + nationalPhoneNumber_ = ""; + internationalPhoneNumber_ = ""; + formattedAddress_ = ""; + shortFormattedAddress_ = ""; + postalAddress_ = null; + if (postalAddressBuilder_ != null) { + postalAddressBuilder_.dispose(); + postalAddressBuilder_ = null; + } + if (addressComponentsBuilder_ == null) { + addressComponents_ = java.util.Collections.emptyList(); + } else { + addressComponents_ = null; + addressComponentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + plusCode_ = null; + if (plusCodeBuilder_ != null) { + plusCodeBuilder_.dispose(); + plusCodeBuilder_ = null; + } + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; + } + viewport_ = null; + if (viewportBuilder_ != null) { + viewportBuilder_.dispose(); + viewportBuilder_ = null; + } + rating_ = 0D; + googleMapsUri_ = ""; + websiteUri_ = ""; + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + } else { + reviews_ = null; + reviewsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + regularOpeningHours_ = null; + if (regularOpeningHoursBuilder_ != null) { + regularOpeningHoursBuilder_.dispose(); + regularOpeningHoursBuilder_ = null; + } + utcOffsetMinutes_ = 0; + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + if (photosBuilder_ == null) { + photos_ = java.util.Collections.emptyList(); + } else { + photos_ = null; + photosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00400000); + adrFormatAddress_ = ""; + businessStatus_ = 0; + priceLevel_ = 0; + if (attributionsBuilder_ == null) { + attributions_ = java.util.Collections.emptyList(); + } else { + attributions_ = null; + attributionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x04000000); + userRatingCount_ = 0; + iconMaskBaseUri_ = ""; + iconBackgroundColor_ = ""; + takeout_ = false; + delivery_ = false; + dineIn_ = false; + curbsidePickup_ = false; + reservable_ = false; + servesBreakfast_ = false; + servesLunch_ = false; + servesDinner_ = false; + servesBeer_ = false; + servesWine_ = false; + servesBrunch_ = false; + servesVegetarianFood_ = false; + currentOpeningHours_ = null; + if (currentOpeningHoursBuilder_ != null) { + currentOpeningHoursBuilder_.dispose(); + currentOpeningHoursBuilder_ = null; + } + if (currentSecondaryOpeningHoursBuilder_ == null) { + currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); + } else { + currentSecondaryOpeningHours_ = null; + currentSecondaryOpeningHoursBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000800); + if (regularSecondaryOpeningHoursBuilder_ == null) { + regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); + } else { + regularSecondaryOpeningHours_ = null; + regularSecondaryOpeningHoursBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00001000); + editorialSummary_ = null; + if (editorialSummaryBuilder_ != null) { + editorialSummaryBuilder_.dispose(); + editorialSummaryBuilder_ = null; + } + outdoorSeating_ = false; + liveMusic_ = false; + menuForChildren_ = false; + servesCocktails_ = false; + servesDessert_ = false; + servesCoffee_ = false; + goodForChildren_ = false; + allowsDogs_ = false; + restroom_ = false; + goodForGroups_ = false; + goodForWatchingSports_ = false; + paymentOptions_ = null; + if (paymentOptionsBuilder_ != null) { + paymentOptionsBuilder_.dispose(); + paymentOptionsBuilder_ = null; + } + parkingOptions_ = null; + if (parkingOptionsBuilder_ != null) { + parkingOptionsBuilder_.dispose(); + parkingOptionsBuilder_ = null; + } + if (subDestinationsBuilder_ == null) { + subDestinations_ = java.util.Collections.emptyList(); + } else { + subDestinations_ = null; + subDestinationsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x08000000); + accessibilityOptions_ = null; + if (accessibilityOptionsBuilder_ != null) { + accessibilityOptionsBuilder_.dispose(); + accessibilityOptionsBuilder_ = null; + } + fuelOptions_ = null; + if (fuelOptionsBuilder_ != null) { + fuelOptionsBuilder_.dispose(); + fuelOptionsBuilder_ = null; + } + evChargeOptions_ = null; + if (evChargeOptionsBuilder_ != null) { + evChargeOptionsBuilder_.dispose(); + evChargeOptionsBuilder_ = null; + } + generativeSummary_ = null; + if (generativeSummaryBuilder_ != null) { + generativeSummaryBuilder_.dispose(); + generativeSummaryBuilder_ = null; + } + if (containingPlacesBuilder_ == null) { + containingPlaces_ = java.util.Collections.emptyList(); + } else { + containingPlaces_ = null; + containingPlacesBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000001); + pureServiceAreaBusiness_ = false; + addressDescriptor_ = null; + if (addressDescriptorBuilder_ != null) { + addressDescriptorBuilder_.dispose(); + addressDescriptorBuilder_ = null; + } + priceRange_ = null; + if (priceRangeBuilder_ != null) { + priceRangeBuilder_.dispose(); + priceRangeBuilder_ = null; + } + reviewSummary_ = null; + if (reviewSummaryBuilder_ != null) { + reviewSummaryBuilder_.dispose(); + reviewSummaryBuilder_ = null; + } + evChargeAmenitySummary_ = null; + if (evChargeAmenitySummaryBuilder_ != null) { + evChargeAmenitySummaryBuilder_.dispose(); + evChargeAmenitySummaryBuilder_ = null; + } + neighborhoodSummary_ = null; + if (neighborhoodSummaryBuilder_ != null) { + neighborhoodSummaryBuilder_.dispose(); + neighborhoodSummaryBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.places.v1.PlaceProto + .internal_static_google_maps_places_v1_Place_descriptor; + } + + @java.lang.Override + public com.google.maps.places.v1.Place getDefaultInstanceForType() { + return com.google.maps.places.v1.Place.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.places.v1.Place build() { + com.google.maps.places.v1.Place result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.places.v1.Place buildPartial() { + com.google.maps.places.v1.Place result = new com.google.maps.places.v1.Place(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + if (bitField2_ != 0) { + buildPartial2(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.places.v1.Place result) { + if (addressComponentsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + addressComponents_ = java.util.Collections.unmodifiableList(addressComponents_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.addressComponents_ = addressComponents_; + } else { + result.addressComponents_ = addressComponentsBuilder_.build(); + } + if (reviewsBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0)) { + reviews_ = java.util.Collections.unmodifiableList(reviews_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.reviews_ = reviews_; + } else { + result.reviews_ = reviewsBuilder_.build(); + } + if (photosBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0)) { + photos_ = java.util.Collections.unmodifiableList(photos_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.photos_ = photos_; + } else { + result.photos_ = photosBuilder_.build(); + } + if (attributionsBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0)) { + attributions_ = java.util.Collections.unmodifiableList(attributions_); + bitField0_ = (bitField0_ & ~0x04000000); + } + result.attributions_ = attributions_; + } else { + result.attributions_ = attributionsBuilder_.build(); + } + if (currentSecondaryOpeningHoursBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0)) { + currentSecondaryOpeningHours_ = + java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); + bitField1_ = (bitField1_ & ~0x00000800); + } + result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHours_; + } else { + result.currentSecondaryOpeningHours_ = currentSecondaryOpeningHoursBuilder_.build(); + } + if (regularSecondaryOpeningHoursBuilder_ == null) { + if (((bitField1_ & 0x00001000) != 0)) { + regularSecondaryOpeningHours_ = + java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); + bitField1_ = (bitField1_ & ~0x00001000); + } + result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHours_; + } else { + result.regularSecondaryOpeningHours_ = regularSecondaryOpeningHoursBuilder_.build(); + } + if (subDestinationsBuilder_ == null) { + if (((bitField1_ & 0x08000000) != 0)) { + subDestinations_ = java.util.Collections.unmodifiableList(subDestinations_); + bitField1_ = (bitField1_ & ~0x08000000); + } + result.subDestinations_ = subDestinations_; + } else { + result.subDestinations_ = subDestinationsBuilder_.build(); + } + if (containingPlacesBuilder_ == null) { + if (((bitField2_ & 0x00000001) != 0)) { + containingPlaces_ = java.util.Collections.unmodifiableList(containingPlaces_); + bitField2_ = (bitField2_ & ~0x00000001); + } + result.containingPlaces_ = containingPlaces_; + } else { + result.containingPlaces_ = containingPlacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.places.v1.Place result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = + displayNameBuilder_ == null ? displayName_ : displayNameBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + types_.makeImmutable(); + result.types_ = types_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.primaryType_ = primaryType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.primaryTypeDisplayName_ = + primaryTypeDisplayNameBuilder_ == null + ? primaryTypeDisplayName_ + : primaryTypeDisplayNameBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.nationalPhoneNumber_ = nationalPhoneNumber_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.internationalPhoneNumber_ = internationalPhoneNumber_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.formattedAddress_ = formattedAddress_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.shortFormattedAddress_ = shortFormattedAddress_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.postalAddress_ = + postalAddressBuilder_ == null ? postalAddress_ : postalAddressBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.plusCode_ = plusCodeBuilder_ == null ? plusCode_ : plusCodeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.rating_ = rating_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.googleMapsUri_ = googleMapsUri_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.websiteUri_ = websiteUri_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.regularOpeningHours_ = + regularOpeningHoursBuilder_ == null + ? regularOpeningHours_ + : regularOpeningHoursBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.utcOffsetMinutes_ = utcOffsetMinutes_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.adrFormatAddress_ = adrFormatAddress_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.businessStatus_ = businessStatus_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.priceLevel_ = priceLevel_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.userRatingCount_ = userRatingCount_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.iconMaskBaseUri_ = iconMaskBaseUri_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.iconBackgroundColor_ = iconBackgroundColor_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.takeout_ = takeout_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.delivery_ = delivery_; + to_bitField0_ |= 0x00000800; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.maps.places.v1.Place result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.dineIn_ = dineIn_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.curbsidePickup_ = curbsidePickup_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.reservable_ = reservable_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.servesBreakfast_ = servesBreakfast_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.servesLunch_ = servesLunch_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.servesDinner_ = servesDinner_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.servesBeer_ = servesBeer_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.servesWine_ = servesWine_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.servesBrunch_ = servesBrunch_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.servesVegetarianFood_ = servesVegetarianFood_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.currentOpeningHours_ = + currentOpeningHoursBuilder_ == null + ? currentOpeningHours_ + : currentOpeningHoursBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.editorialSummary_ = + editorialSummaryBuilder_ == null ? editorialSummary_ : editorialSummaryBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.outdoorSeating_ = outdoorSeating_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.liveMusic_ = liveMusic_; + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.menuForChildren_ = menuForChildren_; + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.servesCocktails_ = servesCocktails_; + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + result.servesDessert_ = servesDessert_; + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.servesCoffee_ = servesCoffee_; + to_bitField0_ |= 0x20000000; + } + if (((from_bitField1_ & 0x00100000) != 0)) { + result.goodForChildren_ = goodForChildren_; + to_bitField0_ |= 0x40000000; + } + if (((from_bitField1_ & 0x00200000) != 0)) { + result.allowsDogs_ = allowsDogs_; + to_bitField0_ |= 0x80000000; + } + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00400000) != 0)) { + result.restroom_ = restroom_; + to_bitField1_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00800000) != 0)) { + result.goodForGroups_ = goodForGroups_; + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + result.goodForWatchingSports_ = goodForWatchingSports_; + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.paymentOptions_ = + paymentOptionsBuilder_ == null ? paymentOptions_ : paymentOptionsBuilder_.build(); + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x04000000) != 0)) { + result.parkingOptions_ = + parkingOptionsBuilder_ == null ? parkingOptions_ : parkingOptionsBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.accessibilityOptions_ = + accessibilityOptionsBuilder_ == null + ? accessibilityOptions_ + : accessibilityOptionsBuilder_.build(); + to_bitField1_ |= 0x00000020; + } + if (((from_bitField1_ & 0x20000000) != 0)) { + result.fuelOptions_ = + fuelOptionsBuilder_ == null ? fuelOptions_ : fuelOptionsBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x40000000) != 0)) { + result.evChargeOptions_ = + evChargeOptionsBuilder_ == null ? evChargeOptions_ : evChargeOptionsBuilder_.build(); + to_bitField1_ |= 0x00000080; + } + if (((from_bitField1_ & 0x80000000) != 0)) { + result.generativeSummary_ = + generativeSummaryBuilder_ == null + ? generativeSummary_ + : generativeSummaryBuilder_.build(); + to_bitField1_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + private void buildPartial2(com.google.maps.places.v1.Place result) { + int from_bitField2_ = bitField2_; + int to_bitField1_ = 0; + if (((from_bitField2_ & 0x00000002) != 0)) { + result.pureServiceAreaBusiness_ = pureServiceAreaBusiness_; + to_bitField1_ |= 0x00000200; + } + if (((from_bitField2_ & 0x00000004) != 0)) { + result.addressDescriptor_ = + addressDescriptorBuilder_ == null + ? addressDescriptor_ + : addressDescriptorBuilder_.build(); + to_bitField1_ |= 0x00000400; + } + if (((from_bitField2_ & 0x00000008) != 0)) { + result.priceRange_ = priceRangeBuilder_ == null ? priceRange_ : priceRangeBuilder_.build(); + to_bitField1_ |= 0x00000800; + } + if (((from_bitField2_ & 0x00000010) != 0)) { + result.reviewSummary_ = + reviewSummaryBuilder_ == null ? reviewSummary_ : reviewSummaryBuilder_.build(); + to_bitField1_ |= 0x00001000; + } + if (((from_bitField2_ & 0x00000020) != 0)) { + result.evChargeAmenitySummary_ = + evChargeAmenitySummaryBuilder_ == null + ? evChargeAmenitySummary_ + : evChargeAmenitySummaryBuilder_.build(); + to_bitField1_ |= 0x00002000; + } + if (((from_bitField2_ & 0x00000040) != 0)) { + result.neighborhoodSummary_ = + neighborhoodSummaryBuilder_ == null + ? neighborhoodSummary_ + : neighborhoodSummaryBuilder_.build(); + to_bitField1_ |= 0x00004000; + } + result.bitField1_ |= to_bitField1_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.maps.places.v1.Place) { + return mergeFrom((com.google.maps.places.v1.Place) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.places.v1.Place other) { + if (other == com.google.maps.places.v1.Place.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDisplayName()) { + mergeDisplayName(other.getDisplayName()); + } + if (!other.types_.isEmpty()) { + if (types_.isEmpty()) { + types_ = other.types_; + bitField0_ |= 0x00000008; + } else { + ensureTypesIsMutable(); + types_.addAll(other.types_); + } + onChanged(); + } + if (!other.getPrimaryType().isEmpty()) { + primaryType_ = other.primaryType_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasPrimaryTypeDisplayName()) { + mergePrimaryTypeDisplayName(other.getPrimaryTypeDisplayName()); + } + if (!other.getNationalPhoneNumber().isEmpty()) { + nationalPhoneNumber_ = other.nationalPhoneNumber_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getInternationalPhoneNumber().isEmpty()) { + internationalPhoneNumber_ = other.internationalPhoneNumber_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getFormattedAddress().isEmpty()) { + formattedAddress_ = other.formattedAddress_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getShortFormattedAddress().isEmpty()) { + shortFormattedAddress_ = other.shortFormattedAddress_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasPostalAddress()) { + mergePostalAddress(other.getPostalAddress()); + } + if (addressComponentsBuilder_ == null) { + if (!other.addressComponents_.isEmpty()) { + if (addressComponents_.isEmpty()) { + addressComponents_ = other.addressComponents_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureAddressComponentsIsMutable(); + addressComponents_.addAll(other.addressComponents_); + } + onChanged(); + } + } else { + if (!other.addressComponents_.isEmpty()) { + if (addressComponentsBuilder_.isEmpty()) { + addressComponentsBuilder_.dispose(); + addressComponentsBuilder_ = null; + addressComponents_ = other.addressComponents_; + bitField0_ = (bitField0_ & ~0x00000800); + addressComponentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAddressComponentsFieldBuilder() + : null; + } else { + addressComponentsBuilder_.addAllMessages(other.addressComponents_); + } + } + } + if (other.hasPlusCode()) { + mergePlusCode(other.getPlusCode()); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + if (other.hasViewport()) { + mergeViewport(other.getViewport()); + } + if (other.getRating() != 0D) { + setRating(other.getRating()); + } + if (!other.getGoogleMapsUri().isEmpty()) { + googleMapsUri_ = other.googleMapsUri_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getWebsiteUri().isEmpty()) { + websiteUri_ = other.websiteUri_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (reviewsBuilder_ == null) { + if (!other.reviews_.isEmpty()) { + if (reviews_.isEmpty()) { + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureReviewsIsMutable(); + reviews_.addAll(other.reviews_); + } + onChanged(); + } + } else { + if (!other.reviews_.isEmpty()) { + if (reviewsBuilder_.isEmpty()) { + reviewsBuilder_.dispose(); + reviewsBuilder_ = null; + reviews_ = other.reviews_; + bitField0_ = (bitField0_ & ~0x00040000); + reviewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReviewsFieldBuilder() + : null; + } else { + reviewsBuilder_.addAllMessages(other.reviews_); + } + } + } + if (other.hasRegularOpeningHours()) { + mergeRegularOpeningHours(other.getRegularOpeningHours()); + } + if (other.hasUtcOffsetMinutes()) { + setUtcOffsetMinutes(other.getUtcOffsetMinutes()); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (photosBuilder_ == null) { + if (!other.photos_.isEmpty()) { + if (photos_.isEmpty()) { + photos_ = other.photos_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensurePhotosIsMutable(); + photos_.addAll(other.photos_); + } + onChanged(); + } + } else { + if (!other.photos_.isEmpty()) { + if (photosBuilder_.isEmpty()) { + photosBuilder_.dispose(); + photosBuilder_ = null; + photos_ = other.photos_; + bitField0_ = (bitField0_ & ~0x00400000); + photosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhotosFieldBuilder() + : null; + } else { + photosBuilder_.addAllMessages(other.photos_); + } + } + } + if (!other.getAdrFormatAddress().isEmpty()) { + adrFormatAddress_ = other.adrFormatAddress_; + bitField0_ |= 0x00800000; + onChanged(); + } + if (other.businessStatus_ != 0) { + setBusinessStatusValue(other.getBusinessStatusValue()); + } + if (other.priceLevel_ != 0) { + setPriceLevelValue(other.getPriceLevelValue()); + } + if (attributionsBuilder_ == null) { + if (!other.attributions_.isEmpty()) { + if (attributions_.isEmpty()) { + attributions_ = other.attributions_; + bitField0_ = (bitField0_ & ~0x04000000); + } else { + ensureAttributionsIsMutable(); + attributions_.addAll(other.attributions_); + } + onChanged(); + } + } else { + if (!other.attributions_.isEmpty()) { + if (attributionsBuilder_.isEmpty()) { + attributionsBuilder_.dispose(); + attributionsBuilder_ = null; + attributions_ = other.attributions_; + bitField0_ = (bitField0_ & ~0x04000000); + attributionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttributionsFieldBuilder() + : null; + } else { + attributionsBuilder_.addAllMessages(other.attributions_); + } + } + } + if (other.hasUserRatingCount()) { + setUserRatingCount(other.getUserRatingCount()); + } + if (!other.getIconMaskBaseUri().isEmpty()) { + iconMaskBaseUri_ = other.iconMaskBaseUri_; + bitField0_ |= 0x10000000; + onChanged(); + } + if (!other.getIconBackgroundColor().isEmpty()) { + iconBackgroundColor_ = other.iconBackgroundColor_; + bitField0_ |= 0x20000000; + onChanged(); + } + if (other.hasTakeout()) { + setTakeout(other.getTakeout()); + } + if (other.hasDelivery()) { + setDelivery(other.getDelivery()); + } + if (other.hasDineIn()) { + setDineIn(other.getDineIn()); + } + if (other.hasCurbsidePickup()) { + setCurbsidePickup(other.getCurbsidePickup()); + } + if (other.hasReservable()) { + setReservable(other.getReservable()); + } + if (other.hasServesBreakfast()) { + setServesBreakfast(other.getServesBreakfast()); + } + if (other.hasServesLunch()) { + setServesLunch(other.getServesLunch()); + } + if (other.hasServesDinner()) { + setServesDinner(other.getServesDinner()); + } + if (other.hasServesBeer()) { + setServesBeer(other.getServesBeer()); + } + if (other.hasServesWine()) { + setServesWine(other.getServesWine()); + } + if (other.hasServesBrunch()) { + setServesBrunch(other.getServesBrunch()); + } + if (other.hasServesVegetarianFood()) { + setServesVegetarianFood(other.getServesVegetarianFood()); + } + if (other.hasCurrentOpeningHours()) { + mergeCurrentOpeningHours(other.getCurrentOpeningHours()); + } + if (currentSecondaryOpeningHoursBuilder_ == null) { + if (!other.currentSecondaryOpeningHours_.isEmpty()) { + if (currentSecondaryOpeningHours_.isEmpty()) { + currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; + bitField1_ = (bitField1_ & ~0x00000800); + } else { + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.addAll(other.currentSecondaryOpeningHours_); + } + onChanged(); + } + } else { + if (!other.currentSecondaryOpeningHours_.isEmpty()) { + if (currentSecondaryOpeningHoursBuilder_.isEmpty()) { + currentSecondaryOpeningHoursBuilder_.dispose(); + currentSecondaryOpeningHoursBuilder_ = null; + currentSecondaryOpeningHours_ = other.currentSecondaryOpeningHours_; + bitField1_ = (bitField1_ & ~0x00000800); + currentSecondaryOpeningHoursBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCurrentSecondaryOpeningHoursFieldBuilder() + : null; + } else { + currentSecondaryOpeningHoursBuilder_.addAllMessages( + other.currentSecondaryOpeningHours_); + } + } + } + if (regularSecondaryOpeningHoursBuilder_ == null) { + if (!other.regularSecondaryOpeningHours_.isEmpty()) { + if (regularSecondaryOpeningHours_.isEmpty()) { + regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; + bitField1_ = (bitField1_ & ~0x00001000); + } else { + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.addAll(other.regularSecondaryOpeningHours_); + } + onChanged(); + } + } else { + if (!other.regularSecondaryOpeningHours_.isEmpty()) { + if (regularSecondaryOpeningHoursBuilder_.isEmpty()) { + regularSecondaryOpeningHoursBuilder_.dispose(); + regularSecondaryOpeningHoursBuilder_ = null; + regularSecondaryOpeningHours_ = other.regularSecondaryOpeningHours_; + bitField1_ = (bitField1_ & ~0x00001000); + regularSecondaryOpeningHoursBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRegularSecondaryOpeningHoursFieldBuilder() + : null; + } else { + regularSecondaryOpeningHoursBuilder_.addAllMessages( + other.regularSecondaryOpeningHours_); + } + } + } + if (other.hasEditorialSummary()) { + mergeEditorialSummary(other.getEditorialSummary()); + } + if (other.hasOutdoorSeating()) { + setOutdoorSeating(other.getOutdoorSeating()); + } + if (other.hasLiveMusic()) { + setLiveMusic(other.getLiveMusic()); + } + if (other.hasMenuForChildren()) { + setMenuForChildren(other.getMenuForChildren()); + } + if (other.hasServesCocktails()) { + setServesCocktails(other.getServesCocktails()); + } + if (other.hasServesDessert()) { + setServesDessert(other.getServesDessert()); + } + if (other.hasServesCoffee()) { + setServesCoffee(other.getServesCoffee()); + } + if (other.hasGoodForChildren()) { + setGoodForChildren(other.getGoodForChildren()); + } + if (other.hasAllowsDogs()) { + setAllowsDogs(other.getAllowsDogs()); + } + if (other.hasRestroom()) { + setRestroom(other.getRestroom()); + } + if (other.hasGoodForGroups()) { + setGoodForGroups(other.getGoodForGroups()); + } + if (other.hasGoodForWatchingSports()) { + setGoodForWatchingSports(other.getGoodForWatchingSports()); + } + if (other.hasPaymentOptions()) { + mergePaymentOptions(other.getPaymentOptions()); + } + if (other.hasParkingOptions()) { + mergeParkingOptions(other.getParkingOptions()); + } + if (subDestinationsBuilder_ == null) { + if (!other.subDestinations_.isEmpty()) { + if (subDestinations_.isEmpty()) { + subDestinations_ = other.subDestinations_; + bitField1_ = (bitField1_ & ~0x08000000); + } else { + ensureSubDestinationsIsMutable(); + subDestinations_.addAll(other.subDestinations_); + } + onChanged(); + } + } else { + if (!other.subDestinations_.isEmpty()) { + if (subDestinationsBuilder_.isEmpty()) { + subDestinationsBuilder_.dispose(); + subDestinationsBuilder_ = null; + subDestinations_ = other.subDestinations_; + bitField1_ = (bitField1_ & ~0x08000000); + subDestinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubDestinationsFieldBuilder() + : null; + } else { + subDestinationsBuilder_.addAllMessages(other.subDestinations_); + } + } + } + if (other.hasAccessibilityOptions()) { + mergeAccessibilityOptions(other.getAccessibilityOptions()); + } + if (other.hasFuelOptions()) { + mergeFuelOptions(other.getFuelOptions()); + } + if (other.hasEvChargeOptions()) { + mergeEvChargeOptions(other.getEvChargeOptions()); + } + if (other.hasGenerativeSummary()) { + mergeGenerativeSummary(other.getGenerativeSummary()); + } + if (containingPlacesBuilder_ == null) { + if (!other.containingPlaces_.isEmpty()) { + if (containingPlaces_.isEmpty()) { + containingPlaces_ = other.containingPlaces_; + bitField2_ = (bitField2_ & ~0x00000001); + } else { + ensureContainingPlacesIsMutable(); + containingPlaces_.addAll(other.containingPlaces_); + } + onChanged(); + } + } else { + if (!other.containingPlaces_.isEmpty()) { + if (containingPlacesBuilder_.isEmpty()) { + containingPlacesBuilder_.dispose(); + containingPlacesBuilder_ = null; + containingPlaces_ = other.containingPlaces_; + bitField2_ = (bitField2_ & ~0x00000001); + containingPlacesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContainingPlacesFieldBuilder() + : null; + } else { + containingPlacesBuilder_.addAllMessages(other.containingPlaces_); + } + } + } + if (other.hasPureServiceAreaBusiness()) { + setPureServiceAreaBusiness(other.getPureServiceAreaBusiness()); + } + if (other.hasAddressDescriptor()) { + mergeAddressDescriptor(other.getAddressDescriptor()); + } + if (other.hasPriceRange()) { + mergePriceRange(other.getPriceRange()); + } + if (other.hasReviewSummary()) { + mergeReviewSummary(other.getReviewSummary()); + } + if (other.hasEvChargeAmenitySummary()) { + mergeEvChargeAmenitySummary(other.getEvChargeAmenitySummary()); + } + if (other.hasNeighborhoodSummary()) { + mergeNeighborhoodSummary(other.getNeighborhoodSummary()); + } + 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(); @@ -24518,12 +28928,6 @@ public Builder mergeFrom( bitField1_ |= 0x80000000; break; } // case 642 - case 650: - { - input.readMessage(getAreaSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000001; - break; - } // case 650 case 658: { com.google.maps.places.v1.Place.ContainingPlace m = @@ -24541,27 +28945,54 @@ public Builder mergeFrom( case 664: { pureServiceAreaBusiness_ = input.readBool(); - bitField2_ |= 0x00000004; + bitField2_ |= 0x00000002; break; } // case 664 + case 674: + { + input.readMessage( + getAddressDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000004; + break; + } // case 674 case 690: { input.readMessage(getPriceRangeFieldBuilder().getBuilder(), extensionRegistry); bitField2_ |= 0x00000008; break; } // case 690 + case 698: + { + input.readMessage(getReviewSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000010; + break; + } // case 698 case 706: { input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00200000; break; } // case 706 + case 714: + { + input.readMessage( + getEvChargeAmenitySummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000020; + break; + } // case 714 case 722: { input.readMessage(getPostalAddressFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 722 + case 730: + { + input.readMessage( + getNeighborhoodSummaryFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00000040; + break; + } // case 730 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -24575,34 +29006,677 @@ public Builder mergeFrom( throw e.unwrapIOException(); } finally { onChanged(); - } // finally + } // finally + return this; + } + + private int bitField0_; + private int bitField1_; + private int bitField2_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * This Place's resource name, in `places/{place_id}` format.  Can be used to
+     * look up the Place.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This Place's resource name, in `places/{place_id}` format.  Can be used to
+     * look up the Place.
+     * 
+ * + * string name = 1; + * + * @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; + } + } + + /** + * + * + *
+     * This Place's resource name, in `places/{place_id}` format.  Can be used to
+     * look up the Place.
+     * 
+ * + * string name = 1; + * + * @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; + } + + /** + * + * + *
+     * This Place's resource name, in `places/{place_id}` format.  Can be used to
+     * look up the Place.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * This Place's resource name, in `places/{place_id}` format.  Can be used to
+     * look up the Place.
+     * 
+ * + * string name = 1; + * + * @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 id_ = ""; + + /** + * + * + *
+     * The unique identifier of a place.
+     * 
+ * + * string id = 2; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The unique identifier of a place.
+     * 
+ * + * string id = 2; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The unique identifier of a place.
+     * 
+ * + * string id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique identifier of a place.
+     * 
+ * + * string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique identifier of a place.
+     * 
+ * + * string id = 2; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.type.LocalizedText displayName_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + displayNameBuilder_; + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + * + * @return The displayName. + */ + public com.google.type.LocalizedText getDisplayName() { + if (displayNameBuilder_ == null) { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } else { + return displayNameBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public Builder setDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + } else { + displayNameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public Builder setDisplayName(com.google.type.LocalizedText.Builder builderForValue) { + if (displayNameBuilder_ == null) { + displayName_ = builderForValue.build(); + } else { + displayNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public Builder mergeDisplayName(com.google.type.LocalizedText value) { + if (displayNameBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && displayName_ != null + && displayName_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDisplayNameBuilder().mergeFrom(value); + } else { + displayName_ = value; + } + } else { + displayNameBuilder_.mergeFrom(value); + } + if (displayName_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public Builder clearDisplayName() { + bitField0_ = (bitField0_ & ~0x00000004); + displayName_ = null; + if (displayNameBuilder_ != null) { + displayNameBuilder_.dispose(); + displayNameBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public com.google.type.LocalizedText.Builder getDisplayNameBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDisplayNameFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { + if (displayNameBuilder_ != null) { + return displayNameBuilder_.getMessageOrBuilder(); + } else { + return displayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : displayName_; + } + } + + /** + * + * + *
+     * The localized name of the place, suitable as a short human-readable
+     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * 
+ * + * .google.type.LocalizedText display_name = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getDisplayNameFieldBuilder() { + if (displayNameBuilder_ == null) { + displayNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDisplayName(), getParentForChildren(), isClean()); + displayName_ = null; + } + return displayNameBuilder_; + } + + private com.google.protobuf.LazyStringArrayList types_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTypesIsMutable() { + if (!types_.isModifiable()) { + types_ = new com.google.protobuf.LazyStringArrayList(types_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @return A list containing the types. + */ + public com.google.protobuf.ProtocolStringList getTypesList() { + types_.makeImmutable(); + return types_; + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + public java.lang.String getTypes(int index) { + return types_.get(index); + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param index The index of the value to return. + * @return The bytes of the types at the given index. + */ + public com.google.protobuf.ByteString getTypesBytes(int index) { + return types_.getByteString(index); + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param index The index to set the value at. + * @param value The types to set. + * @return This builder for chaining. + */ + public Builder setTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); return this; } - private int bitField0_; - private int bitField1_; - private int bitField2_; + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param value The types to add. + * @return This builder for chaining. + */ + public Builder addTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - private java.lang.Object name_ = ""; + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param values The types to add. + * @return This builder for chaining. + */ + public Builder addAllTypes(java.lang.Iterable values) { + ensureTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } /** * * *
-     * This Place's resource name, in `places/{place_id}` format.  Can be used to
-     * look up the Place.
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string name = 1; + * repeated string types = 5; * - * @return The name. + * @return This builder for chaining. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public Builder clearTypes() { + types_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * A set of type tags for this result. For example, "political" and
+     * "locality". For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * repeated string types = 5; + * + * @param value The bytes of the types to add. + * @return This builder for chaining. + */ + public Builder addTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTypesIsMutable(); + types_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object primaryType_ = ""; + + /** + * + * + *
+     * The primary type of the given result. This type must one of the Places API
+     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * place can only have a single primary type.  For the complete list of
+     * possible values, see Table A and Table B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * 
+ * + * string primary_type = 50; + * + * @return The primaryType. + */ + public java.lang.String getPrimaryType() { + java.lang.Object ref = primaryType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + primaryType_ = s; return s; } else { return (java.lang.String) ref; @@ -24613,20 +29687,23 @@ public java.lang.String getName() { * * *
-     * This Place's resource name, in `places/{place_id}` format.  Can be used to
-     * look up the Place.
+     * The primary type of the given result. This type must one of the Places API
+     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * place can only have a single primary type.  For the complete list of
+     * possible values, see Table A and Table B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string name = 1; + * string primary_type = 50; * - * @return The bytes for name. + * @return The bytes for primaryType. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getPrimaryTypeBytes() { + java.lang.Object ref = primaryType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + primaryType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -24637,21 +29714,24 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * This Place's resource name, in `places/{place_id}` format.  Can be used to
-     * look up the Place.
+     * The primary type of the given result. This type must one of the Places API
+     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * place can only have a single primary type.  For the complete list of
+     * possible values, see Table A and Table B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string name = 1; + * string primary_type = 50; * - * @param value The name to set. + * @param value The primaryType to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setPrimaryType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; + primaryType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -24660,17 +29740,20 @@ public Builder setName(java.lang.String value) { * * *
-     * This Place's resource name, in `places/{place_id}` format.  Can be used to
-     * look up the Place.
+     * The primary type of the given result. This type must one of the Places API
+     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * place can only have a single primary type.  For the complete list of
+     * possible values, see Table A and Table B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string name = 1; + * string primary_type = 50; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearPrimaryType() { + primaryType_ = getDefaultInstance().getPrimaryType(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -24679,71 +29762,75 @@ public Builder clearName() { * * *
-     * This Place's resource name, in `places/{place_id}` format.  Can be used to
-     * look up the Place.
+     * The primary type of the given result. This type must one of the Places API
+     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
+     * place can only have a single primary type.  For the complete list of
+     * possible values, see Table A and Table B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string name = 1; + * string primary_type = 50; * - * @param value The bytes for name to set. + * @param value The bytes for primaryType to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + primaryType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } - private java.lang.Object id_ = ""; + private com.google.type.LocalizedText primaryTypeDisplayName_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + primaryTypeDisplayNameBuilder_; /** * * *
-     * The unique identifier of a place.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string id = 2; + * .google.type.LocalizedText primary_type_display_name = 32; * - * @return The id. + * @return Whether the primaryTypeDisplayName field is set. */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasPrimaryTypeDisplayName() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * The unique identifier of a place.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string id = 2; + * .google.type.LocalizedText primary_type_display_name = 32; * - * @return The bytes for id. + * @return The primaryTypeDisplayName. */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; + public com.google.type.LocalizedText getPrimaryTypeDisplayName() { + if (primaryTypeDisplayNameBuilder_ == null) { + return primaryTypeDisplayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : primaryTypeDisplayName_; } else { - return (com.google.protobuf.ByteString) ref; + return primaryTypeDisplayNameBuilder_.getMessage(); } } @@ -24751,20 +29838,24 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * The unique identifier of a place.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string id = 2; - * - * @param value The id to set. - * @return This builder for chaining. + * .google.type.LocalizedText primary_type_display_name = 32; */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPrimaryTypeDisplayName(com.google.type.LocalizedText value) { + if (primaryTypeDisplayNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryTypeDisplayName_ = value; + } else { + primaryTypeDisplayNameBuilder_.setMessage(value); } - id_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -24773,16 +29864,22 @@ public Builder setId(java.lang.String value) { * * *
-     * The unique identifier of a place.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string id = 2; - * - * @return This builder for chaining. + * .google.type.LocalizedText primary_type_display_name = 32; */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setPrimaryTypeDisplayName( + com.google.type.LocalizedText.Builder builderForValue) { + if (primaryTypeDisplayNameBuilder_ == null) { + primaryTypeDisplayName_ = builderForValue.build(); + } else { + primaryTypeDisplayNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -24791,385 +29888,413 @@ public Builder clearId() { * * *
-     * The unique identifier of a place.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * string id = 2; - * - * @param value The bytes for id to set. - * @return This builder for chaining. + * .google.type.LocalizedText primary_type_display_name = 32; */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergePrimaryTypeDisplayName(com.google.type.LocalizedText value) { + if (primaryTypeDisplayNameBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && primaryTypeDisplayName_ != null + && primaryTypeDisplayName_ != com.google.type.LocalizedText.getDefaultInstance()) { + getPrimaryTypeDisplayNameBuilder().mergeFrom(value); + } else { + primaryTypeDisplayName_ = value; + } + } else { + primaryTypeDisplayNameBuilder_.mergeFrom(value); + } + if (primaryTypeDisplayName_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000002; - onChanged(); return this; } - private com.google.type.LocalizedText displayName_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - displayNameBuilder_; - /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * .google.type.LocalizedText display_name = 31; - * - * @return Whether the displayName field is set. + * .google.type.LocalizedText primary_type_display_name = 32; */ - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000004) != 0); + public Builder clearPrimaryTypeDisplayName() { + bitField0_ = (bitField0_ & ~0x00000020); + primaryTypeDisplayName_ = null; + if (primaryTypeDisplayNameBuilder_ != null) { + primaryTypeDisplayNameBuilder_.dispose(); + primaryTypeDisplayNameBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * .google.type.LocalizedText display_name = 31; - * - * @return The displayName. + * .google.type.LocalizedText primary_type_display_name = 32; */ - public com.google.type.LocalizedText getDisplayName() { - if (displayNameBuilder_ == null) { - return displayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : displayName_; - } else { - return displayNameBuilder_.getMessage(); - } + public com.google.type.LocalizedText.Builder getPrimaryTypeDisplayNameBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPrimaryTypeDisplayNameFieldBuilder().getBuilder(); } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * .google.type.LocalizedText display_name = 31; + * .google.type.LocalizedText primary_type_display_name = 32; */ - public Builder setDisplayName(com.google.type.LocalizedText value) { - if (displayNameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; + public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder() { + if (primaryTypeDisplayNameBuilder_ != null) { + return primaryTypeDisplayNameBuilder_.getMessageOrBuilder(); } else { - displayNameBuilder_.setMessage(value); + return primaryTypeDisplayName_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : primaryTypeDisplayName_; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * The display name of the primary type, localized to the request language if
+     * applicable. For the complete list of possible values, see Table A and Table
+     * B at
+     * https://developers.google.com/maps/documentation/places/web-service/place-types
      * 
* - * .google.type.LocalizedText display_name = 31; + * .google.type.LocalizedText primary_type_display_name = 32; */ - public Builder setDisplayName(com.google.type.LocalizedText.Builder builderForValue) { - if (displayNameBuilder_ == null) { - displayName_ = builderForValue.build(); - } else { - displayNameBuilder_.setMessage(builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getPrimaryTypeDisplayNameFieldBuilder() { + if (primaryTypeDisplayNameBuilder_ == null) { + primaryTypeDisplayNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getPrimaryTypeDisplayName(), getParentForChildren(), isClean()); + primaryTypeDisplayName_ = null; } - bitField0_ |= 0x00000004; - onChanged(); - return this; + return primaryTypeDisplayNameBuilder_; } + private java.lang.Object nationalPhoneNumber_ = ""; + /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * A human-readable phone number for the place, in national format.
      * 
* - * .google.type.LocalizedText display_name = 31; + * string national_phone_number = 7; + * + * @return The nationalPhoneNumber. */ - public Builder mergeDisplayName(com.google.type.LocalizedText value) { - if (displayNameBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && displayName_ != null - && displayName_ != com.google.type.LocalizedText.getDefaultInstance()) { - getDisplayNameBuilder().mergeFrom(value); - } else { - displayName_ = value; - } + public java.lang.String getNationalPhoneNumber() { + java.lang.Object ref = nationalPhoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nationalPhoneNumber_ = s; + return s; } else { - displayNameBuilder_.mergeFrom(value); - } - if (displayName_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * A human-readable phone number for the place, in national format.
      * 
* - * .google.type.LocalizedText display_name = 31; + * string national_phone_number = 7; + * + * @return The bytes for nationalPhoneNumber. */ - public Builder clearDisplayName() { - bitField0_ = (bitField0_ & ~0x00000004); - displayName_ = null; - if (displayNameBuilder_ != null) { - displayNameBuilder_.dispose(); - displayNameBuilder_ = null; + public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { + java.lang.Object ref = nationalPhoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nationalPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * A human-readable phone number for the place, in national format.
      * 
* - * .google.type.LocalizedText display_name = 31; + * string national_phone_number = 7; + * + * @param value The nationalPhoneNumber to set. + * @return This builder for chaining. */ - public com.google.type.LocalizedText.Builder getDisplayNameBuilder() { - bitField0_ |= 0x00000004; + public Builder setNationalPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nationalPhoneNumber_ = value; + bitField0_ |= 0x00000040; onChanged(); - return getDisplayNameFieldBuilder().getBuilder(); + return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * A human-readable phone number for the place, in national format.
      * 
* - * .google.type.LocalizedText display_name = 31; + * string national_phone_number = 7; + * + * @return This builder for chaining. */ - public com.google.type.LocalizedTextOrBuilder getDisplayNameOrBuilder() { - if (displayNameBuilder_ != null) { - return displayNameBuilder_.getMessageOrBuilder(); - } else { - return displayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : displayName_; - } + public Builder clearNationalPhoneNumber() { + nationalPhoneNumber_ = getDefaultInstance().getNationalPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; } /** * * *
-     * The localized name of the place, suitable as a short human-readable
-     * description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
+     * A human-readable phone number for the place, in national format.
      * 
* - * .google.type.LocalizedText display_name = 31; + * string national_phone_number = 7; + * + * @param value The bytes for nationalPhoneNumber to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - getDisplayNameFieldBuilder() { - if (displayNameBuilder_ == null) { - displayNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder>( - getDisplayName(), getParentForChildren(), isClean()); - displayName_ = null; + public Builder setNationalPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return displayNameBuilder_; + checkByteStringIsUtf8(value); + nationalPhoneNumber_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - private com.google.protobuf.LazyStringArrayList types_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTypesIsMutable() { - if (!types_.isModifiable()) { - types_ = new com.google.protobuf.LazyStringArrayList(types_); - } - bitField0_ |= 0x00000008; - } + private java.lang.Object internationalPhoneNumber_ = ""; /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A human-readable phone number for the place, in international format.
      * 
* - * repeated string types = 5; + * string international_phone_number = 8; * - * @return A list containing the types. + * @return The internationalPhoneNumber. */ - public com.google.protobuf.ProtocolStringList getTypesList() { - types_.makeImmutable(); - return types_; + public java.lang.String getInternationalPhoneNumber() { + java.lang.Object ref = internationalPhoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + internationalPhoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A human-readable phone number for the place, in international format.
      * 
* - * repeated string types = 5; + * string international_phone_number = 8; * - * @return The count of types. + * @return The bytes for internationalPhoneNumber. */ - public int getTypesCount() { - return types_.size(); + public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { + java.lang.Object ref = internationalPhoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + internationalPhoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A human-readable phone number for the place, in international format.
      * 
* - * repeated string types = 5; + * string international_phone_number = 8; * - * @param index The index of the element to return. - * @return The types at the given index. + * @param value The internationalPhoneNumber to set. + * @return This builder for chaining. */ - public java.lang.String getTypes(int index) { - return types_.get(index); + public Builder setInternationalPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + internationalPhoneNumber_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A human-readable phone number for the place, in international format.
      * 
* - * repeated string types = 5; + * string international_phone_number = 8; * - * @param index The index of the value to return. - * @return The bytes of the types at the given index. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getTypesBytes(int index) { - return types_.getByteString(index); + public Builder clearInternationalPhoneNumber() { + internationalPhoneNumber_ = getDefaultInstance().getInternationalPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A human-readable phone number for the place, in international format.
      * 
* - * repeated string types = 5; + * string international_phone_number = 8; * - * @param index The index to set the value at. - * @param value The types to set. + * @param value The bytes for internationalPhoneNumber to set. * @return This builder for chaining. */ - public Builder setTypes(int index, java.lang.String value) { + public Builder setInternationalPhoneNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - ensureTypesIsMutable(); - types_.set(index, value); - bitField0_ |= 0x00000008; + checkByteStringIsUtf8(value); + internationalPhoneNumber_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } + private java.lang.Object formattedAddress_ = ""; + /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A full, human-readable address for this place.
      * 
* - * repeated string types = 5; + * string formatted_address = 9; * - * @param value The types to add. - * @return This builder for chaining. + * @return The formattedAddress. */ - public Builder addTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.lang.String getFormattedAddress() { + java.lang.Object ref = formattedAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + formattedAddress_ = s; + return s; + } else { + return (java.lang.String) ref; } - ensureTypesIsMutable(); - types_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; } /** * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A full, human-readable address for this place.
      * 
* - * repeated string types = 5; + * string formatted_address = 9; * - * @param values The types to add. + * @return The bytes for formattedAddress. + */ + public com.google.protobuf.ByteString getFormattedAddressBytes() { + java.lang.Object ref = formattedAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + formattedAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A full, human-readable address for this place.
+     * 
+ * + * string formatted_address = 9; + * + * @param value The formattedAddress to set. * @return This builder for chaining. */ - public Builder addAllTypes(java.lang.Iterable values) { - ensureTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, types_); - bitField0_ |= 0x00000008; + public Builder setFormattedAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + formattedAddress_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -25178,20 +30303,16 @@ public Builder addAllTypes(java.lang.Iterable values) { * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A full, human-readable address for this place.
      * 
* - * repeated string types = 5; + * string formatted_address = 9; * * @return This builder for chaining. */ - public Builder clearTypes() { - types_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + public Builder clearFormattedAddress() { + formattedAddress_ = getDefaultInstance().getFormattedAddress(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -25200,52 +30321,44 @@ public Builder clearTypes() { * * *
-     * A set of type tags for this result. For example, "political" and
-     * "locality". For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A full, human-readable address for this place.
      * 
* - * repeated string types = 5; + * string formatted_address = 9; * - * @param value The bytes of the types to add. + * @param value The bytes for formattedAddress to set. * @return This builder for chaining. */ - public Builder addTypesBytes(com.google.protobuf.ByteString value) { + public Builder setFormattedAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureTypesIsMutable(); - types_.add(value); - bitField0_ |= 0x00000008; + formattedAddress_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } - private java.lang.Object primaryType_ = ""; + private java.lang.Object shortFormattedAddress_ = ""; /** * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-     * place can only have a single primary type.  For the complete list of
-     * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A short, human-readable address for this place.
      * 
* - * string primary_type = 50; + * string short_formatted_address = 51; * - * @return The primaryType. + * @return The shortFormattedAddress. */ - public java.lang.String getPrimaryType() { - java.lang.Object ref = primaryType_; + public java.lang.String getShortFormattedAddress() { + java.lang.Object ref = shortFormattedAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - primaryType_ = s; + shortFormattedAddress_ = s; return s; } else { return (java.lang.String) ref; @@ -25256,23 +30369,19 @@ public java.lang.String getPrimaryType() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-     * place can only have a single primary type.  For the complete list of
-     * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A short, human-readable address for this place.
      * 
* - * string primary_type = 50; + * string short_formatted_address = 51; * - * @return The bytes for primaryType. + * @return The bytes for shortFormattedAddress. */ - public com.google.protobuf.ByteString getPrimaryTypeBytes() { - java.lang.Object ref = primaryType_; + public com.google.protobuf.ByteString getShortFormattedAddressBytes() { + java.lang.Object ref = shortFormattedAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - primaryType_ = b; + shortFormattedAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -25283,24 +30392,20 @@ public com.google.protobuf.ByteString getPrimaryTypeBytes() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-     * place can only have a single primary type.  For the complete list of
-     * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A short, human-readable address for this place.
      * 
* - * string primary_type = 50; + * string short_formatted_address = 51; * - * @param value The primaryType to set. + * @param value The shortFormattedAddress to set. * @return This builder for chaining. */ - public Builder setPrimaryType(java.lang.String value) { + public Builder setShortFormattedAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - primaryType_ = value; - bitField0_ |= 0x00000010; + shortFormattedAddress_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -25309,20 +30414,16 @@ public Builder setPrimaryType(java.lang.String value) { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-     * place can only have a single primary type.  For the complete list of
-     * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A short, human-readable address for this place.
      * 
* - * string primary_type = 50; + * string short_formatted_address = 51; * * @return This builder for chaining. */ - public Builder clearPrimaryType() { - primaryType_ = getDefaultInstance().getPrimaryType(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearShortFormattedAddress() { + shortFormattedAddress_ = getDefaultInstance().getShortFormattedAddress(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -25331,75 +30432,65 @@ public Builder clearPrimaryType() { * * *
-     * The primary type of the given result. This type must one of the Places API
-     * supported types. For example, "restaurant", "cafe", "airport", etc.  A
-     * place can only have a single primary type.  For the complete list of
-     * possible values, see Table A and Table B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * A short, human-readable address for this place.
      * 
* - * string primary_type = 50; + * string short_formatted_address = 51; * - * @param value The bytes for primaryType to set. + * @param value The bytes for shortFormattedAddress to set. * @return This builder for chaining. */ - public Builder setPrimaryTypeBytes(com.google.protobuf.ByteString value) { + public Builder setShortFormattedAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - primaryType_ = value; - bitField0_ |= 0x00000010; + shortFormattedAddress_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } - private com.google.type.LocalizedText primaryTypeDisplayName_; + private com.google.type.PostalAddress postalAddress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - primaryTypeDisplayNameBuilder_; + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + postalAddressBuilder_; /** * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; * - * @return Whether the primaryTypeDisplayName field is set. + * @return Whether the postalAddress field is set. */ - public boolean hasPrimaryTypeDisplayName() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasPostalAddress() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; * - * @return The primaryTypeDisplayName. + * @return The postalAddress. */ - public com.google.type.LocalizedText getPrimaryTypeDisplayName() { - if (primaryTypeDisplayNameBuilder_ == null) { - return primaryTypeDisplayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : primaryTypeDisplayName_; + public com.google.type.PostalAddress getPostalAddress() { + if (postalAddressBuilder_ == null) { + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; } else { - return primaryTypeDisplayNameBuilder_.getMessage(); + return postalAddressBuilder_.getMessage(); } } @@ -25407,24 +30498,21 @@ public com.google.type.LocalizedText getPrimaryTypeDisplayName() { * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; */ - public Builder setPrimaryTypeDisplayName(com.google.type.LocalizedText value) { - if (primaryTypeDisplayNameBuilder_ == null) { + public Builder setPostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - primaryTypeDisplayName_ = value; + postalAddress_ = value; } else { - primaryTypeDisplayNameBuilder_.setMessage(value); + postalAddressBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -25433,22 +30521,18 @@ public Builder setPrimaryTypeDisplayName(com.google.type.LocalizedText value) { * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; */ - public Builder setPrimaryTypeDisplayName( - com.google.type.LocalizedText.Builder builderForValue) { - if (primaryTypeDisplayNameBuilder_ == null) { - primaryTypeDisplayName_ = builderForValue.build(); + public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (postalAddressBuilder_ == null) { + postalAddress_ = builderForValue.build(); } else { - primaryTypeDisplayNameBuilder_.setMessage(builderForValue.build()); + postalAddressBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -25457,28 +30541,25 @@ public Builder setPrimaryTypeDisplayName( * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; */ - public Builder mergePrimaryTypeDisplayName(com.google.type.LocalizedText value) { - if (primaryTypeDisplayNameBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && primaryTypeDisplayName_ != null - && primaryTypeDisplayName_ != com.google.type.LocalizedText.getDefaultInstance()) { - getPrimaryTypeDisplayNameBuilder().mergeFrom(value); + public Builder mergePostalAddress(com.google.type.PostalAddress value) { + if (postalAddressBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && postalAddress_ != null + && postalAddress_ != com.google.type.PostalAddress.getDefaultInstance()) { + getPostalAddressBuilder().mergeFrom(value); } else { - primaryTypeDisplayName_ = value; + postalAddress_ = value; } } else { - primaryTypeDisplayNameBuilder_.mergeFrom(value); + postalAddressBuilder_.mergeFrom(value); } - if (primaryTypeDisplayName_ != null) { - bitField0_ |= 0x00000020; + if (postalAddress_ != null) { + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -25488,116 +30569,53 @@ public Builder mergePrimaryTypeDisplayName(com.google.type.LocalizedText value) * * *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
-     * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - */ - public Builder clearPrimaryTypeDisplayName() { - bitField0_ = (bitField0_ & ~0x00000020); - primaryTypeDisplayName_ = null; - if (primaryTypeDisplayNameBuilder_ != null) { - primaryTypeDisplayNameBuilder_.dispose(); - primaryTypeDisplayNameBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
-     * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - */ - public com.google.type.LocalizedText.Builder getPrimaryTypeDisplayNameBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPrimaryTypeDisplayNameFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
-     * 
- * - * .google.type.LocalizedText primary_type_display_name = 32; - */ - public com.google.type.LocalizedTextOrBuilder getPrimaryTypeDisplayNameOrBuilder() { - if (primaryTypeDisplayNameBuilder_ != null) { - return primaryTypeDisplayNameBuilder_.getMessageOrBuilder(); - } else { - return primaryTypeDisplayName_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : primaryTypeDisplayName_; - } - } - - /** - * - * - *
-     * The display name of the primary type, localized to the request language if
-     * applicable. For the complete list of possible values, see Table A and Table
-     * B at
-     * https://developers.google.com/maps/documentation/places/web-service/place-types
+     * The address in postal address format.
      * 
* - * .google.type.LocalizedText primary_type_display_name = 32; + * .google.type.PostalAddress postal_address = 90; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - getPrimaryTypeDisplayNameFieldBuilder() { - if (primaryTypeDisplayNameBuilder_ == null) { - primaryTypeDisplayNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder>( - getPrimaryTypeDisplayName(), getParentForChildren(), isClean()); - primaryTypeDisplayName_ = null; + public Builder clearPostalAddress() { + bitField0_ = (bitField0_ & ~0x00000400); + postalAddress_ = null; + if (postalAddressBuilder_ != null) { + postalAddressBuilder_.dispose(); + postalAddressBuilder_ = null; } - return primaryTypeDisplayNameBuilder_; + onChanged(); + return this; } - private java.lang.Object nationalPhoneNumber_ = ""; - /** * * *
-     * A human-readable phone number for the place, in national format.
+     * The address in postal address format.
      * 
* - * string national_phone_number = 7; + * .google.type.PostalAddress postal_address = 90; + */ + public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getPostalAddressFieldBuilder().getBuilder(); + } + + /** * - * @return The nationalPhoneNumber. + * + *
+     * The address in postal address format.
+     * 
+ * + * .google.type.PostalAddress postal_address = 90; */ - public java.lang.String getNationalPhoneNumber() { - java.lang.Object ref = nationalPhoneNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nationalPhoneNumber_ = s; - return s; + public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { + if (postalAddressBuilder_ != null) { + return postalAddressBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return postalAddress_ == null + ? com.google.type.PostalAddress.getDefaultInstance() + : postalAddress_; } } @@ -25605,155 +30623,241 @@ public java.lang.String getNationalPhoneNumber() { * * *
-     * A human-readable phone number for the place, in national format.
+     * The address in postal address format.
      * 
* - * string national_phone_number = 7; - * - * @return The bytes for nationalPhoneNumber. + * .google.type.PostalAddress postal_address = 90; */ - public com.google.protobuf.ByteString getNationalPhoneNumberBytes() { - java.lang.Object ref = nationalPhoneNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nationalPhoneNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getPostalAddressFieldBuilder() { + if (postalAddressBuilder_ == null) { + postalAddressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + getPostalAddress(), getParentForChildren(), isClean()); + postalAddress_ = null; + } + return postalAddressBuilder_; + } + + private java.util.List addressComponents_ = + java.util.Collections.emptyList(); + + private void ensureAddressComponentsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + addressComponents_ = + new java.util.ArrayList( + addressComponents_); + bitField0_ |= 0x00000800; } } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.AddressComponent, + com.google.maps.places.v1.Place.AddressComponent.Builder, + com.google.maps.places.v1.Place.AddressComponentOrBuilder> + addressComponentsBuilder_; + /** * * *
-     * A human-readable phone number for the place, in national format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string national_phone_number = 7; - * - * @param value The nationalPhoneNumber to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setNationalPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getAddressComponentsList() { + if (addressComponentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(addressComponents_); + } else { + return addressComponentsBuilder_.getMessageList(); } - nationalPhoneNumber_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; } /** * * *
-     * A human-readable phone number for the place, in national format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string national_phone_number = 7; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder clearNationalPhoneNumber() { - nationalPhoneNumber_ = getDefaultInstance().getNationalPhoneNumber(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; + public int getAddressComponentsCount() { + if (addressComponentsBuilder_ == null) { + return addressComponents_.size(); + } else { + return addressComponentsBuilder_.getCount(); + } } /** * * *
-     * A human-readable phone number for the place, in national format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string national_phone_number = 7; - * - * @param value The bytes for nationalPhoneNumber to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setNationalPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { + if (addressComponentsBuilder_ == null) { + return addressComponents_.get(index); + } else { + return addressComponentsBuilder_.getMessage(index); } - checkByteStringIsUtf8(value); - nationalPhoneNumber_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; } - private java.lang.Object internationalPhoneNumber_ = ""; - /** * * *
-     * A human-readable phone number for the place, in international format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string international_phone_number = 8; - * - * @return The internationalPhoneNumber. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public java.lang.String getInternationalPhoneNumber() { - java.lang.Object ref = internationalPhoneNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internationalPhoneNumber_ = s; - return s; + public Builder setAddressComponents( + int index, com.google.maps.places.v1.Place.AddressComponent value) { + if (addressComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressComponentsIsMutable(); + addressComponents_.set(index, value); + onChanged(); } else { - return (java.lang.String) ref; + addressComponentsBuilder_.setMessage(index, value); } + return this; } /** * * *
-     * A human-readable phone number for the place, in international format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string international_phone_number = 8; - * - * @return The bytes for internationalPhoneNumber. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public com.google.protobuf.ByteString getInternationalPhoneNumberBytes() { - java.lang.Object ref = internationalPhoneNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - internationalPhoneNumber_ = b; - return b; + public Builder setAddressComponents( + int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { + if (addressComponentsBuilder_ == null) { + ensureAddressComponentsIsMutable(); + addressComponents_.set(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + addressComponentsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * A human-readable phone number for the place, in international format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string international_phone_number = 8; - * - * @param value The internationalPhoneNumber to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setInternationalPhoneNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAddressComponents(com.google.maps.places.v1.Place.AddressComponent value) { + if (addressComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressComponentsIsMutable(); + addressComponents_.add(value); + onChanged(); + } else { + addressComponentsBuilder_.addMessage(value); } - internationalPhoneNumber_ = value; - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -25761,17 +30865,36 @@ public Builder setInternationalPhoneNumber(java.lang.String value) { * * *
-     * A human-readable phone number for the place, in international format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string international_phone_number = 8; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder clearInternationalPhoneNumber() { - internationalPhoneNumber_ = getDefaultInstance().getInternationalPhoneNumber(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); + public Builder addAddressComponents( + int index, com.google.maps.places.v1.Place.AddressComponent value) { + if (addressComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressComponentsIsMutable(); + addressComponents_.add(index, value); + onChanged(); + } else { + addressComponentsBuilder_.addMessage(index, value); + } return this; } @@ -25779,92 +30902,134 @@ public Builder clearInternationalPhoneNumber() { * * *
-     * A human-readable phone number for the place, in international format.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string international_phone_number = 8; - * - * @param value The bytes for internationalPhoneNumber to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setInternationalPhoneNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAddressComponents( + com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { + if (addressComponentsBuilder_ == null) { + ensureAddressComponentsIsMutable(); + addressComponents_.add(builderForValue.build()); + onChanged(); + } else { + addressComponentsBuilder_.addMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - internationalPhoneNumber_ = value; - bitField0_ |= 0x00000080; - onChanged(); return this; } - private java.lang.Object formattedAddress_ = ""; - /** * * *
-     * A full, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string formatted_address = 9; - * - * @return The formattedAddress. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public java.lang.String getFormattedAddress() { - java.lang.Object ref = formattedAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - formattedAddress_ = s; - return s; + public Builder addAddressComponents( + int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { + if (addressComponentsBuilder_ == null) { + ensureAddressComponentsIsMutable(); + addressComponents_.add(index, builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + addressComponentsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * A full, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string formatted_address = 9; - * - * @return The bytes for formattedAddress. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public com.google.protobuf.ByteString getFormattedAddressBytes() { - java.lang.Object ref = formattedAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - formattedAddress_ = b; - return b; + public Builder addAllAddressComponents( + java.lang.Iterable values) { + if (addressComponentsBuilder_ == null) { + ensureAddressComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressComponents_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + addressComponentsBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * A full, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string formatted_address = 9; - * - * @param value The formattedAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setFormattedAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearAddressComponents() { + if (addressComponentsBuilder_ == null) { + addressComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + addressComponentsBuilder_.clear(); } - formattedAddress_ = value; - bitField0_ |= 0x00000100; - onChanged(); return this; } @@ -25872,17 +31037,32 @@ public Builder setFormattedAddress(java.lang.String value) { * * *
-     * A full, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string formatted_address = 9; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder clearFormattedAddress() { - formattedAddress_ = getDefaultInstance().getFormattedAddress(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); + public Builder removeAddressComponents(int index) { + if (addressComponentsBuilder_ == null) { + ensureAddressComponentsIsMutable(); + addressComponents_.remove(index); + onChanged(); + } else { + addressComponentsBuilder_.remove(index); + } return this; } @@ -25890,47 +31070,57 @@ public Builder clearFormattedAddress() { * * *
-     * A full, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string formatted_address = 9; - * - * @param value The bytes for formattedAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setFormattedAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - formattedAddress_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; + public com.google.maps.places.v1.Place.AddressComponent.Builder getAddressComponentsBuilder( + int index) { + return getAddressComponentsFieldBuilder().getBuilder(index); } - private java.lang.Object shortFormattedAddress_ = ""; - /** * * *
-     * A short, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string short_formatted_address = 51; - * - * @return The shortFormattedAddress. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public java.lang.String getShortFormattedAddress() { - java.lang.Object ref = shortFormattedAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortFormattedAddress_ = s; - return s; + public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( + int index) { + if (addressComponentsBuilder_ == null) { + return addressComponents_.get(index); } else { - return (java.lang.String) ref; + return addressComponentsBuilder_.getMessageOrBuilder(index); } } @@ -25938,22 +31128,30 @@ public java.lang.String getShortFormattedAddress() { * * *
-     * A short, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string short_formatted_address = 51; - * - * @return The bytes for shortFormattedAddress. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public com.google.protobuf.ByteString getShortFormattedAddressBytes() { - java.lang.Object ref = shortFormattedAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - shortFormattedAddress_ = b; - return b; + public java.util.List + getAddressComponentsOrBuilderList() { + if (addressComponentsBuilder_ != null) { + return addressComponentsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(addressComponents_); } } @@ -25961,105 +31159,144 @@ public com.google.protobuf.ByteString getShortFormattedAddressBytes() { * * *
-     * A short, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string short_formatted_address = 51; - * - * @param value The shortFormattedAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setShortFormattedAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - shortFormattedAddress_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder() { + return getAddressComponentsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); } /** * * *
-     * A short, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string short_formatted_address = 51; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder clearShortFormattedAddress() { - shortFormattedAddress_ = getDefaultInstance().getShortFormattedAddress(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; + public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder( + int index) { + return getAddressComponentsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); } /** * * *
-     * A short, human-readable address for this place.
+     * Repeated components for each locality level.
+     * Note the following facts about the address_components[] array:
+     * - The array of address components may contain more components than the
+     * formatted_address.
+     * - The array does not necessarily include all the political entities that
+     * contain an address, apart from those included in the formatted_address. To
+     * retrieve all the political entities that contain a specific address, you
+     * should use reverse geocoding, passing the latitude/longitude of the address
+     * as a parameter to the request.
+     * - The format of the response is not guaranteed to remain the same between
+     * requests. In particular, the number of address_components varies based on
+     * the address requested and can change over time for the same address. A
+     * component can change position in the array. The type of the component can
+     * change. A particular component may be missing in a later response.
      * 
* - * string short_formatted_address = 51; - * - * @param value The bytes for shortFormattedAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; */ - public Builder setShortFormattedAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getAddressComponentsBuilderList() { + return getAddressComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.AddressComponent, + com.google.maps.places.v1.Place.AddressComponent.Builder, + com.google.maps.places.v1.Place.AddressComponentOrBuilder> + getAddressComponentsFieldBuilder() { + if (addressComponentsBuilder_ == null) { + addressComponentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.AddressComponent, + com.google.maps.places.v1.Place.AddressComponent.Builder, + com.google.maps.places.v1.Place.AddressComponentOrBuilder>( + addressComponents_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + addressComponents_ = null; } - checkByteStringIsUtf8(value); - shortFormattedAddress_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + return addressComponentsBuilder_; } - private com.google.type.PostalAddress postalAddress_; + private com.google.maps.places.v1.Place.PlusCode plusCode_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - postalAddressBuilder_; + com.google.maps.places.v1.Place.PlusCode, + com.google.maps.places.v1.Place.PlusCode.Builder, + com.google.maps.places.v1.Place.PlusCodeOrBuilder> + plusCodeBuilder_; /** * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; * - * @return Whether the postalAddress field is set. + * @return Whether the plusCode field is set. */ - public boolean hasPostalAddress() { - return ((bitField0_ & 0x00000400) != 0); + public boolean hasPlusCode() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; * - * @return The postalAddress. + * @return The plusCode. */ - public com.google.type.PostalAddress getPostalAddress() { - if (postalAddressBuilder_ == null) { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; + public com.google.maps.places.v1.Place.PlusCode getPlusCode() { + if (plusCodeBuilder_ == null) { + return plusCode_ == null + ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() + : plusCode_; } else { - return postalAddressBuilder_.getMessage(); + return plusCodeBuilder_.getMessage(); } } @@ -26067,21 +31304,21 @@ public com.google.type.PostalAddress getPostalAddress() { * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ - public Builder setPostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { + public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode value) { + if (plusCodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - postalAddress_ = value; + plusCode_ = value; } else { - postalAddressBuilder_.setMessage(value); + plusCodeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -26090,18 +31327,18 @@ public Builder setPostalAddress(com.google.type.PostalAddress value) { * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; - */ - public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderForValue) { - if (postalAddressBuilder_ == null) { - postalAddress_ = builderForValue.build(); + * .google.maps.places.v1.Place.PlusCode plus_code = 11; + */ + public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode.Builder builderForValue) { + if (plusCodeBuilder_ == null) { + plusCode_ = builderForValue.build(); } else { - postalAddressBuilder_.setMessage(builderForValue.build()); + plusCodeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -26110,25 +31347,25 @@ public Builder setPostalAddress(com.google.type.PostalAddress.Builder builderFor * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ - public Builder mergePostalAddress(com.google.type.PostalAddress value) { - if (postalAddressBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && postalAddress_ != null - && postalAddress_ != com.google.type.PostalAddress.getDefaultInstance()) { - getPostalAddressBuilder().mergeFrom(value); + public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { + if (plusCodeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && plusCode_ != null + && plusCode_ != com.google.maps.places.v1.Place.PlusCode.getDefaultInstance()) { + getPlusCodeBuilder().mergeFrom(value); } else { - postalAddress_ = value; + plusCode_ = value; } } else { - postalAddressBuilder_.mergeFrom(value); + plusCodeBuilder_.mergeFrom(value); } - if (postalAddress_ != null) { - bitField0_ |= 0x00000400; + if (plusCode_ != null) { + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -26138,17 +31375,17 @@ public Builder mergePostalAddress(com.google.type.PostalAddress value) { * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ - public Builder clearPostalAddress() { - bitField0_ = (bitField0_ & ~0x00000400); - postalAddress_ = null; - if (postalAddressBuilder_ != null) { - postalAddressBuilder_.dispose(); - postalAddressBuilder_ = null; + public Builder clearPlusCode() { + bitField0_ = (bitField0_ & ~0x00001000); + plusCode_ = null; + if (plusCodeBuilder_ != null) { + plusCodeBuilder_.dispose(); + plusCodeBuilder_ = null; } onChanged(); return this; @@ -26158,33 +31395,33 @@ public Builder clearPostalAddress() { * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ - public com.google.type.PostalAddress.Builder getPostalAddressBuilder() { - bitField0_ |= 0x00000400; + public com.google.maps.places.v1.Place.PlusCode.Builder getPlusCodeBuilder() { + bitField0_ |= 0x00001000; onChanged(); - return getPostalAddressFieldBuilder().getBuilder(); + return getPlusCodeFieldBuilder().getBuilder(); } /** * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ - public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { - if (postalAddressBuilder_ != null) { - return postalAddressBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { + if (plusCodeBuilder_ != null) { + return plusCodeBuilder_.getMessageOrBuilder(); } else { - return postalAddress_ == null - ? com.google.type.PostalAddress.getDefaultInstance() - : postalAddress_; + return plusCode_ == null + ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() + : plusCode_; } } @@ -26192,74 +31429,64 @@ public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder() { * * *
-     * The address in postal address format.
+     * Plus code of the place location lat/long.
      * 
* - * .google.type.PostalAddress postal_address = 90; + * .google.maps.places.v1.Place.PlusCode plus_code = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - getPostalAddressFieldBuilder() { - if (postalAddressBuilder_ == null) { - postalAddressBuilder_ = + com.google.maps.places.v1.Place.PlusCode, + com.google.maps.places.v1.Place.PlusCode.Builder, + com.google.maps.places.v1.Place.PlusCodeOrBuilder> + getPlusCodeFieldBuilder() { + if (plusCodeBuilder_ == null) { + plusCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder>( - getPostalAddress(), getParentForChildren(), isClean()); - postalAddress_ = null; + com.google.maps.places.v1.Place.PlusCode, + com.google.maps.places.v1.Place.PlusCode.Builder, + com.google.maps.places.v1.Place.PlusCodeOrBuilder>( + getPlusCode(), getParentForChildren(), isClean()); + plusCode_ = null; } - return postalAddressBuilder_; + return plusCodeBuilder_; } - private java.util.List addressComponents_ = - java.util.Collections.emptyList(); + private com.google.type.LatLng location_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + locationBuilder_; - private void ensureAddressComponentsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - addressComponents_ = - new java.util.ArrayList( - addressComponents_); - bitField0_ |= 0x00000800; - } + /** + * + * + *
+     * The position of this place.
+     * 
+ * + * .google.type.LatLng location = 12; + * + * @return Whether the location field is set. + */ + public boolean hasLocation() { + return ((bitField0_ & 0x00002000) != 0); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.AddressComponent, - com.google.maps.places.v1.Place.AddressComponent.Builder, - com.google.maps.places.v1.Place.AddressComponentOrBuilder> - addressComponentsBuilder_; - /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; + * + * @return The location. */ - public java.util.List - getAddressComponentsList() { - if (addressComponentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(addressComponents_); + public com.google.type.LatLng getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } else { - return addressComponentsBuilder_.getMessageList(); + return locationBuilder_.getMessage(); } } @@ -26267,95 +31494,69 @@ private void ensureAddressComponentsIsMutable() { * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public int getAddressComponentsCount() { - if (addressComponentsBuilder_ == null) { - return addressComponents_.size(); + public Builder setLocation(com.google.type.LatLng value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; } else { - return addressComponentsBuilder_.getCount(); + locationBuilder_.setMessage(value); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public com.google.maps.places.v1.Place.AddressComponent getAddressComponents(int index) { - if (addressComponentsBuilder_ == null) { - return addressComponents_.get(index); + public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); } else { - return addressComponentsBuilder_.getMessage(index); + locationBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00002000; + onChanged(); + return this; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public Builder setAddressComponents( - int index, com.google.maps.places.v1.Place.AddressComponent value) { - if (addressComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeLocation(com.google.type.LatLng value) { + if (locationBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && location_ != null + && location_ != com.google.type.LatLng.getDefaultInstance()) { + getLocationBuilder().mergeFrom(value); + } else { + location_ = value; } - ensureAddressComponentsIsMutable(); - addressComponents_.set(index, value); + } else { + locationBuilder_.mergeFrom(value); + } + if (location_ != null) { + bitField0_ |= 0x00002000; onChanged(); - } else { - addressComponentsBuilder_.setMessage(index, value); } return this; } @@ -26364,33 +31565,19 @@ public Builder setAddressComponents( * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public Builder setAddressComponents( - int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { - if (addressComponentsBuilder_ == null) { - ensureAddressComponentsIsMutable(); - addressComponents_.set(index, builderForValue.build()); - onChanged(); - } else { - addressComponentsBuilder_.setMessage(index, builderForValue.build()); + public Builder clearLocation() { + bitField0_ = (bitField0_ & ~0x00002000); + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; } + onChanged(); return this; } @@ -26398,174 +31585,124 @@ public Builder setAddressComponents( * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public Builder addAddressComponents(com.google.maps.places.v1.Place.AddressComponent value) { - if (addressComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressComponentsIsMutable(); - addressComponents_.add(value); - onChanged(); - } else { - addressComponentsBuilder_.addMessage(value); - } - return this; + public com.google.type.LatLng.Builder getLocationBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getLocationFieldBuilder().getBuilder(); } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public Builder addAddressComponents( - int index, com.google.maps.places.v1.Place.AddressComponent value) { - if (addressComponentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressComponentsIsMutable(); - addressComponents_.add(index, value); - onChanged(); + public com.google.type.LatLngOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); } else { - addressComponentsBuilder_.addMessage(index, value); + return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; } - return this; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * The position of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.type.LatLng location = 12; */ - public Builder addAddressComponents( - com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { - if (addressComponentsBuilder_ == null) { - ensureAddressComponentsIsMutable(); - addressComponents_.add(builderForValue.build()); - onChanged(); - } else { - addressComponentsBuilder_.addMessage(builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLocation(), getParentForChildren(), isClean()); + location_ = null; } - return this; + return locationBuilder_; } + private com.google.geo.type.Viewport viewport_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder> + viewportBuilder_; + /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; + * + * @return Whether the viewport field is set. */ - public Builder addAddressComponents( - int index, com.google.maps.places.v1.Place.AddressComponent.Builder builderForValue) { - if (addressComponentsBuilder_ == null) { - ensureAddressComponentsIsMutable(); - addressComponents_.add(index, builderForValue.build()); - onChanged(); + public boolean hasViewport() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
+     * 
+ * + * .google.geo.type.Viewport viewport = 13; + * + * @return The viewport. + */ + public com.google.geo.type.Viewport getViewport() { + if (viewportBuilder_ == null) { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } else { - addressComponentsBuilder_.addMessage(index, builderForValue.build()); + return viewportBuilder_.getMessage(); } - return this; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public Builder addAllAddressComponents( - java.lang.Iterable values) { - if (addressComponentsBuilder_ == null) { - ensureAddressComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addressComponents_); - onChanged(); + public Builder setViewport(com.google.geo.type.Viewport value) { + if (viewportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + viewport_ = value; } else { - addressComponentsBuilder_.addAllMessages(values); + viewportBuilder_.setMessage(value); } + bitField0_ |= 0x00004000; + onChanged(); return this; } @@ -26573,32 +31710,21 @@ public Builder addAllAddressComponents( * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; - */ - public Builder clearAddressComponents() { - if (addressComponentsBuilder_ == null) { - addressComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); + * .google.geo.type.Viewport viewport = 13; + */ + public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) { + if (viewportBuilder_ == null) { + viewport_ = builderForValue.build(); } else { - addressComponentsBuilder_.clear(); + viewportBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00004000; + onChanged(); return this; } @@ -26606,31 +31732,28 @@ public Builder clearAddressComponents() { * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public Builder removeAddressComponents(int index) { - if (addressComponentsBuilder_ == null) { - ensureAddressComponentsIsMutable(); - addressComponents_.remove(index); - onChanged(); + public Builder mergeViewport(com.google.geo.type.Viewport value) { + if (viewportBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && viewport_ != null + && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { + getViewportBuilder().mergeFrom(value); + } else { + viewport_ = value; + } } else { - addressComponentsBuilder_.remove(index); + viewportBuilder_.mergeFrom(value); + } + if (viewport_ != null) { + bitField0_ |= 0x00004000; + onChanged(); } return this; } @@ -26639,88 +31762,57 @@ public Builder removeAddressComponents(int index) { * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public com.google.maps.places.v1.Place.AddressComponent.Builder getAddressComponentsBuilder( - int index) { - return getAddressComponentsFieldBuilder().getBuilder(index); + public Builder clearViewport() { + bitField0_ = (bitField0_ & ~0x00004000); + viewport_ = null; + if (viewportBuilder_ != null) { + viewportBuilder_.dispose(); + viewportBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOrBuilder( - int index) { - if (addressComponentsBuilder_ == null) { - return addressComponents_.get(index); - } else { - return addressComponentsBuilder_.getMessageOrBuilder(index); - } + public com.google.geo.type.Viewport.Builder getViewportBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getViewportFieldBuilder().getBuilder(); } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public java.util.List - getAddressComponentsOrBuilderList() { - if (addressComponentsBuilder_ != null) { - return addressComponentsBuilder_.getMessageOrBuilderList(); + public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { + if (viewportBuilder_ != null) { + return viewportBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(addressComponents_); + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } } @@ -26728,144 +31820,131 @@ public com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressCompo * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A viewport suitable for displaying the place on an average-sized map. This
+     * viewport should not be used as the physical boundary or the service area of
+     * the business.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * .google.geo.type.Viewport viewport = 13; */ - public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder() { - return getAddressComponentsFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder> + getViewportFieldBuilder() { + if (viewportBuilder_ == null) { + viewportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder>( + getViewport(), getParentForChildren(), isClean()); + viewport_ = null; + } + return viewportBuilder_; } + private double rating_; + /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A rating between 1.0 and 5.0, based on user reviews of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * double rating = 14; + * + * @return The rating. */ - public com.google.maps.places.v1.Place.AddressComponent.Builder addAddressComponentsBuilder( - int index) { - return getAddressComponentsFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.AddressComponent.getDefaultInstance()); + @java.lang.Override + public double getRating() { + return rating_; } /** * * *
-     * Repeated components for each locality level.
-     * Note the following facts about the address_components[] array:
-     * - The array of address components may contain more components than the
-     * formatted_address.
-     * - The array does not necessarily include all the political entities that
-     * contain an address, apart from those included in the formatted_address. To
-     * retrieve all the political entities that contain a specific address, you
-     * should use reverse geocoding, passing the latitude/longitude of the address
-     * as a parameter to the request.
-     * - The format of the response is not guaranteed to remain the same between
-     * requests. In particular, the number of address_components varies based on
-     * the address requested and can change over time for the same address. A
-     * component can change position in the array. The type of the component can
-     * change. A particular component may be missing in a later response.
+     * A rating between 1.0 and 5.0, based on user reviews of this place.
      * 
* - * repeated .google.maps.places.v1.Place.AddressComponent address_components = 10; + * double rating = 14; + * + * @param value The rating to set. + * @return This builder for chaining. */ - public java.util.List - getAddressComponentsBuilderList() { - return getAddressComponentsFieldBuilder().getBuilderList(); + public Builder setRating(double value) { + + rating_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.AddressComponent, - com.google.maps.places.v1.Place.AddressComponent.Builder, - com.google.maps.places.v1.Place.AddressComponentOrBuilder> - getAddressComponentsFieldBuilder() { - if (addressComponentsBuilder_ == null) { - addressComponentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.AddressComponent, - com.google.maps.places.v1.Place.AddressComponent.Builder, - com.google.maps.places.v1.Place.AddressComponentOrBuilder>( - addressComponents_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - addressComponents_ = null; - } - return addressComponentsBuilder_; + /** + * + * + *
+     * A rating between 1.0 and 5.0, based on user reviews of this place.
+     * 
+ * + * double rating = 14; + * + * @return This builder for chaining. + */ + public Builder clearRating() { + bitField0_ = (bitField0_ & ~0x00008000); + rating_ = 0D; + onChanged(); + return this; } - private com.google.maps.places.v1.Place.PlusCode plusCode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PlusCode, - com.google.maps.places.v1.Place.PlusCode.Builder, - com.google.maps.places.v1.Place.PlusCodeOrBuilder> - plusCodeBuilder_; + private java.lang.Object googleMapsUri_ = ""; /** * * *
-     * Plus code of the place location lat/long.
+     * A URL providing more information about this place.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string google_maps_uri = 15; * - * @return Whether the plusCode field is set. + * @return The googleMapsUri. */ - public boolean hasPlusCode() { - return ((bitField0_ & 0x00001000) != 0); + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Plus code of the place location lat/long.
+     * A URL providing more information about this place.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string google_maps_uri = 15; * - * @return The plusCode. + * @return The bytes for googleMapsUri. */ - public com.google.maps.places.v1.Place.PlusCode getPlusCode() { - if (plusCodeBuilder_ == null) { - return plusCode_ == null - ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() - : plusCode_; + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; } else { - return plusCodeBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -26873,21 +31952,20 @@ public com.google.maps.places.v1.Place.PlusCode getPlusCode() { * * *
-     * Plus code of the place location lat/long.
+     * A URL providing more information about this place.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string google_maps_uri = 15; + * + * @param value The googleMapsUri to set. + * @return This builder for chaining. */ - public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode value) { - if (plusCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - plusCode_ = value; - } else { - plusCodeBuilder_.setMessage(value); + public Builder setGoogleMapsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00001000; + googleMapsUri_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -26896,166 +31974,218 @@ public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode value) { * * *
-     * Plus code of the place location lat/long.
+     * A URL providing more information about this place.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string google_maps_uri = 15; + * + * @return This builder for chaining. */ - public Builder setPlusCode(com.google.maps.places.v1.Place.PlusCode.Builder builderForValue) { - if (plusCodeBuilder_ == null) { - plusCode_ = builderForValue.build(); - } else { - plusCodeBuilder_.setMessage(builderForValue.build()); + public Builder clearGoogleMapsUri() { + googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
+     * A URL providing more information about this place.
+     * 
+ * + * string google_maps_uri = 15; + * + * @param value The bytes for googleMapsUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00001000; + checkByteStringIsUtf8(value); + googleMapsUri_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } + private java.lang.Object websiteUri_ = ""; + /** * * *
-     * Plus code of the place location lat/long.
+     * The authoritative website for this place, e.g. a business' homepage.
+     * Note that for places that are part of a chain (e.g. an IKEA store), this
+     * will usually be the website for the individual store, not the overall
+     * chain.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string website_uri = 16; + * + * @return The websiteUri. */ - public Builder mergePlusCode(com.google.maps.places.v1.Place.PlusCode value) { - if (plusCodeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && plusCode_ != null - && plusCode_ != com.google.maps.places.v1.Place.PlusCode.getDefaultInstance()) { - getPlusCodeBuilder().mergeFrom(value); - } else { - plusCode_ = value; - } + public java.lang.String getWebsiteUri() { + java.lang.Object ref = websiteUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + websiteUri_ = s; + return s; } else { - plusCodeBuilder_.mergeFrom(value); - } - if (plusCode_ != null) { - bitField0_ |= 0x00001000; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
-     * Plus code of the place location lat/long.
+     * The authoritative website for this place, e.g. a business' homepage.
+     * Note that for places that are part of a chain (e.g. an IKEA store), this
+     * will usually be the website for the individual store, not the overall
+     * chain.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string website_uri = 16; + * + * @return The bytes for websiteUri. */ - public Builder clearPlusCode() { - bitField0_ = (bitField0_ & ~0x00001000); - plusCode_ = null; - if (plusCodeBuilder_ != null) { - plusCodeBuilder_.dispose(); - plusCodeBuilder_ = null; + public com.google.protobuf.ByteString getWebsiteUriBytes() { + java.lang.Object ref = websiteUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + websiteUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onChanged(); - return this; } /** * * *
-     * Plus code of the place location lat/long.
+     * The authoritative website for this place, e.g. a business' homepage.
+     * Note that for places that are part of a chain (e.g. an IKEA store), this
+     * will usually be the website for the individual store, not the overall
+     * chain.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string website_uri = 16; + * + * @param value The websiteUri to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.Place.PlusCode.Builder getPlusCodeBuilder() { - bitField0_ |= 0x00001000; + public Builder setWebsiteUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + websiteUri_ = value; + bitField0_ |= 0x00020000; onChanged(); - return getPlusCodeFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Plus code of the place location lat/long.
+     * The authoritative website for this place, e.g. a business' homepage.
+     * Note that for places that are part of a chain (e.g. an IKEA store), this
+     * will usually be the website for the individual store, not the overall
+     * chain.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string website_uri = 16; + * + * @return This builder for chaining. */ - public com.google.maps.places.v1.Place.PlusCodeOrBuilder getPlusCodeOrBuilder() { - if (plusCodeBuilder_ != null) { - return plusCodeBuilder_.getMessageOrBuilder(); - } else { - return plusCode_ == null - ? com.google.maps.places.v1.Place.PlusCode.getDefaultInstance() - : plusCode_; - } + public Builder clearWebsiteUri() { + websiteUri_ = getDefaultInstance().getWebsiteUri(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; } /** * * *
-     * Plus code of the place location lat/long.
+     * The authoritative website for this place, e.g. a business' homepage.
+     * Note that for places that are part of a chain (e.g. an IKEA store), this
+     * will usually be the website for the individual store, not the overall
+     * chain.
      * 
* - * .google.maps.places.v1.Place.PlusCode plus_code = 11; + * string website_uri = 16; + * + * @param value The bytes for websiteUri to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PlusCode, - com.google.maps.places.v1.Place.PlusCode.Builder, - com.google.maps.places.v1.Place.PlusCodeOrBuilder> - getPlusCodeFieldBuilder() { - if (plusCodeBuilder_ == null) { - plusCodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PlusCode, - com.google.maps.places.v1.Place.PlusCode.Builder, - com.google.maps.places.v1.Place.PlusCodeOrBuilder>( - getPlusCode(), getParentForChildren(), isClean()); - plusCode_ = null; + public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return plusCodeBuilder_; + checkByteStringIsUtf8(value); + websiteUri_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; } - private com.google.type.LatLng location_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - locationBuilder_; + private java.util.List reviews_ = + java.util.Collections.emptyList(); + + private void ensureReviewsIsMutable() { + if (!((bitField0_ & 0x00040000) != 0)) { + reviews_ = new java.util.ArrayList(reviews_); + bitField0_ |= 0x00040000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + reviewsBuilder_; /** * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; - * - * @return Whether the location field is set. + * repeated .google.maps.places.v1.Review reviews = 53; */ - public boolean hasLocation() { - return ((bitField0_ & 0x00002000) != 0); + public java.util.List getReviewsList() { + if (reviewsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reviews_); + } else { + return reviewsBuilder_.getMessageList(); + } } /** * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; - * - * @return The location. + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.type.LatLng getLocation() { - if (locationBuilder_ == null) { - return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; + public int getReviewsCount() { + if (reviewsBuilder_ == null) { + return reviews_.size(); } else { - return locationBuilder_.getMessage(); + return reviewsBuilder_.getCount(); } } @@ -27063,42 +32193,41 @@ public com.google.type.LatLng getLocation() { * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder setLocation(com.google.type.LatLng value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - location_ = value; + public com.google.maps.places.v1.Review getReviews(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); } else { - locationBuilder_.setMessage(value); + return reviewsBuilder_.getMessage(index); } - bitField0_ |= 0x00002000; - onChanged(); - return this; } /** * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { - if (locationBuilder_ == null) { - location_ = builderForValue.build(); + public Builder setReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.set(index, value); + onChanged(); } else { - locationBuilder_.setMessage(builderForValue.build()); + reviewsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00002000; - onChanged(); return this; } @@ -27106,26 +32235,19 @@ public Builder setLocation(com.google.type.LatLng.Builder builderForValue) { * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder mergeLocation(com.google.type.LatLng value) { - if (locationBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && location_ != null - && location_ != com.google.type.LatLng.getDefaultInstance()) { - getLocationBuilder().mergeFrom(value); - } else { - location_ = value; - } - } else { - locationBuilder_.mergeFrom(value); - } - if (location_ != null) { - bitField0_ |= 0x00002000; + public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.set(index, builderForValue.build()); onChanged(); + } else { + reviewsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -27134,19 +32256,23 @@ public Builder mergeLocation(com.google.type.LatLng value) { * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder clearLocation() { - bitField0_ = (bitField0_ & ~0x00002000); - location_ = null; - if (locationBuilder_ != null) { - locationBuilder_.dispose(); - locationBuilder_ = null; + public Builder addReviews(com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(value); + onChanged(); + } else { + reviewsBuilder_.addMessage(value); } - onChanged(); return this; } @@ -27154,124 +32280,129 @@ public Builder clearLocation() { * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.type.LatLng.Builder getLocationBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getLocationFieldBuilder().getBuilder(); + public Builder addReviews(int index, com.google.maps.places.v1.Review value) { + if (reviewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReviewsIsMutable(); + reviews_.add(index, value); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.type.LatLngOrBuilder getLocationOrBuilder() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilder(); + public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(builderForValue.build()); + onChanged(); } else { - return location_ == null ? com.google.type.LatLng.getDefaultInstance() : location_; + reviewsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * The position of this place.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.type.LatLng location = 12; + * repeated .google.maps.places.v1.Review reviews = 53; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LatLng, - com.google.type.LatLng.Builder, - com.google.type.LatLngOrBuilder>(getLocation(), getParentForChildren(), isClean()); - location_ = null; + public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.add(index, builderForValue.build()); + onChanged(); + } else { + reviewsBuilder_.addMessage(index, builderForValue.build()); } - return locationBuilder_; + return this; } - private com.google.geo.type.Viewport viewport_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder> - viewportBuilder_; - /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; - * - * @return Whether the viewport field is set. + * repeated .google.maps.places.v1.Review reviews = 53; */ - public boolean hasViewport() { - return ((bitField0_ & 0x00004000) != 0); + public Builder addAllReviews( + java.lang.Iterable values) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviews_); + onChanged(); + } else { + reviewsBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; - * - * @return The viewport. + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.geo.type.Viewport getViewport() { - if (viewportBuilder_ == null) { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + public Builder clearReviews() { + if (reviewsBuilder_ == null) { + reviews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); } else { - return viewportBuilder_.getMessage(); + reviewsBuilder_.clear(); } + return this; } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder setViewport(com.google.geo.type.Viewport value) { - if (viewportBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - viewport_ = value; + public Builder removeReviews(int index) { + if (reviewsBuilder_ == null) { + ensureReviewsIsMutable(); + reviews_.remove(index); + onChanged(); } else { - viewportBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); + reviewsBuilder_.remove(index); + } return this; } @@ -27279,262 +32410,306 @@ public Builder setViewport(com.google.geo.type.Viewport value) { * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) { - if (viewportBuilder_ == null) { - viewport_ = builderForValue.build(); - } else { - viewportBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; + public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { + return getReviewsFieldBuilder().getBuilder(index); } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder mergeViewport(com.google.geo.type.Viewport value) { - if (viewportBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && viewport_ != null - && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { - getViewportBuilder().mergeFrom(value); - } else { - viewport_ = value; - } + public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { + if (reviewsBuilder_ == null) { + return reviews_.get(index); } else { - viewportBuilder_.mergeFrom(value); - } - if (viewport_ != null) { - bitField0_ |= 0x00004000; - onChanged(); + return reviewsBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public Builder clearViewport() { - bitField0_ = (bitField0_ & ~0x00004000); - viewport_ = null; - if (viewportBuilder_ != null) { - viewportBuilder_.dispose(); - viewportBuilder_ = null; + public java.util.List + getReviewsOrBuilderList() { + if (reviewsBuilder_ != null) { + return reviewsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reviews_); } - onChanged(); - return this; } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.geo.type.Viewport.Builder getViewportBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getViewportFieldBuilder().getBuilder(); + public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { + return getReviewsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Review.getDefaultInstance()); } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { - if (viewportBuilder_ != null) { - return viewportBuilder_.getMessageOrBuilder(); - } else { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } + public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { + return getReviewsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Review.getDefaultInstance()); } /** * * *
-     * A viewport suitable for displaying the place on an average-sized map. This
-     * viewport should not be used as the physical boundary or the service area of
-     * the business.
+     * List of reviews about this place, sorted by relevance. A maximum of 5
+     * reviews can be returned.
      * 
* - * .google.geo.type.Viewport viewport = 13; + * repeated .google.maps.places.v1.Review reviews = 53; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder> - getViewportFieldBuilder() { - if (viewportBuilder_ == null) { - viewportBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder>( - getViewport(), getParentForChildren(), isClean()); - viewport_ = null; + public java.util.List getReviewsBuilderList() { + return getReviewsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder> + getReviewsFieldBuilder() { + if (reviewsBuilder_ == null) { + reviewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Review, + com.google.maps.places.v1.Review.Builder, + com.google.maps.places.v1.ReviewOrBuilder>( + reviews_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); + reviews_ = null; } - return viewportBuilder_; + return reviewsBuilder_; } - private double rating_; + private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + regularOpeningHoursBuilder_; /** * * *
-     * A rating between 1.0 and 5.0, based on user reviews of this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * double rating = 14; + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; * - * @return The rating. + * @return Whether the regularOpeningHours field is set. */ - @java.lang.Override - public double getRating() { - return rating_; + public boolean hasRegularOpeningHours() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
-     * A rating between 1.0 and 5.0, based on user reviews of this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * double rating = 14; + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; * - * @param value The rating to set. - * @return This builder for chaining. + * @return The regularOpeningHours. */ - public Builder setRating(double value) { - - rating_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; + public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { + if (regularOpeningHoursBuilder_ == null) { + return regularOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : regularOpeningHours_; + } else { + return regularOpeningHoursBuilder_.getMessage(); + } } /** * * *
-     * A rating between 1.0 and 5.0, based on user reviews of this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * double rating = 14; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public Builder clearRating() { - bitField0_ = (bitField0_ & ~0x00008000); - rating_ = 0D; + public Builder setRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { + if (regularOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regularOpeningHours_ = value; + } else { + regularOpeningHoursBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; onChanged(); return this; } - private java.lang.Object googleMapsUri_ = ""; - /** * * *
-     * A URL providing more information about this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string google_maps_uri = 15; - * - * @return The googleMapsUri. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public java.lang.String getGoogleMapsUri() { - java.lang.Object ref = googleMapsUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - googleMapsUri_ = s; - return s; + public Builder setRegularOpeningHours( + com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (regularOpeningHoursBuilder_ == null) { + regularOpeningHours_ = builderForValue.build(); } else { - return (java.lang.String) ref; + regularOpeningHoursBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00080000; + onChanged(); + return this; } /** * * *
-     * A URL providing more information about this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string google_maps_uri = 15; - * - * @return The bytes for googleMapsUri. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public com.google.protobuf.ByteString getGoogleMapsUriBytes() { - java.lang.Object ref = googleMapsUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - googleMapsUri_ = b; - return b; + public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { + if (regularOpeningHoursBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && regularOpeningHours_ != null + && regularOpeningHours_ + != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { + getRegularOpeningHoursBuilder().mergeFrom(value); + } else { + regularOpeningHours_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + regularOpeningHoursBuilder_.mergeFrom(value); + } + if (regularOpeningHours_ != null) { + bitField0_ |= 0x00080000; + onChanged(); } + return this; } /** * * *
-     * A URL providing more information about this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string google_maps_uri = 15; - * - * @param value The googleMapsUri to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public Builder setGoogleMapsUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearRegularOpeningHours() { + bitField0_ = (bitField0_ & ~0x00080000); + regularOpeningHours_ = null; + if (regularOpeningHoursBuilder_ != null) { + regularOpeningHoursBuilder_.dispose(); + regularOpeningHoursBuilder_ = null; } - googleMapsUri_ = value; - bitField0_ |= 0x00010000; onChanged(); return this; } @@ -27543,139 +32718,148 @@ public Builder setGoogleMapsUri(java.lang.String value) { * * *
-     * A URL providing more information about this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string google_maps_uri = 15; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public Builder clearGoogleMapsUri() { - googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); - bitField0_ = (bitField0_ & ~0x00010000); + public com.google.maps.places.v1.Place.OpeningHours.Builder getRegularOpeningHoursBuilder() { + bitField0_ |= 0x00080000; onChanged(); - return this; + return getRegularOpeningHoursFieldBuilder().getBuilder(); } /** * * *
-     * A URL providing more information about this place.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string google_maps_uri = 15; - * - * @param value The bytes for googleMapsUri to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { + if (regularOpeningHoursBuilder_ != null) { + return regularOpeningHoursBuilder_.getMessageOrBuilder(); + } else { + return regularOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : regularOpeningHours_; } - checkByteStringIsUtf8(value); - googleMapsUri_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; } - private java.lang.Object websiteUri_ = ""; - /** * * *
-     * The authoritative website for this place, e.g. a business' homepage.
-     * Note that for places that are part of a chain (e.g. an IKEA store), this
-     * will usually be the website for the individual store, not the overall
-     * chain.
+     * The regular hours of operation. Note that if a place is always open (24
+     * hours), the `close` field will not be set. Clients can rely on always open
+     * (24 hours) being represented as an
+     * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period)
+     * period containing
+     * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`,
+     * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`, and
+     * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point)
+     * with value `0`.
      * 
* - * string website_uri = 16; - * - * @return The websiteUri. + * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; */ - public java.lang.String getWebsiteUri() { - java.lang.Object ref = websiteUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - websiteUri_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + getRegularOpeningHoursFieldBuilder() { + if (regularOpeningHoursBuilder_ == null) { + regularOpeningHoursBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( + getRegularOpeningHours(), getParentForChildren(), isClean()); + regularOpeningHours_ = null; } + return regularOpeningHoursBuilder_; } + private int utcOffsetMinutes_; + /** * * *
-     * The authoritative website for this place, e.g. a business' homepage.
-     * Note that for places that are part of a chain (e.g. an IKEA store), this
-     * will usually be the website for the individual store, not the overall
-     * chain.
+     * Number of minutes this place's timezone is currently offset from UTC.
+     * This is expressed in minutes to support timezones that are offset by
+     * fractions of an hour, e.g. X hours and 15 minutes.
      * 
* - * string website_uri = 16; + * optional int32 utc_offset_minutes = 22; * - * @return The bytes for websiteUri. + * @return Whether the utcOffsetMinutes field is set. */ - public com.google.protobuf.ByteString getWebsiteUriBytes() { - java.lang.Object ref = websiteUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - websiteUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean hasUtcOffsetMinutes() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
-     * The authoritative website for this place, e.g. a business' homepage.
-     * Note that for places that are part of a chain (e.g. an IKEA store), this
-     * will usually be the website for the individual store, not the overall
-     * chain.
+     * Number of minutes this place's timezone is currently offset from UTC.
+     * This is expressed in minutes to support timezones that are offset by
+     * fractions of an hour, e.g. X hours and 15 minutes.
      * 
* - * string website_uri = 16; + * optional int32 utc_offset_minutes = 22; * - * @param value The websiteUri to set. - * @return This builder for chaining. + * @return The utcOffsetMinutes. */ - public Builder setWebsiteUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - websiteUri_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; + @java.lang.Override + public int getUtcOffsetMinutes() { + return utcOffsetMinutes_; } /** * * *
-     * The authoritative website for this place, e.g. a business' homepage.
-     * Note that for places that are part of a chain (e.g. an IKEA store), this
-     * will usually be the website for the individual store, not the overall
-     * chain.
+     * Number of minutes this place's timezone is currently offset from UTC.
+     * This is expressed in minutes to support timezones that are offset by
+     * fractions of an hour, e.g. X hours and 15 minutes.
      * 
* - * string website_uri = 16; + * optional int32 utc_offset_minutes = 22; * + * @param value The utcOffsetMinutes to set. * @return This builder for chaining. */ - public Builder clearWebsiteUri() { - websiteUri_ = getDefaultInstance().getWebsiteUri(); - bitField0_ = (bitField0_ & ~0x00020000); + public Builder setUtcOffsetMinutes(int value) { + + utcOffsetMinutes_ = value; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -27684,164 +32868,83 @@ public Builder clearWebsiteUri() { * * *
-     * The authoritative website for this place, e.g. a business' homepage.
-     * Note that for places that are part of a chain (e.g. an IKEA store), this
-     * will usually be the website for the individual store, not the overall
-     * chain.
+     * Number of minutes this place's timezone is currently offset from UTC.
+     * This is expressed in minutes to support timezones that are offset by
+     * fractions of an hour, e.g. X hours and 15 minutes.
      * 
* - * string website_uri = 16; + * optional int32 utc_offset_minutes = 22; * - * @param value The bytes for websiteUri to set. * @return This builder for chaining. */ - public Builder setWebsiteUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - websiteUri_ = value; - bitField0_ |= 0x00020000; + public Builder clearUtcOffsetMinutes() { + bitField0_ = (bitField0_ & ~0x00100000); + utcOffsetMinutes_ = 0; onChanged(); return this; } - private java.util.List reviews_ = - java.util.Collections.emptyList(); - - private void ensureReviewsIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { - reviews_ = new java.util.ArrayList(reviews_); - bitField0_ |= 0x00040000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Review, - com.google.maps.places.v1.Review.Builder, - com.google.maps.places.v1.ReviewOrBuilder> - reviewsBuilder_; - - /** - * - * - *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
-     * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - public java.util.List getReviewsList() { - if (reviewsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reviews_); - } else { - return reviewsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
-     * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - public int getReviewsCount() { - if (reviewsBuilder_ == null) { - return reviews_.size(); - } else { - return reviewsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
-     * 
- * - * repeated .google.maps.places.v1.Review reviews = 53; - */ - public com.google.maps.places.v1.Review getReviews(int index) { - if (reviewsBuilder_ == null) { - return reviews_.get(index); - } else { - return reviewsBuilder_.getMessage(index); - } - } + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; + * + * @return Whether the timeZone field is set. */ - public Builder setReviews(int index, com.google.maps.places.v1.Review value) { - if (reviewsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReviewsIsMutable(); - reviews_.set(index, value); - onChanged(); - } else { - reviewsBuilder_.setMessage(index, value); - } - return this; + public boolean hasTimeZone() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; + * + * @return The timeZone. */ - public Builder setReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { - if (reviewsBuilder_ == null) { - ensureReviewsIsMutable(); - reviews_.set(index, builderForValue.build()); - onChanged(); + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } else { - reviewsBuilder_.setMessage(index, builderForValue.build()); + return timeZoneBuilder_.getMessage(); } - return this; } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder addReviews(com.google.maps.places.v1.Review value) { - if (reviewsBuilder_ == null) { + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureReviewsIsMutable(); - reviews_.add(value); - onChanged(); + timeZone_ = value; } else { - reviewsBuilder_.addMessage(value); + timeZoneBuilder_.setMessage(value); } + bitField0_ |= 0x00200000; + onChanged(); return this; } @@ -27849,23 +32952,19 @@ public Builder addReviews(com.google.maps.places.v1.Review value) { * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder addReviews(int index, com.google.maps.places.v1.Review value) { - if (reviewsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReviewsIsMutable(); - reviews_.add(index, value); - onChanged(); + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); } else { - reviewsBuilder_.addMessage(index, value); + timeZoneBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00200000; + onChanged(); return this; } @@ -27873,19 +32972,26 @@ public Builder addReviews(int index, com.google.maps.places.v1.Review value) { * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForValue) { - if (reviewsBuilder_ == null) { - ensureReviewsIsMutable(); - reviews_.add(builderForValue.build()); - onChanged(); + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } } else { - reviewsBuilder_.addMessage(builderForValue.build()); + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00200000; + onChanged(); } return this; } @@ -27894,20 +33000,19 @@ public Builder addReviews(com.google.maps.places.v1.Review.Builder builderForVal * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder builderForValue) { - if (reviewsBuilder_ == null) { - ensureReviewsIsMutable(); - reviews_.add(index, builderForValue.build()); - onChanged(); - } else { - reviewsBuilder_.addMessage(index, builderForValue.build()); + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00200000); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; } + onChanged(); return this; } @@ -27915,95 +33020,109 @@ public Builder addReviews(int index, com.google.maps.places.v1.Review.Builder bu * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder addAllReviews( - java.lang.Iterable values) { - if (reviewsBuilder_ == null) { - ensureReviewsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reviews_); - onChanged(); - } else { - reviewsBuilder_.addAllMessages(values); - } - return this; + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder clearReviews() { - if (reviewsBuilder_ == null) { - reviews_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); } else { - reviewsBuilder_.clear(); + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } - return this; } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * IANA Time Zone Database time zone. For example "America/New_York".
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * .google.type.TimeZone time_zone = 88; */ - public Builder removeReviews(int index) { - if (reviewsBuilder_ == null) { - ensureReviewsIsMutable(); - reviews_.remove(index); - onChanged(); - } else { - reviewsBuilder_.remove(index); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private java.util.List photos_ = + java.util.Collections.emptyList(); + + private void ensurePhotosIsMutable() { + if (!((bitField0_ & 0x00400000) != 0)) { + photos_ = new java.util.ArrayList(photos_); + bitField0_ |= 0x00400000; } - return this; } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder> + photosBuilder_; + /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Review.Builder getReviewsBuilder(int index) { - return getReviewsFieldBuilder().getBuilder(index); + public java.util.List getPhotosList() { + if (photosBuilder_ == null) { + return java.util.Collections.unmodifiableList(photos_); + } else { + return photosBuilder_.getMessageList(); + } } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) { - if (reviewsBuilder_ == null) { - return reviews_.get(index); + public int getPhotosCount() { + if (photosBuilder_ == null) { + return photos_.size(); } else { - return reviewsBuilder_.getMessageOrBuilder(index); + return photosBuilder_.getCount(); } } @@ -28011,18 +33130,17 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public java.util.List - getReviewsOrBuilderList() { - if (reviewsBuilder_ != null) { - return reviewsBuilder_.getMessageOrBuilderList(); + public com.google.maps.places.v1.Photo getPhotos(int index) { + if (photosBuilder_ == null) { + return photos_.get(index); } else { - return java.util.Collections.unmodifiableList(reviews_); + return photosBuilder_.getMessage(index); } } @@ -28030,141 +33148,134 @@ public com.google.maps.places.v1.ReviewOrBuilder getReviewsOrBuilder(int index) * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Review.Builder addReviewsBuilder() { - return getReviewsFieldBuilder() - .addBuilder(com.google.maps.places.v1.Review.getDefaultInstance()); + public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.set(index, value); + onChanged(); + } else { + photosBuilder_.setMessage(index, value); + } + return this; } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Review.Builder addReviewsBuilder(int index) { - return getReviewsFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Review.getDefaultInstance()); + public Builder setPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.set(index, builderForValue.build()); + onChanged(); + } else { + photosBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
-     * List of reviews about this place, sorted by relevance. A maximum of 5
-     * reviews can be returned.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * repeated .google.maps.places.v1.Review reviews = 53; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public java.util.List getReviewsBuilderList() { - return getReviewsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Review, - com.google.maps.places.v1.Review.Builder, - com.google.maps.places.v1.ReviewOrBuilder> - getReviewsFieldBuilder() { - if (reviewsBuilder_ == null) { - reviewsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Review, - com.google.maps.places.v1.Review.Builder, - com.google.maps.places.v1.ReviewOrBuilder>( - reviews_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); - reviews_ = null; + public Builder addPhotos(com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.add(value); + onChanged(); + } else { + photosBuilder_.addMessage(value); } - return reviewsBuilder_; + return this; } - private com.google.maps.places.v1.Place.OpeningHours regularOpeningHours_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - regularOpeningHoursBuilder_; - /** * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; - * - * @return Whether the regularOpeningHours field is set. + * repeated .google.maps.places.v1.Photo photos = 54; */ - public boolean hasRegularOpeningHours() { - return ((bitField0_ & 0x00080000) != 0); + public Builder addPhotos(int index, com.google.maps.places.v1.Photo value) { + if (photosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhotosIsMutable(); + photos_.add(index, value); + onChanged(); + } else { + photosBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; - * - * @return The regularOpeningHours. + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Place.OpeningHours getRegularOpeningHours() { - if (regularOpeningHoursBuilder_ == null) { - return regularOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : regularOpeningHours_; + public Builder addPhotos(com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.add(builderForValue.build()); + onChanged(); } else { - return regularOpeningHoursBuilder_.getMessage(); + photosBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public Builder setRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { - if (regularOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - regularOpeningHours_ = value; + public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.add(index, builderForValue.build()); + onChanged(); } else { - regularOpeningHoursBuilder_.setMessage(value); + photosBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00080000; - onChanged(); return this; } @@ -28172,25 +33283,21 @@ public Builder setRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHou * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public Builder setRegularOpeningHours( - com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (regularOpeningHoursBuilder_ == null) { - regularOpeningHours_ = builderForValue.build(); + public Builder addAllPhotos( + java.lang.Iterable values) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, photos_); + onChanged(); } else { - regularOpeningHoursBuilder_.setMessage(builderForValue.build()); + photosBuilder_.addAllMessages(values); } - bitField0_ |= 0x00080000; - onChanged(); return this; } @@ -28198,32 +33305,19 @@ public Builder setRegularOpeningHours( * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { - if (regularOpeningHoursBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && regularOpeningHours_ != null - && regularOpeningHours_ - != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { - getRegularOpeningHoursBuilder().mergeFrom(value); - } else { - regularOpeningHours_ = value; - } - } else { - regularOpeningHoursBuilder_.mergeFrom(value); - } - if (regularOpeningHours_ != null) { - bitField0_ |= 0x00080000; + public Builder clearPhotos() { + if (photosBuilder_ == null) { + photos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); + } else { + photosBuilder_.clear(); } return this; } @@ -28232,24 +33326,20 @@ public Builder mergeRegularOpeningHours(com.google.maps.places.v1.Place.OpeningH * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public Builder clearRegularOpeningHours() { - bitField0_ = (bitField0_ & ~0x00080000); - regularOpeningHours_ = null; - if (regularOpeningHoursBuilder_ != null) { - regularOpeningHoursBuilder_.dispose(); - regularOpeningHoursBuilder_ = null; + public Builder removePhotos(int index) { + if (photosBuilder_ == null) { + ensurePhotosIsMutable(); + photos_.remove(index); + onChanged(); + } else { + photosBuilder_.remove(index); } - onChanged(); return this; } @@ -28257,43 +33347,31 @@ public Builder clearRegularOpeningHours() { * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Place.OpeningHours.Builder getRegularOpeningHoursBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getRegularOpeningHoursFieldBuilder().getBuilder(); + public com.google.maps.places.v1.Photo.Builder getPhotosBuilder(int index) { + return getPhotosFieldBuilder().getBuilder(index); } /** * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHoursOrBuilder() { - if (regularOpeningHoursBuilder_ != null) { - return regularOpeningHoursBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { + if (photosBuilder_ == null) { + return photos_.get(index); } else { - return regularOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : regularOpeningHours_; + return photosBuilder_.getMessageOrBuilder(index); } } @@ -28301,173 +33379,166 @@ public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularOpeningHo * * *
-     * The regular hours of operation. Note that if a place is always open (24
-     * hours), the `close` field will not be set. Clients can rely on always open
-     * (24 hours) being represented as an
-     * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
-     * containing [day][Point.day] with value `0`, [hour][Point.hour] with
-     * value `0`, and [minute][Point.minute] with value `0`.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; + * repeated .google.maps.places.v1.Photo photos = 54; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - getRegularOpeningHoursFieldBuilder() { - if (regularOpeningHoursBuilder_ == null) { - regularOpeningHoursBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( - getRegularOpeningHours(), getParentForChildren(), isClean()); - regularOpeningHours_ = null; + public java.util.List + getPhotosOrBuilderList() { + if (photosBuilder_ != null) { + return photosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(photos_); } - return regularOpeningHoursBuilder_; } - private int utcOffsetMinutes_; - /** * * *
-     * Number of minutes this place's timezone is currently offset from UTC.
-     * This is expressed in minutes to support timezones that are offset by
-     * fractions of an hour, e.g. X hours and 15 minutes.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * optional int32 utc_offset_minutes = 22; - * - * @return Whether the utcOffsetMinutes field is set. + * repeated .google.maps.places.v1.Photo photos = 54; */ - @java.lang.Override - public boolean hasUtcOffsetMinutes() { - return ((bitField0_ & 0x00100000) != 0); + public com.google.maps.places.v1.Photo.Builder addPhotosBuilder() { + return getPhotosFieldBuilder() + .addBuilder(com.google.maps.places.v1.Photo.getDefaultInstance()); } /** * * *
-     * Number of minutes this place's timezone is currently offset from UTC.
-     * This is expressed in minutes to support timezones that are offset by
-     * fractions of an hour, e.g. X hours and 15 minutes.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * optional int32 utc_offset_minutes = 22; - * - * @return The utcOffsetMinutes. + * repeated .google.maps.places.v1.Photo photos = 54; */ - @java.lang.Override - public int getUtcOffsetMinutes() { - return utcOffsetMinutes_; + public com.google.maps.places.v1.Photo.Builder addPhotosBuilder(int index) { + return getPhotosFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Photo.getDefaultInstance()); } /** * * *
-     * Number of minutes this place's timezone is currently offset from UTC.
-     * This is expressed in minutes to support timezones that are offset by
-     * fractions of an hour, e.g. X hours and 15 minutes.
+     * Information (including references) about photos of this place. A maximum of
+     * 10 photos can be returned.
      * 
* - * optional int32 utc_offset_minutes = 22; - * - * @param value The utcOffsetMinutes to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Photo photos = 54; */ - public Builder setUtcOffsetMinutes(int value) { + public java.util.List getPhotosBuilderList() { + return getPhotosFieldBuilder().getBuilderList(); + } - utcOffsetMinutes_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder> + getPhotosFieldBuilder() { + if (photosBuilder_ == null) { + photosBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Photo, + com.google.maps.places.v1.Photo.Builder, + com.google.maps.places.v1.PhotoOrBuilder>( + photos_, ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); + photos_ = null; + } + return photosBuilder_; } + private java.lang.Object adrFormatAddress_ = ""; + /** * * *
-     * Number of minutes this place's timezone is currently offset from UTC.
-     * This is expressed in minutes to support timezones that are offset by
-     * fractions of an hour, e.g. X hours and 15 minutes.
+     * The place's address in adr microformat: http://microformats.org/wiki/adr.
      * 
* - * optional int32 utc_offset_minutes = 22; + * string adr_format_address = 24; * - * @return This builder for chaining. + * @return The adrFormatAddress. */ - public Builder clearUtcOffsetMinutes() { - bitField0_ = (bitField0_ & ~0x00100000); - utcOffsetMinutes_ = 0; - onChanged(); - return this; + public java.lang.String getAdrFormatAddress() { + java.lang.Object ref = adrFormatAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adrFormatAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - private com.google.type.TimeZone timeZone_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeZone, - com.google.type.TimeZone.Builder, - com.google.type.TimeZoneOrBuilder> - timeZoneBuilder_; - /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The place's address in adr microformat: http://microformats.org/wiki/adr.
      * 
* - * .google.type.TimeZone time_zone = 88; + * string adr_format_address = 24; * - * @return Whether the timeZone field is set. + * @return The bytes for adrFormatAddress. */ - public boolean hasTimeZone() { - return ((bitField0_ & 0x00200000) != 0); + public com.google.protobuf.ByteString getAdrFormatAddressBytes() { + java.lang.Object ref = adrFormatAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adrFormatAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The place's address in adr microformat: http://microformats.org/wiki/adr.
      * 
* - * .google.type.TimeZone time_zone = 88; + * string adr_format_address = 24; * - * @return The timeZone. + * @param value The adrFormatAddress to set. + * @return This builder for chaining. */ - public com.google.type.TimeZone getTimeZone() { - if (timeZoneBuilder_ == null) { - return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; - } else { - return timeZoneBuilder_.getMessage(); + public Builder setAdrFormatAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + adrFormatAddress_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The place's address in adr microformat: http://microformats.org/wiki/adr.
      * 
* - * .google.type.TimeZone time_zone = 88; + * string adr_format_address = 24; + * + * @return This builder for chaining. */ - public Builder setTimeZone(com.google.type.TimeZone value) { - if (timeZoneBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeZone_ = value; - } else { - timeZoneBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; + public Builder clearAdrFormatAddress() { + adrFormatAddress_ = getDefaultInstance().getAdrFormatAddress(); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -28476,66 +33547,58 @@ public Builder setTimeZone(com.google.type.TimeZone value) { * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The place's address in adr microformat: http://microformats.org/wiki/adr.
      * 
* - * .google.type.TimeZone time_zone = 88; + * string adr_format_address = 24; + * + * @param value The bytes for adrFormatAddress to set. + * @return This builder for chaining. */ - public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { - if (timeZoneBuilder_ == null) { - timeZone_ = builderForValue.build(); - } else { - timeZoneBuilder_.setMessage(builderForValue.build()); + public Builder setAdrFormatAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00200000; + checkByteStringIsUtf8(value); + adrFormatAddress_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } + private int businessStatus_ = 0; + /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The business status for the place.
      * 
* - * .google.type.TimeZone time_zone = 88; + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @return The enum numeric value on the wire for businessStatus. */ - public Builder mergeTimeZone(com.google.type.TimeZone value) { - if (timeZoneBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && timeZone_ != null - && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { - getTimeZoneBuilder().mergeFrom(value); - } else { - timeZone_ = value; - } - } else { - timeZoneBuilder_.mergeFrom(value); - } - if (timeZone_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; + @java.lang.Override + public int getBusinessStatusValue() { + return businessStatus_; } /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The business status for the place.
      * 
* - * .google.type.TimeZone time_zone = 88; + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @param value The enum numeric value on the wire for businessStatus to set. + * @return This builder for chaining. */ - public Builder clearTimeZone() { - bitField0_ = (bitField0_ & ~0x00200000); - timeZone_ = null; - if (timeZoneBuilder_ != null) { - timeZoneBuilder_.dispose(); - timeZoneBuilder_ = null; - } + public Builder setBusinessStatusValue(int value) { + businessStatus_ = value; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -28544,151 +33607,134 @@ public Builder clearTimeZone() { * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The business status for the place.
      * 
* - * .google.type.TimeZone time_zone = 88; + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @return The businessStatus. */ - public com.google.type.TimeZone.Builder getTimeZoneBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getTimeZoneFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { + com.google.maps.places.v1.Place.BusinessStatus result = + com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); + return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; } /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The business status for the place.
      * 
* - * .google.type.TimeZone time_zone = 88; + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @param value The businessStatus to set. + * @return This builder for chaining. */ - public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { - if (timeZoneBuilder_ != null) { - return timeZoneBuilder_.getMessageOrBuilder(); - } else { - return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x01000000; + businessStatus_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * IANA Time Zone Database time zone. For example "America/New_York".
+     * The business status for the place.
      * 
* - * .google.type.TimeZone time_zone = 88; + * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeZone, - com.google.type.TimeZone.Builder, - com.google.type.TimeZoneOrBuilder> - getTimeZoneFieldBuilder() { - if (timeZoneBuilder_ == null) { - timeZoneBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.TimeZone, - com.google.type.TimeZone.Builder, - com.google.type.TimeZoneOrBuilder>( - getTimeZone(), getParentForChildren(), isClean()); - timeZone_ = null; - } - return timeZoneBuilder_; - } - - private java.util.List photos_ = - java.util.Collections.emptyList(); - - private void ensurePhotosIsMutable() { - if (!((bitField0_ & 0x00400000) != 0)) { - photos_ = new java.util.ArrayList(photos_); - bitField0_ |= 0x00400000; - } + public Builder clearBusinessStatus() { + bitField0_ = (bitField0_ & ~0x01000000); + businessStatus_ = 0; + onChanged(); + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Photo, - com.google.maps.places.v1.Photo.Builder, - com.google.maps.places.v1.PhotoOrBuilder> - photosBuilder_; + private int priceLevel_ = 0; /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * Price level of the place.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @return The enum numeric value on the wire for priceLevel. */ - public java.util.List getPhotosList() { - if (photosBuilder_ == null) { - return java.util.Collections.unmodifiableList(photos_); - } else { - return photosBuilder_.getMessageList(); - } + @java.lang.Override + public int getPriceLevelValue() { + return priceLevel_; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * Price level of the place.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @param value The enum numeric value on the wire for priceLevel to set. + * @return This builder for chaining. */ - public int getPhotosCount() { - if (photosBuilder_ == null) { - return photos_.size(); - } else { - return photosBuilder_.getCount(); - } + public Builder setPriceLevelValue(int value) { + priceLevel_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * Price level of the place.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @return The priceLevel. */ - public com.google.maps.places.v1.Photo getPhotos(int index) { - if (photosBuilder_ == null) { - return photos_.get(index); - } else { - return photosBuilder_.getMessage(index); - } + @java.lang.Override + public com.google.maps.places.v1.PriceLevel getPriceLevel() { + com.google.maps.places.v1.PriceLevel result = + com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); + return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * Price level of the place.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @param value The priceLevel to set. + * @return This builder for chaining. */ - public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { - if (photosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhotosIsMutable(); - photos_.set(index, value); - onChanged(); - } else { - photosBuilder_.setMessage(index, value); + public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x02000000; + priceLevel_ = value.getNumber(); + onChanged(); return this; } @@ -28696,109 +33742,107 @@ public Builder setPhotos(int index, com.google.maps.places.v1.Photo value) { * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * Price level of the place.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * .google.maps.places.v1.PriceLevel price_level = 26; + * + * @return This builder for chaining. */ - public Builder setPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { - if (photosBuilder_ == null) { - ensurePhotosIsMutable(); - photos_.set(index, builderForValue.build()); - onChanged(); - } else { - photosBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearPriceLevel() { + bitField0_ = (bitField0_ & ~0x02000000); + priceLevel_ = 0; + onChanged(); return this; } + private java.util.List attributions_ = + java.util.Collections.emptyList(); + + private void ensureAttributionsIsMutable() { + if (!((bitField0_ & 0x04000000) != 0)) { + attributions_ = + new java.util.ArrayList(attributions_); + bitField0_ |= 0x04000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.Attribution, + com.google.maps.places.v1.Place.Attribution.Builder, + com.google.maps.places.v1.Place.AttributionOrBuilder> + attributionsBuilder_; + /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder addPhotos(com.google.maps.places.v1.Photo value) { - if (photosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhotosIsMutable(); - photos_.add(value); - onChanged(); + public java.util.List getAttributionsList() { + if (attributionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attributions_); } else { - photosBuilder_.addMessage(value); + return attributionsBuilder_.getMessageList(); } - return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder addPhotos(int index, com.google.maps.places.v1.Photo value) { - if (photosBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhotosIsMutable(); - photos_.add(index, value); - onChanged(); + public int getAttributionsCount() { + if (attributionsBuilder_ == null) { + return attributions_.size(); } else { - photosBuilder_.addMessage(index, value); + return attributionsBuilder_.getCount(); } - return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder addPhotos(com.google.maps.places.v1.Photo.Builder builderForValue) { - if (photosBuilder_ == null) { - ensurePhotosIsMutable(); - photos_.add(builderForValue.build()); - onChanged(); + public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { + if (attributionsBuilder_ == null) { + return attributions_.get(index); } else { - photosBuilder_.addMessage(builderForValue.build()); + return attributionsBuilder_.getMessage(index); } - return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder builderForValue) { - if (photosBuilder_ == null) { - ensurePhotosIsMutable(); - photos_.add(index, builderForValue.build()); + public Builder setAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { + if (attributionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributionsIsMutable(); + attributions_.set(index, value); onChanged(); } else { - photosBuilder_.addMessage(index, builderForValue.build()); + attributionsBuilder_.setMessage(index, value); } return this; } @@ -28807,20 +33851,19 @@ public Builder addPhotos(int index, com.google.maps.places.v1.Photo.Builder buil * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder addAllPhotos( - java.lang.Iterable values) { - if (photosBuilder_ == null) { - ensurePhotosIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, photos_); + public Builder setAttributions( + int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { + if (attributionsBuilder_ == null) { + ensureAttributionsIsMutable(); + attributions_.set(index, builderForValue.build()); onChanged(); } else { - photosBuilder_.addAllMessages(values); + attributionsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -28829,19 +33872,21 @@ public Builder addAllPhotos( * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder clearPhotos() { - if (photosBuilder_ == null) { - photos_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); + public Builder addAttributions(com.google.maps.places.v1.Place.Attribution value) { + if (attributionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributionsIsMutable(); + attributions_.add(value); onChanged(); } else { - photosBuilder_.clear(); + attributionsBuilder_.addMessage(value); } return this; } @@ -28850,19 +33895,21 @@ public Builder clearPhotos() { * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder removePhotos(int index) { - if (photosBuilder_ == null) { - ensurePhotosIsMutable(); - photos_.remove(index); + public Builder addAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { + if (attributionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributionsIsMutable(); + attributions_.add(index, value); onChanged(); } else { - photosBuilder_.remove(index); + attributionsBuilder_.addMessage(index, value); } return this; } @@ -28871,136 +33918,133 @@ public Builder removePhotos(int index) { * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public com.google.maps.places.v1.Photo.Builder getPhotosBuilder(int index) { - return getPhotosFieldBuilder().getBuilder(index); + public Builder addAttributions( + com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { + if (attributionsBuilder_ == null) { + ensureAttributionsIsMutable(); + attributions_.add(builderForValue.build()); + onChanged(); + } else { + attributionsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public com.google.maps.places.v1.PhotoOrBuilder getPhotosOrBuilder(int index) { - if (photosBuilder_ == null) { - return photos_.get(index); + public Builder addAttributions( + int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { + if (attributionsBuilder_ == null) { + ensureAttributionsIsMutable(); + attributions_.add(index, builderForValue.build()); + onChanged(); } else { - return photosBuilder_.getMessageOrBuilder(index); + attributionsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public java.util.List - getPhotosOrBuilderList() { - if (photosBuilder_ != null) { - return photosBuilder_.getMessageOrBuilderList(); + public Builder addAllAttributions( + java.lang.Iterable values) { + if (attributionsBuilder_ == null) { + ensureAttributionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributions_); + onChanged(); } else { - return java.util.Collections.unmodifiableList(photos_); + attributionsBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public com.google.maps.places.v1.Photo.Builder addPhotosBuilder() { - return getPhotosFieldBuilder() - .addBuilder(com.google.maps.places.v1.Photo.getDefaultInstance()); + public Builder clearAttributions() { + if (attributionsBuilder_ == null) { + attributions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + } else { + attributionsBuilder_.clear(); + } + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public com.google.maps.places.v1.Photo.Builder addPhotosBuilder(int index) { - return getPhotosFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Photo.getDefaultInstance()); + public Builder removeAttributions(int index) { + if (attributionsBuilder_ == null) { + ensureAttributionsIsMutable(); + attributions_.remove(index); + onChanged(); + } else { + attributionsBuilder_.remove(index); + } + return this; } /** * * *
-     * Information (including references) about photos of this place. A maximum of
-     * 10 photos can be returned.
+     * A set of data provider that must be shown with this result.
      * 
* - * repeated .google.maps.places.v1.Photo photos = 54; + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public java.util.List getPhotosBuilderList() { - return getPhotosFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Photo, - com.google.maps.places.v1.Photo.Builder, - com.google.maps.places.v1.PhotoOrBuilder> - getPhotosFieldBuilder() { - if (photosBuilder_ == null) { - photosBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Photo, - com.google.maps.places.v1.Photo.Builder, - com.google.maps.places.v1.PhotoOrBuilder>( - photos_, ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); - photos_ = null; - } - return photosBuilder_; + public com.google.maps.places.v1.Place.Attribution.Builder getAttributionsBuilder(int index) { + return getAttributionsFieldBuilder().getBuilder(index); } - private java.lang.Object adrFormatAddress_ = ""; - /** * * *
-     * The place's address in adr microformat: http://microformats.org/wiki/adr.
+     * A set of data provider that must be shown with this result.
      * 
* - * string adr_format_address = 24; - * - * @return The adrFormatAddress. + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public java.lang.String getAdrFormatAddress() { - java.lang.Object ref = adrFormatAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - adrFormatAddress_ = s; - return s; + public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder( + int index) { + if (attributionsBuilder_ == null) { + return attributions_.get(index); } else { - return (java.lang.String) ref; + return attributionsBuilder_.getMessageOrBuilder(index); } } @@ -29008,22 +34052,17 @@ public java.lang.String getAdrFormatAddress() { * * *
-     * The place's address in adr microformat: http://microformats.org/wiki/adr.
+     * A set of data provider that must be shown with this result.
      * 
* - * string adr_format_address = 24; - * - * @return The bytes for adrFormatAddress. + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public com.google.protobuf.ByteString getAdrFormatAddressBytes() { - java.lang.Object ref = adrFormatAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - adrFormatAddress_ = b; - return b; + public java.util.List + getAttributionsOrBuilderList() { + if (attributionsBuilder_ != null) { + return attributionsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(attributions_); } } @@ -29031,138 +34070,111 @@ public com.google.protobuf.ByteString getAdrFormatAddressBytes() { * * *
-     * The place's address in adr microformat: http://microformats.org/wiki/adr.
+     * A set of data provider that must be shown with this result.
      * 
* - * string adr_format_address = 24; - * - * @param value The adrFormatAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder setAdrFormatAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - adrFormatAddress_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; + public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder() { + return getAttributionsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); } /** * * *
-     * The place's address in adr microformat: http://microformats.org/wiki/adr.
+     * A set of data provider that must be shown with this result.
      * 
* - * string adr_format_address = 24; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder clearAdrFormatAddress() { - adrFormatAddress_ = getDefaultInstance().getAdrFormatAddress(); - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); - return this; + public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder(int index) { + return getAttributionsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); } /** * * *
-     * The place's address in adr microformat: http://microformats.org/wiki/adr.
+     * A set of data provider that must be shown with this result.
      * 
* - * string adr_format_address = 24; - * - * @param value The bytes for adrFormatAddress to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.Attribution attributions = 27; */ - public Builder setAdrFormatAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - adrFormatAddress_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; + public java.util.List + getAttributionsBuilderList() { + return getAttributionsFieldBuilder().getBuilderList(); } - private int businessStatus_ = 0; - - /** - * - * - *
-     * The business status for the place.
-     * 
- * - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; - * - * @return The enum numeric value on the wire for businessStatus. - */ - @java.lang.Override - public int getBusinessStatusValue() { - return businessStatus_; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.Attribution, + com.google.maps.places.v1.Place.Attribution.Builder, + com.google.maps.places.v1.Place.AttributionOrBuilder> + getAttributionsFieldBuilder() { + if (attributionsBuilder_ == null) { + attributionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.Attribution, + com.google.maps.places.v1.Place.Attribution.Builder, + com.google.maps.places.v1.Place.AttributionOrBuilder>( + attributions_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + attributions_ = null; + } + return attributionsBuilder_; } + private int userRatingCount_; + /** * * *
-     * The business status for the place.
+     * The total number of reviews (with or without text) for this place.
      * 
* - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * optional int32 user_rating_count = 28; * - * @param value The enum numeric value on the wire for businessStatus to set. - * @return This builder for chaining. + * @return Whether the userRatingCount field is set. */ - public Builder setBusinessStatusValue(int value) { - businessStatus_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; + @java.lang.Override + public boolean hasUserRatingCount() { + return ((bitField0_ & 0x08000000) != 0); } /** * * *
-     * The business status for the place.
+     * The total number of reviews (with or without text) for this place.
      * 
* - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * optional int32 user_rating_count = 28; * - * @return The businessStatus. + * @return The userRatingCount. */ @java.lang.Override - public com.google.maps.places.v1.Place.BusinessStatus getBusinessStatus() { - com.google.maps.places.v1.Place.BusinessStatus result = - com.google.maps.places.v1.Place.BusinessStatus.forNumber(businessStatus_); - return result == null ? com.google.maps.places.v1.Place.BusinessStatus.UNRECOGNIZED : result; + public int getUserRatingCount() { + return userRatingCount_; } /** * * *
-     * The business status for the place.
+     * The total number of reviews (with or without text) for this place.
      * 
* - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * optional int32 user_rating_count = 28; * - * @param value The businessStatus to set. + * @param value The userRatingCount to set. * @return This builder for chaining. */ - public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - businessStatus_ = value.getNumber(); + public Builder setUserRatingCount(int value) { + + userRatingCount_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -29171,93 +34183,89 @@ public Builder setBusinessStatus(com.google.maps.places.v1.Place.BusinessStatus * * *
-     * The business status for the place.
+     * The total number of reviews (with or without text) for this place.
      * 
* - * .google.maps.places.v1.Place.BusinessStatus business_status = 25; + * optional int32 user_rating_count = 28; * * @return This builder for chaining. */ - public Builder clearBusinessStatus() { - bitField0_ = (bitField0_ & ~0x01000000); - businessStatus_ = 0; + public Builder clearUserRatingCount() { + bitField0_ = (bitField0_ & ~0x08000000); + userRatingCount_ = 0; onChanged(); return this; } - private int priceLevel_ = 0; - - /** - * - * - *
-     * Price level of the place.
-     * 
- * - * .google.maps.places.v1.PriceLevel price_level = 26; - * - * @return The enum numeric value on the wire for priceLevel. - */ - @java.lang.Override - public int getPriceLevelValue() { - return priceLevel_; - } + private java.lang.Object iconMaskBaseUri_ = ""; /** * * *
-     * Price level of the place.
+     * A truncated URL to an icon mask. User can access different icon type by
+     * appending type suffix to the end (eg, ".svg" or ".png").
      * 
* - * .google.maps.places.v1.PriceLevel price_level = 26; + * string icon_mask_base_uri = 29; * - * @param value The enum numeric value on the wire for priceLevel to set. - * @return This builder for chaining. + * @return The iconMaskBaseUri. */ - public Builder setPriceLevelValue(int value) { - priceLevel_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; + public java.lang.String getIconMaskBaseUri() { + java.lang.Object ref = iconMaskBaseUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconMaskBaseUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Price level of the place.
+     * A truncated URL to an icon mask. User can access different icon type by
+     * appending type suffix to the end (eg, ".svg" or ".png").
      * 
* - * .google.maps.places.v1.PriceLevel price_level = 26; + * string icon_mask_base_uri = 29; * - * @return The priceLevel. + * @return The bytes for iconMaskBaseUri. */ - @java.lang.Override - public com.google.maps.places.v1.PriceLevel getPriceLevel() { - com.google.maps.places.v1.PriceLevel result = - com.google.maps.places.v1.PriceLevel.forNumber(priceLevel_); - return result == null ? com.google.maps.places.v1.PriceLevel.UNRECOGNIZED : result; + public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { + java.lang.Object ref = iconMaskBaseUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconMaskBaseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Price level of the place.
+     * A truncated URL to an icon mask. User can access different icon type by
+     * appending type suffix to the end (eg, ".svg" or ".png").
      * 
* - * .google.maps.places.v1.PriceLevel price_level = 26; + * string icon_mask_base_uri = 29; * - * @param value The priceLevel to set. + * @param value The iconMaskBaseUri to set. * @return This builder for chaining. */ - public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { + public Builder setIconMaskBaseUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x02000000; - priceLevel_ = value.getNumber(); + iconMaskBaseUri_ = value; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -29266,85 +34274,67 @@ public Builder setPriceLevel(com.google.maps.places.v1.PriceLevel value) { * * *
-     * Price level of the place.
+     * A truncated URL to an icon mask. User can access different icon type by
+     * appending type suffix to the end (eg, ".svg" or ".png").
      * 
* - * .google.maps.places.v1.PriceLevel price_level = 26; + * string icon_mask_base_uri = 29; * * @return This builder for chaining. */ - public Builder clearPriceLevel() { - bitField0_ = (bitField0_ & ~0x02000000); - priceLevel_ = 0; + public Builder clearIconMaskBaseUri() { + iconMaskBaseUri_ = getDefaultInstance().getIconMaskBaseUri(); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } - private java.util.List attributions_ = - java.util.Collections.emptyList(); - - private void ensureAttributionsIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { - attributions_ = - new java.util.ArrayList(attributions_); - bitField0_ |= 0x04000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.Attribution, - com.google.maps.places.v1.Place.Attribution.Builder, - com.google.maps.places.v1.Place.AttributionOrBuilder> - attributionsBuilder_; - /** * * *
-     * A set of data provider that must be shown with this result.
+     * A truncated URL to an icon mask. User can access different icon type by
+     * appending type suffix to the end (eg, ".svg" or ".png").
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; - */ - public java.util.List getAttributionsList() { - if (attributionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(attributions_); - } else { - return attributionsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * A set of data provider that must be shown with this result.
-     * 
+ * string icon_mask_base_uri = 29; * - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * @param value The bytes for iconMaskBaseUri to set. + * @return This builder for chaining. */ - public int getAttributionsCount() { - if (attributionsBuilder_ == null) { - return attributions_.size(); - } else { - return attributionsBuilder_.getCount(); + public Builder setIconMaskBaseUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconMaskBaseUri_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; } + private java.lang.Object iconBackgroundColor_ = ""; + /** * * *
-     * A set of data provider that must be shown with this result.
+     * Background color for icon_mask in hex format, e.g. #909CE1.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * string icon_background_color = 30; + * + * @return The iconBackgroundColor. */ - public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { - if (attributionsBuilder_ == null) { - return attributions_.get(index); + public java.lang.String getIconBackgroundColor() { + java.lang.Object ref = iconBackgroundColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconBackgroundColor_ = s; + return s; } else { - return attributionsBuilder_.getMessage(index); + return (java.lang.String) ref; } } @@ -29352,43 +34342,44 @@ public com.google.maps.places.v1.Place.Attribution getAttributions(int index) { * * *
-     * A set of data provider that must be shown with this result.
+     * Background color for icon_mask in hex format, e.g. #909CE1.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * string icon_background_color = 30; + * + * @return The bytes for iconBackgroundColor. */ - public Builder setAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { - if (attributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributionsIsMutable(); - attributions_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getIconBackgroundColorBytes() { + java.lang.Object ref = iconBackgroundColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconBackgroundColor_ = b; + return b; } else { - attributionsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Background color for icon_mask in hex format, e.g. #909CE1.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * string icon_background_color = 30; + * + * @param value The iconBackgroundColor to set. + * @return This builder for chaining. */ - public Builder setAttributions( - int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { - if (attributionsBuilder_ == null) { - ensureAttributionsIsMutable(); - attributions_.set(index, builderForValue.build()); - onChanged(); - } else { - attributionsBuilder_.setMessage(index, builderForValue.build()); + public Builder setIconBackgroundColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + iconBackgroundColor_ = value; + bitField0_ |= 0x20000000; + onChanged(); return this; } @@ -29396,22 +34387,17 @@ public Builder setAttributions( * * *
-     * A set of data provider that must be shown with this result.
+     * Background color for icon_mask in hex format, e.g. #909CE1.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * string icon_background_color = 30; + * + * @return This builder for chaining. */ - public Builder addAttributions(com.google.maps.places.v1.Place.Attribution value) { - if (attributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributionsIsMutable(); - attributions_.add(value); - onChanged(); - } else { - attributionsBuilder_.addMessage(value); - } + public Builder clearIconBackgroundColor() { + iconBackgroundColor_ = getDefaultInstance().getIconBackgroundColor(); + bitField0_ = (bitField0_ & ~0x20000000); + onChanged(); return this; } @@ -29419,85 +34405,76 @@ public Builder addAttributions(com.google.maps.places.v1.Place.Attribution value * * *
-     * A set of data provider that must be shown with this result.
+     * Background color for icon_mask in hex format, e.g. #909CE1.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * string icon_background_color = 30; + * + * @param value The bytes for iconBackgroundColor to set. + * @return This builder for chaining. */ - public Builder addAttributions(int index, com.google.maps.places.v1.Place.Attribution value) { - if (attributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttributionsIsMutable(); - attributions_.add(index, value); - onChanged(); - } else { - attributionsBuilder_.addMessage(index, value); + public Builder setIconBackgroundColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconBackgroundColor_ = value; + bitField0_ |= 0x20000000; + onChanged(); return this; } + private boolean takeout_; + /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports takeout.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool takeout = 33; + * + * @return Whether the takeout field is set. */ - public Builder addAttributions( - com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { - if (attributionsBuilder_ == null) { - ensureAttributionsIsMutable(); - attributions_.add(builderForValue.build()); - onChanged(); - } else { - attributionsBuilder_.addMessage(builderForValue.build()); - } - return this; + @java.lang.Override + public boolean hasTakeout() { + return ((bitField0_ & 0x40000000) != 0); } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports takeout.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool takeout = 33; + * + * @return The takeout. */ - public Builder addAttributions( - int index, com.google.maps.places.v1.Place.Attribution.Builder builderForValue) { - if (attributionsBuilder_ == null) { - ensureAttributionsIsMutable(); - attributions_.add(index, builderForValue.build()); - onChanged(); - } else { - attributionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public boolean getTakeout() { + return takeout_; } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports takeout.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool takeout = 33; + * + * @param value The takeout to set. + * @return This builder for chaining. */ - public Builder addAllAttributions( - java.lang.Iterable values) { - if (attributionsBuilder_ == null) { - ensureAttributionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributions_); - onChanged(); - } else { - attributionsBuilder_.addAllMessages(values); - } + public Builder setTakeout(boolean value) { + + takeout_ = value; + bitField0_ |= 0x40000000; + onChanged(); return this; } @@ -29505,200 +34482,214 @@ public Builder addAllAttributions( * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports takeout.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool takeout = 33; + * + * @return This builder for chaining. */ - public Builder clearAttributions() { - if (attributionsBuilder_ == null) { - attributions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); - onChanged(); - } else { - attributionsBuilder_.clear(); - } + public Builder clearTakeout() { + bitField0_ = (bitField0_ & ~0x40000000); + takeout_ = false; + onChanged(); return this; } + private boolean delivery_; + /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports delivery.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool delivery = 34; + * + * @return Whether the delivery field is set. */ - public Builder removeAttributions(int index) { - if (attributionsBuilder_ == null) { - ensureAttributionsIsMutable(); - attributions_.remove(index); - onChanged(); - } else { - attributionsBuilder_.remove(index); - } - return this; + @java.lang.Override + public boolean hasDelivery() { + return ((bitField0_ & 0x80000000) != 0); } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports delivery.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool delivery = 34; + * + * @return The delivery. */ - public com.google.maps.places.v1.Place.Attribution.Builder getAttributionsBuilder(int index) { - return getAttributionsFieldBuilder().getBuilder(index); + @java.lang.Override + public boolean getDelivery() { + return delivery_; } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports delivery.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool delivery = 34; + * + * @param value The delivery to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.Place.AttributionOrBuilder getAttributionsOrBuilder( - int index) { - if (attributionsBuilder_ == null) { - return attributions_.get(index); - } else { - return attributionsBuilder_.getMessageOrBuilder(index); - } + public Builder setDelivery(boolean value) { + + delivery_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports delivery.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool delivery = 34; + * + * @return This builder for chaining. */ - public java.util.List - getAttributionsOrBuilderList() { - if (attributionsBuilder_ != null) { - return attributionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attributions_); - } + public Builder clearDelivery() { + bitField0_ = (bitField0_ & ~0x80000000); + delivery_ = false; + onChanged(); + return this; } + private boolean dineIn_; + /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports indoor or outdoor seating options.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool dine_in = 35; + * + * @return Whether the dineIn field is set. */ - public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder() { - return getAttributionsFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); + @java.lang.Override + public boolean hasDineIn() { + return ((bitField1_ & 0x00000001) != 0); } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports indoor or outdoor seating options.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool dine_in = 35; + * + * @return The dineIn. */ - public com.google.maps.places.v1.Place.Attribution.Builder addAttributionsBuilder(int index) { - return getAttributionsFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.Attribution.getDefaultInstance()); + @java.lang.Override + public boolean getDineIn() { + return dineIn_; } /** * * *
-     * A set of data provider that must be shown with this result.
+     * Specifies if the business supports indoor or outdoor seating options.
      * 
* - * repeated .google.maps.places.v1.Place.Attribution attributions = 27; + * optional bool dine_in = 35; + * + * @param value The dineIn to set. + * @return This builder for chaining. */ - public java.util.List - getAttributionsBuilderList() { - return getAttributionsFieldBuilder().getBuilderList(); - } + public Builder setDineIn(boolean value) { - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.Attribution, - com.google.maps.places.v1.Place.Attribution.Builder, - com.google.maps.places.v1.Place.AttributionOrBuilder> - getAttributionsFieldBuilder() { - if (attributionsBuilder_ == null) { - attributionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.Attribution, - com.google.maps.places.v1.Place.Attribution.Builder, - com.google.maps.places.v1.Place.AttributionOrBuilder>( - attributions_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); - attributions_ = null; - } - return attributionsBuilder_; + dineIn_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; } - private int userRatingCount_; + /** + * + * + *
+     * Specifies if the business supports indoor or outdoor seating options.
+     * 
+ * + * optional bool dine_in = 35; + * + * @return This builder for chaining. + */ + public Builder clearDineIn() { + bitField1_ = (bitField1_ & ~0x00000001); + dineIn_ = false; + onChanged(); + return this; + } + + private boolean curbsidePickup_; /** * * *
-     * The total number of reviews (with or without text) for this place.
+     * Specifies if the business supports curbside pickup.
      * 
* - * optional int32 user_rating_count = 28; + * optional bool curbside_pickup = 36; * - * @return Whether the userRatingCount field is set. + * @return Whether the curbsidePickup field is set. */ @java.lang.Override - public boolean hasUserRatingCount() { - return ((bitField0_ & 0x08000000) != 0); + public boolean hasCurbsidePickup() { + return ((bitField1_ & 0x00000002) != 0); } /** * * *
-     * The total number of reviews (with or without text) for this place.
+     * Specifies if the business supports curbside pickup.
      * 
* - * optional int32 user_rating_count = 28; + * optional bool curbside_pickup = 36; * - * @return The userRatingCount. + * @return The curbsidePickup. */ @java.lang.Override - public int getUserRatingCount() { - return userRatingCount_; + public boolean getCurbsidePickup() { + return curbsidePickup_; } /** * * *
-     * The total number of reviews (with or without text) for this place.
+     * Specifies if the business supports curbside pickup.
      * 
* - * optional int32 user_rating_count = 28; + * optional bool curbside_pickup = 36; * - * @param value The userRatingCount to set. + * @param value The curbsidePickup to set. * @return This builder for chaining. */ - public Builder setUserRatingCount(int value) { + public Builder setCurbsidePickup(boolean value) { - userRatingCount_ = value; - bitField0_ |= 0x08000000; + curbsidePickup_ = value; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -29707,89 +34698,70 @@ public Builder setUserRatingCount(int value) { * * *
-     * The total number of reviews (with or without text) for this place.
+     * Specifies if the business supports curbside pickup.
      * 
* - * optional int32 user_rating_count = 28; + * optional bool curbside_pickup = 36; * * @return This builder for chaining. */ - public Builder clearUserRatingCount() { - bitField0_ = (bitField0_ & ~0x08000000); - userRatingCount_ = 0; + public Builder clearCurbsidePickup() { + bitField1_ = (bitField1_ & ~0x00000002); + curbsidePickup_ = false; onChanged(); return this; } - private java.lang.Object iconMaskBaseUri_ = ""; + private boolean reservable_; /** * * *
-     * A truncated URL to an icon mask. User can access different icon type by
-     * appending type suffix to the end (eg, ".svg" or ".png").
+     * Specifies if the place supports reservations.
      * 
* - * string icon_mask_base_uri = 29; + * optional bool reservable = 38; * - * @return The iconMaskBaseUri. + * @return Whether the reservable field is set. */ - public java.lang.String getIconMaskBaseUri() { - java.lang.Object ref = iconMaskBaseUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconMaskBaseUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasReservable() { + return ((bitField1_ & 0x00000004) != 0); } /** * * *
-     * A truncated URL to an icon mask. User can access different icon type by
-     * appending type suffix to the end (eg, ".svg" or ".png").
+     * Specifies if the place supports reservations.
      * 
* - * string icon_mask_base_uri = 29; + * optional bool reservable = 38; * - * @return The bytes for iconMaskBaseUri. + * @return The reservable. */ - public com.google.protobuf.ByteString getIconMaskBaseUriBytes() { - java.lang.Object ref = iconMaskBaseUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconMaskBaseUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean getReservable() { + return reservable_; } /** * * *
-     * A truncated URL to an icon mask. User can access different icon type by
-     * appending type suffix to the end (eg, ".svg" or ".png").
+     * Specifies if the place supports reservations.
      * 
* - * string icon_mask_base_uri = 29; + * optional bool reservable = 38; * - * @param value The iconMaskBaseUri to set. + * @param value The reservable to set. * @return This builder for chaining. */ - public Builder setIconMaskBaseUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - iconMaskBaseUri_ = value; - bitField0_ |= 0x10000000; + public Builder setReservable(boolean value) { + + reservable_ = value; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -29798,129 +34770,142 @@ public Builder setIconMaskBaseUri(java.lang.String value) { * * *
-     * A truncated URL to an icon mask. User can access different icon type by
-     * appending type suffix to the end (eg, ".svg" or ".png").
+     * Specifies if the place supports reservations.
      * 
* - * string icon_mask_base_uri = 29; + * optional bool reservable = 38; * * @return This builder for chaining. */ - public Builder clearIconMaskBaseUri() { - iconMaskBaseUri_ = getDefaultInstance().getIconMaskBaseUri(); - bitField0_ = (bitField0_ & ~0x10000000); + public Builder clearReservable() { + bitField1_ = (bitField1_ & ~0x00000004); + reservable_ = false; onChanged(); return this; } + private boolean servesBreakfast_; + /** * * *
-     * A truncated URL to an icon mask. User can access different icon type by
-     * appending type suffix to the end (eg, ".svg" or ".png").
+     * Specifies if the place serves breakfast.
      * 
* - * string icon_mask_base_uri = 29; + * optional bool serves_breakfast = 39; * - * @param value The bytes for iconMaskBaseUri to set. - * @return This builder for chaining. + * @return Whether the servesBreakfast field is set. */ - public Builder setIconMaskBaseUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - iconMaskBaseUri_ = value; - bitField0_ |= 0x10000000; - onChanged(); - return this; + @java.lang.Override + public boolean hasServesBreakfast() { + return ((bitField1_ & 0x00000008) != 0); } - private java.lang.Object iconBackgroundColor_ = ""; - /** * * *
-     * Background color for icon_mask in hex format, e.g. #909CE1.
+     * Specifies if the place serves breakfast.
      * 
* - * string icon_background_color = 30; + * optional bool serves_breakfast = 39; * - * @return The iconBackgroundColor. + * @return The servesBreakfast. */ - public java.lang.String getIconBackgroundColor() { - java.lang.Object ref = iconBackgroundColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconBackgroundColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean getServesBreakfast() { + return servesBreakfast_; } /** * * *
-     * Background color for icon_mask in hex format, e.g. #909CE1.
+     * Specifies if the place serves breakfast.
      * 
* - * string icon_background_color = 30; + * optional bool serves_breakfast = 39; * - * @return The bytes for iconBackgroundColor. + * @param value The servesBreakfast to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getIconBackgroundColorBytes() { - java.lang.Object ref = iconBackgroundColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconBackgroundColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setServesBreakfast(boolean value) { + + servesBreakfast_ = value; + bitField1_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-     * Background color for icon_mask in hex format, e.g. #909CE1.
+     * Specifies if the place serves breakfast.
      * 
* - * string icon_background_color = 30; + * optional bool serves_breakfast = 39; * - * @param value The iconBackgroundColor to set. * @return This builder for chaining. */ - public Builder setIconBackgroundColor(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - iconBackgroundColor_ = value; - bitField0_ |= 0x20000000; + public Builder clearServesBreakfast() { + bitField1_ = (bitField1_ & ~0x00000008); + servesBreakfast_ = false; onChanged(); return this; } + private boolean servesLunch_; + /** * * *
-     * Background color for icon_mask in hex format, e.g. #909CE1.
+     * Specifies if the place serves lunch.
      * 
* - * string icon_background_color = 30; + * optional bool serves_lunch = 40; + * + * @return Whether the servesLunch field is set. + */ + @java.lang.Override + public boolean hasServesLunch() { + return ((bitField1_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Specifies if the place serves lunch.
+     * 
+ * + * optional bool serves_lunch = 40; + * + * @return The servesLunch. + */ + @java.lang.Override + public boolean getServesLunch() { + return servesLunch_; + } + + /** + * + * + *
+     * Specifies if the place serves lunch.
+     * 
* + * optional bool serves_lunch = 40; + * + * @param value The servesLunch to set. * @return This builder for chaining. */ - public Builder clearIconBackgroundColor() { - iconBackgroundColor_ = getDefaultInstance().getIconBackgroundColor(); - bitField0_ = (bitField0_ & ~0x20000000); + public Builder setServesLunch(boolean value) { + + servesLunch_ = value; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -29929,75 +34914,70 @@ public Builder clearIconBackgroundColor() { * * *
-     * Background color for icon_mask in hex format, e.g. #909CE1.
+     * Specifies if the place serves lunch.
      * 
* - * string icon_background_color = 30; + * optional bool serves_lunch = 40; * - * @param value The bytes for iconBackgroundColor to set. * @return This builder for chaining. */ - public Builder setIconBackgroundColorBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - iconBackgroundColor_ = value; - bitField0_ |= 0x20000000; + public Builder clearServesLunch() { + bitField1_ = (bitField1_ & ~0x00000010); + servesLunch_ = false; onChanged(); return this; } - private boolean takeout_; + private boolean servesDinner_; /** * * *
-     * Specifies if the business supports takeout.
+     * Specifies if the place serves dinner.
      * 
* - * optional bool takeout = 33; + * optional bool serves_dinner = 41; * - * @return Whether the takeout field is set. + * @return Whether the servesDinner field is set. */ @java.lang.Override - public boolean hasTakeout() { - return ((bitField0_ & 0x40000000) != 0); + public boolean hasServesDinner() { + return ((bitField1_ & 0x00000020) != 0); } /** * * *
-     * Specifies if the business supports takeout.
+     * Specifies if the place serves dinner.
      * 
* - * optional bool takeout = 33; + * optional bool serves_dinner = 41; * - * @return The takeout. + * @return The servesDinner. */ @java.lang.Override - public boolean getTakeout() { - return takeout_; + public boolean getServesDinner() { + return servesDinner_; } /** * * *
-     * Specifies if the business supports takeout.
+     * Specifies if the place serves dinner.
      * 
* - * optional bool takeout = 33; + * optional bool serves_dinner = 41; * - * @param value The takeout to set. + * @param value The servesDinner to set. * @return This builder for chaining. */ - public Builder setTakeout(boolean value) { + public Builder setServesDinner(boolean value) { - takeout_ = value; - bitField0_ |= 0x40000000; + servesDinner_ = value; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -30006,70 +34986,70 @@ public Builder setTakeout(boolean value) { * * *
-     * Specifies if the business supports takeout.
+     * Specifies if the place serves dinner.
      * 
* - * optional bool takeout = 33; + * optional bool serves_dinner = 41; * * @return This builder for chaining. */ - public Builder clearTakeout() { - bitField0_ = (bitField0_ & ~0x40000000); - takeout_ = false; + public Builder clearServesDinner() { + bitField1_ = (bitField1_ & ~0x00000020); + servesDinner_ = false; onChanged(); return this; } - private boolean delivery_; + private boolean servesBeer_; /** * * *
-     * Specifies if the business supports delivery.
+     * Specifies if the place serves beer.
      * 
* - * optional bool delivery = 34; + * optional bool serves_beer = 42; * - * @return Whether the delivery field is set. + * @return Whether the servesBeer field is set. */ @java.lang.Override - public boolean hasDelivery() { - return ((bitField0_ & 0x80000000) != 0); + public boolean hasServesBeer() { + return ((bitField1_ & 0x00000040) != 0); } /** * * *
-     * Specifies if the business supports delivery.
+     * Specifies if the place serves beer.
      * 
* - * optional bool delivery = 34; + * optional bool serves_beer = 42; * - * @return The delivery. + * @return The servesBeer. */ @java.lang.Override - public boolean getDelivery() { - return delivery_; + public boolean getServesBeer() { + return servesBeer_; } /** * * *
-     * Specifies if the business supports delivery.
+     * Specifies if the place serves beer.
      * 
* - * optional bool delivery = 34; + * optional bool serves_beer = 42; * - * @param value The delivery to set. + * @param value The servesBeer to set. * @return This builder for chaining. */ - public Builder setDelivery(boolean value) { + public Builder setServesBeer(boolean value) { - delivery_ = value; - bitField0_ |= 0x80000000; + servesBeer_ = value; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -30078,70 +35058,70 @@ public Builder setDelivery(boolean value) { * * *
-     * Specifies if the business supports delivery.
+     * Specifies if the place serves beer.
      * 
* - * optional bool delivery = 34; + * optional bool serves_beer = 42; * * @return This builder for chaining. */ - public Builder clearDelivery() { - bitField0_ = (bitField0_ & ~0x80000000); - delivery_ = false; + public Builder clearServesBeer() { + bitField1_ = (bitField1_ & ~0x00000040); + servesBeer_ = false; onChanged(); return this; } - private boolean dineIn_; + private boolean servesWine_; /** * * *
-     * Specifies if the business supports indoor or outdoor seating options.
+     * Specifies if the place serves wine.
      * 
* - * optional bool dine_in = 35; + * optional bool serves_wine = 43; * - * @return Whether the dineIn field is set. + * @return Whether the servesWine field is set. */ @java.lang.Override - public boolean hasDineIn() { - return ((bitField1_ & 0x00000001) != 0); + public boolean hasServesWine() { + return ((bitField1_ & 0x00000080) != 0); } /** * * *
-     * Specifies if the business supports indoor or outdoor seating options.
+     * Specifies if the place serves wine.
      * 
* - * optional bool dine_in = 35; + * optional bool serves_wine = 43; * - * @return The dineIn. + * @return The servesWine. */ @java.lang.Override - public boolean getDineIn() { - return dineIn_; + public boolean getServesWine() { + return servesWine_; } /** * * *
-     * Specifies if the business supports indoor or outdoor seating options.
+     * Specifies if the place serves wine.
      * 
* - * optional bool dine_in = 35; + * optional bool serves_wine = 43; * - * @param value The dineIn to set. + * @param value The servesWine to set. * @return This builder for chaining. */ - public Builder setDineIn(boolean value) { + public Builder setServesWine(boolean value) { - dineIn_ = value; - bitField1_ |= 0x00000001; + servesWine_ = value; + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -30150,70 +35130,70 @@ public Builder setDineIn(boolean value) { * * *
-     * Specifies if the business supports indoor or outdoor seating options.
+     * Specifies if the place serves wine.
      * 
* - * optional bool dine_in = 35; + * optional bool serves_wine = 43; * * @return This builder for chaining. */ - public Builder clearDineIn() { - bitField1_ = (bitField1_ & ~0x00000001); - dineIn_ = false; + public Builder clearServesWine() { + bitField1_ = (bitField1_ & ~0x00000080); + servesWine_ = false; onChanged(); return this; } - private boolean curbsidePickup_; + private boolean servesBrunch_; /** * * *
-     * Specifies if the business supports curbside pickup.
+     * Specifies if the place serves brunch.
      * 
* - * optional bool curbside_pickup = 36; + * optional bool serves_brunch = 44; * - * @return Whether the curbsidePickup field is set. + * @return Whether the servesBrunch field is set. */ @java.lang.Override - public boolean hasCurbsidePickup() { - return ((bitField1_ & 0x00000002) != 0); + public boolean hasServesBrunch() { + return ((bitField1_ & 0x00000100) != 0); } /** * * *
-     * Specifies if the business supports curbside pickup.
+     * Specifies if the place serves brunch.
      * 
* - * optional bool curbside_pickup = 36; + * optional bool serves_brunch = 44; * - * @return The curbsidePickup. + * @return The servesBrunch. */ @java.lang.Override - public boolean getCurbsidePickup() { - return curbsidePickup_; + public boolean getServesBrunch() { + return servesBrunch_; } /** * * *
-     * Specifies if the business supports curbside pickup.
+     * Specifies if the place serves brunch.
      * 
* - * optional bool curbside_pickup = 36; + * optional bool serves_brunch = 44; * - * @param value The curbsidePickup to set. + * @param value The servesBrunch to set. * @return This builder for chaining. */ - public Builder setCurbsidePickup(boolean value) { + public Builder setServesBrunch(boolean value) { - curbsidePickup_ = value; - bitField1_ |= 0x00000002; + servesBrunch_ = value; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -30222,70 +35202,70 @@ public Builder setCurbsidePickup(boolean value) { * * *
-     * Specifies if the business supports curbside pickup.
+     * Specifies if the place serves brunch.
      * 
* - * optional bool curbside_pickup = 36; + * optional bool serves_brunch = 44; * * @return This builder for chaining. */ - public Builder clearCurbsidePickup() { - bitField1_ = (bitField1_ & ~0x00000002); - curbsidePickup_ = false; + public Builder clearServesBrunch() { + bitField1_ = (bitField1_ & ~0x00000100); + servesBrunch_ = false; onChanged(); return this; } - private boolean reservable_; + private boolean servesVegetarianFood_; /** * * *
-     * Specifies if the place supports reservations.
+     * Specifies if the place serves vegetarian food.
      * 
* - * optional bool reservable = 38; + * optional bool serves_vegetarian_food = 45; * - * @return Whether the reservable field is set. + * @return Whether the servesVegetarianFood field is set. */ @java.lang.Override - public boolean hasReservable() { - return ((bitField1_ & 0x00000004) != 0); + public boolean hasServesVegetarianFood() { + return ((bitField1_ & 0x00000200) != 0); } /** * * *
-     * Specifies if the place supports reservations.
+     * Specifies if the place serves vegetarian food.
      * 
* - * optional bool reservable = 38; + * optional bool serves_vegetarian_food = 45; * - * @return The reservable. + * @return The servesVegetarianFood. */ @java.lang.Override - public boolean getReservable() { - return reservable_; + public boolean getServesVegetarianFood() { + return servesVegetarianFood_; } /** * * *
-     * Specifies if the place supports reservations.
+     * Specifies if the place serves vegetarian food.
      * 
* - * optional bool reservable = 38; + * optional bool serves_vegetarian_food = 45; * - * @param value The reservable to set. + * @param value The servesVegetarianFood to set. * @return This builder for chaining. */ - public Builder setReservable(boolean value) { + public Builder setServesVegetarianFood(boolean value) { - reservable_ = value; - bitField1_ |= 0x00000004; + servesVegetarianFood_ = value; + bitField1_ |= 0x00000200; onChanged(); return this; } @@ -30294,142 +35274,170 @@ public Builder setReservable(boolean value) { * * *
-     * Specifies if the place supports reservations.
+     * Specifies if the place serves vegetarian food.
      * 
* - * optional bool reservable = 38; + * optional bool serves_vegetarian_food = 45; * * @return This builder for chaining. */ - public Builder clearReservable() { - bitField1_ = (bitField1_ & ~0x00000004); - reservable_ = false; + public Builder clearServesVegetarianFood() { + bitField1_ = (bitField1_ & ~0x00000200); + servesVegetarianFood_ = false; onChanged(); - return this; - } - - private boolean servesBreakfast_; - - /** - * - * - *
-     * Specifies if the place serves breakfast.
-     * 
- * - * optional bool serves_breakfast = 39; - * - * @return Whether the servesBreakfast field is set. - */ - @java.lang.Override - public boolean hasServesBreakfast() { - return ((bitField1_ & 0x00000008) != 0); + return this; } + private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + currentOpeningHoursBuilder_; + /** * * *
-     * Specifies if the place serves breakfast.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_breakfast = 39; + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; * - * @return The servesBreakfast. + * @return Whether the currentOpeningHours field is set. */ - @java.lang.Override - public boolean getServesBreakfast() { - return servesBreakfast_; + public boolean hasCurrentOpeningHours() { + return ((bitField1_ & 0x00000400) != 0); } /** * * *
-     * Specifies if the place serves breakfast.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_breakfast = 39; + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; * - * @param value The servesBreakfast to set. - * @return This builder for chaining. + * @return The currentOpeningHours. */ - public Builder setServesBreakfast(boolean value) { - - servesBreakfast_ = value; - bitField1_ |= 0x00000008; - onChanged(); - return this; + public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { + if (currentOpeningHoursBuilder_ == null) { + return currentOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : currentOpeningHours_; + } else { + return currentOpeningHoursBuilder_.getMessage(); + } } /** * * *
-     * Specifies if the place serves breakfast.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_breakfast = 39; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - public Builder clearServesBreakfast() { - bitField1_ = (bitField1_ & ~0x00000008); - servesBreakfast_ = false; + public Builder setCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { + if (currentOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentOpeningHours_ = value; + } else { + currentOpeningHoursBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; onChanged(); return this; } - private boolean servesLunch_; - /** * * *
-     * Specifies if the place serves lunch.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_lunch = 40; - * - * @return Whether the servesLunch field is set. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - @java.lang.Override - public boolean hasServesLunch() { - return ((bitField1_ & 0x00000010) != 0); + public Builder setCurrentOpeningHours( + com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (currentOpeningHoursBuilder_ == null) { + currentOpeningHours_ = builderForValue.build(); + } else { + currentOpeningHoursBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; } /** * * *
-     * Specifies if the place serves lunch.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_lunch = 40; - * - * @return The servesLunch. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - @java.lang.Override - public boolean getServesLunch() { - return servesLunch_; + public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { + if (currentOpeningHoursBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) + && currentOpeningHours_ != null + && currentOpeningHours_ + != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { + getCurrentOpeningHoursBuilder().mergeFrom(value); + } else { + currentOpeningHours_ = value; + } + } else { + currentOpeningHoursBuilder_.mergeFrom(value); + } + if (currentOpeningHours_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; } /** * * *
-     * Specifies if the place serves lunch.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_lunch = 40; - * - * @param value The servesLunch to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - public Builder setServesLunch(boolean value) { - - servesLunch_ = value; - bitField1_ |= 0x00000010; + public Builder clearCurrentOpeningHours() { + bitField1_ = (bitField1_ & ~0x00000400); + currentOpeningHours_ = null; + if (currentOpeningHoursBuilder_ != null) { + currentOpeningHoursBuilder_.dispose(); + currentOpeningHoursBuilder_ = null; + } onChanged(); return this; } @@ -30438,143 +35446,228 @@ public Builder setServesLunch(boolean value) { * * *
-     * Specifies if the place serves lunch.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_lunch = 40; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - public Builder clearServesLunch() { - bitField1_ = (bitField1_ & ~0x00000010); - servesLunch_ = false; + public com.google.maps.places.v1.Place.OpeningHours.Builder getCurrentOpeningHoursBuilder() { + bitField1_ |= 0x00000400; onChanged(); - return this; + return getCurrentOpeningHoursFieldBuilder().getBuilder(); } - private boolean servesDinner_; - /** * * *
-     * Specifies if the place serves dinner.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_dinner = 41; - * - * @return Whether the servesDinner field is set. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - @java.lang.Override - public boolean hasServesDinner() { - return ((bitField1_ & 0x00000020) != 0); + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { + if (currentOpeningHoursBuilder_ != null) { + return currentOpeningHoursBuilder_.getMessageOrBuilder(); + } else { + return currentOpeningHours_ == null + ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() + : currentOpeningHours_; + } } /** * * *
-     * Specifies if the place serves dinner.
+     * The hours of operation for the next seven days (including today). The time
+     * period starts at midnight on the date of the request and ends at 11:59 pm
+     * six days later. This field includes the special_days subfield of all hours,
+     * set for dates that have exceptional hours.
      * 
* - * optional bool serves_dinner = 41; - * - * @return The servesDinner. + * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; */ - @java.lang.Override - public boolean getServesDinner() { - return servesDinner_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + getCurrentOpeningHoursFieldBuilder() { + if (currentOpeningHoursBuilder_ == null) { + currentOpeningHoursBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( + getCurrentOpeningHours(), getParentForChildren(), isClean()); + currentOpeningHours_ = null; + } + return currentOpeningHoursBuilder_; } + private java.util.List + currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); + + private void ensureCurrentSecondaryOpeningHoursIsMutable() { + if (!((bitField1_ & 0x00000800) != 0)) { + currentSecondaryOpeningHours_ = + new java.util.ArrayList( + currentSecondaryOpeningHours_); + bitField1_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + currentSecondaryOpeningHoursBuilder_; + /** * * *
-     * Specifies if the place serves dinner.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_dinner = 41; - * - * @param value The servesDinner to set. - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder setServesDinner(boolean value) { - - servesDinner_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; + public java.util.List + getCurrentSecondaryOpeningHoursList() { + if (currentSecondaryOpeningHoursBuilder_ == null) { + return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); + } else { + return currentSecondaryOpeningHoursBuilder_.getMessageList(); + } } /** * * *
-     * Specifies if the place serves dinner.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_dinner = 41; - * - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder clearServesDinner() { - bitField1_ = (bitField1_ & ~0x00000020); - servesDinner_ = false; - onChanged(); - return this; + public int getCurrentSecondaryOpeningHoursCount() { + if (currentSecondaryOpeningHoursBuilder_ == null) { + return currentSecondaryOpeningHours_.size(); + } else { + return currentSecondaryOpeningHoursBuilder_.getCount(); + } } - private boolean servesBeer_; - /** * * *
-     * Specifies if the place serves beer.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_beer = 42; - * - * @return Whether the servesBeer field is set. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean hasServesBeer() { - return ((bitField1_ & 0x00000040) != 0); + public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + return currentSecondaryOpeningHours_.get(index); + } else { + return currentSecondaryOpeningHoursBuilder_.getMessage(index); + } } /** * * *
-     * Specifies if the place serves beer.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_beer = 42; - * - * @return The servesBeer. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean getServesBeer() { - return servesBeer_; + public Builder setCurrentSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours value) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.set(index, value); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.setMessage(index, value); + } + return this; } /** * * *
-     * Specifies if the place serves beer.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_beer = 42; - * - * @param value The servesBeer to set. - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder setServesBeer(boolean value) { - - servesBeer_ = value; - bitField1_ |= 0x00000040; - onChanged(); + public Builder setCurrentSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.set(index, builderForValue.build()); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); + } return this; } @@ -30582,71 +35675,125 @@ public Builder setServesBeer(boolean value) { * * *
-     * Specifies if the place serves beer.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_beer = 42; - * - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder clearServesBeer() { - bitField1_ = (bitField1_ & ~0x00000040); - servesBeer_ = false; - onChanged(); + public Builder addCurrentSecondaryOpeningHours( + com.google.maps.places.v1.Place.OpeningHours value) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.add(value); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.addMessage(value); + } return this; } - private boolean servesWine_; - /** * * *
-     * Specifies if the place serves wine.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_wine = 43; - * - * @return Whether the servesWine field is set. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean hasServesWine() { - return ((bitField1_ & 0x00000080) != 0); + public Builder addCurrentSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours value) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.add(index, value); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * Specifies if the place serves wine.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_wine = 43; - * - * @return The servesWine. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean getServesWine() { - return servesWine_; + public Builder addCurrentSecondaryOpeningHours( + com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.add(builderForValue.build()); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
-     * Specifies if the place serves wine.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_wine = 43; - * - * @param value The servesWine to set. - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder setServesWine(boolean value) { - - servesWine_ = value; - bitField1_ |= 0x00000080; - onChanged(); + public Builder addCurrentSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.add(index, builderForValue.build()); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); + } return this; } @@ -30654,210 +35801,299 @@ public Builder setServesWine(boolean value) { * * *
-     * Specifies if the place serves wine.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_wine = 43; - * - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder clearServesWine() { - bitField1_ = (bitField1_ & ~0x00000080); - servesWine_ = false; - onChanged(); + public Builder addAllCurrentSecondaryOpeningHours( + java.lang.Iterable values) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + ensureCurrentSecondaryOpeningHoursIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, currentSecondaryOpeningHours_); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.addAllMessages(values); + } return this; } - private boolean servesBrunch_; - /** * * *
-     * Specifies if the place serves brunch.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_brunch = 44; - * - * @return Whether the servesBrunch field is set. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean hasServesBrunch() { - return ((bitField1_ & 0x00000100) != 0); + public Builder clearCurrentSecondaryOpeningHours() { + if (currentSecondaryOpeningHoursBuilder_ == null) { + currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000800); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.clear(); + } + return this; } /** * * *
-     * Specifies if the place serves brunch.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_brunch = 44; - * - * @return The servesBrunch. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean getServesBrunch() { - return servesBrunch_; + public Builder removeCurrentSecondaryOpeningHours(int index) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + ensureCurrentSecondaryOpeningHoursIsMutable(); + currentSecondaryOpeningHours_.remove(index); + onChanged(); + } else { + currentSecondaryOpeningHoursBuilder_.remove(index); + } + return this; } /** * * *
-     * Specifies if the place serves brunch.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_brunch = 44; - * - * @param value The servesBrunch to set. - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder setServesBrunch(boolean value) { - - servesBrunch_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; + public com.google.maps.places.v1.Place.OpeningHours.Builder + getCurrentSecondaryOpeningHoursBuilder(int index) { + return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilder(index); } /** * * *
-     * Specifies if the place serves brunch.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_brunch = 44; - * - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder clearServesBrunch() { - bitField1_ = (bitField1_ & ~0x00000100); - servesBrunch_ = false; - onChanged(); - return this; + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder + getCurrentSecondaryOpeningHoursOrBuilder(int index) { + if (currentSecondaryOpeningHoursBuilder_ == null) { + return currentSecondaryOpeningHours_.get(index); + } else { + return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); + } } - private boolean servesVegetarianFood_; - /** * * *
-     * Specifies if the place serves vegetarian food.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_vegetarian_food = 45; - * - * @return Whether the servesVegetarianFood field is set. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean hasServesVegetarianFood() { - return ((bitField1_ & 0x00000200) != 0); + public java.util.List + getCurrentSecondaryOpeningHoursOrBuilderList() { + if (currentSecondaryOpeningHoursBuilder_ != null) { + return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); + } } /** * * *
-     * Specifies if the place serves vegetarian food.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_vegetarian_food = 45; - * - * @return The servesVegetarianFood. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - @java.lang.Override - public boolean getServesVegetarianFood() { - return servesVegetarianFood_; + public com.google.maps.places.v1.Place.OpeningHours.Builder + addCurrentSecondaryOpeningHoursBuilder() { + return getCurrentSecondaryOpeningHoursFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
-     * Specifies if the place serves vegetarian food.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_vegetarian_food = 45; - * - * @param value The servesVegetarianFood to set. - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder setServesVegetarianFood(boolean value) { - - servesVegetarianFood_ = value; - bitField1_ |= 0x00000200; - onChanged(); - return this; + public com.google.maps.places.v1.Place.OpeningHours.Builder + addCurrentSecondaryOpeningHoursBuilder(int index) { + return getCurrentSecondaryOpeningHoursFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
-     * Specifies if the place serves vegetarian food.
+     * Contains an array of entries for the next seven days including information
+     * about secondary hours of a business. Secondary hours are different from a
+     * business's main hours. For example, a restaurant can specify drive through
+     * hours or delivery hours as its secondary hours. This field populates the
+     * type subfield, which draws from a predefined list of opening hours types
+     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
+     * place. This field includes the special_days subfield of all hours, set for
+     * dates that have exceptional hours.
      * 
* - * optional bool serves_vegetarian_food = 45; - * - * @return This builder for chaining. + * + * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * */ - public Builder clearServesVegetarianFood() { - bitField1_ = (bitField1_ & ~0x00000200); - servesVegetarianFood_ = false; - onChanged(); - return this; + public java.util.List + getCurrentSecondaryOpeningHoursBuilderList() { + return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilderList(); } - private com.google.maps.places.v1.Place.OpeningHours currentOpeningHours_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilderV3< com.google.maps.places.v1.Place.OpeningHours, com.google.maps.places.v1.Place.OpeningHours.Builder, com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - currentOpeningHoursBuilder_; + getCurrentSecondaryOpeningHoursFieldBuilder() { + if (currentSecondaryOpeningHoursBuilder_ == null) { + currentSecondaryOpeningHoursBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( + currentSecondaryOpeningHours_, + ((bitField1_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + currentSecondaryOpeningHours_ = null; + } + return currentSecondaryOpeningHoursBuilder_; + } - /** - * - * - *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
-     * 
- * - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - * - * @return Whether the currentOpeningHours field is set. - */ - public boolean hasCurrentOpeningHours() { - return ((bitField1_ & 0x00000400) != 0); + private java.util.List + regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); + + private void ensureRegularSecondaryOpeningHoursIsMutable() { + if (!((bitField1_ & 0x00001000) != 0)) { + regularSecondaryOpeningHours_ = + new java.util.ArrayList( + regularSecondaryOpeningHours_); + bitField1_ |= 0x00001000; + } } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + regularSecondaryOpeningHoursBuilder_; + /** * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - * - * @return The currentOpeningHours. + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { - if (currentOpeningHoursBuilder_ == null) { - return currentOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : currentOpeningHours_; + public java.util.List + getRegularSecondaryOpeningHoursList() { + if (regularSecondaryOpeningHoursBuilder_ == null) { + return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); } else { - return currentOpeningHoursBuilder_.getMessage(); + return regularSecondaryOpeningHoursBuilder_.getMessageList(); } } @@ -30865,80 +36101,77 @@ public com.google.maps.places.v1.Place.OpeningHours getCurrentOpeningHours() { * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public Builder setCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { - if (currentOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - currentOpeningHours_ = value; + public int getRegularSecondaryOpeningHoursCount() { + if (regularSecondaryOpeningHoursBuilder_ == null) { + return regularSecondaryOpeningHours_.size(); } else { - currentOpeningHoursBuilder_.setMessage(value); + return regularSecondaryOpeningHoursBuilder_.getCount(); } - bitField1_ |= 0x00000400; - onChanged(); - return this; } /** * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public Builder setCurrentOpeningHours( - com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (currentOpeningHoursBuilder_ == null) { - currentOpeningHours_ = builderForValue.build(); + public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + return regularSecondaryOpeningHours_.get(index); } else { - currentOpeningHoursBuilder_.setMessage(builderForValue.build()); + return regularSecondaryOpeningHoursBuilder_.getMessage(index); } - bitField1_ |= 0x00000400; - onChanged(); - return this; } /** * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningHours value) { - if (currentOpeningHoursBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) - && currentOpeningHours_ != null - && currentOpeningHours_ - != com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()) { - getCurrentOpeningHoursBuilder().mergeFrom(value); - } else { - currentOpeningHours_ = value; + public Builder setRegularSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours value) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - currentOpeningHoursBuilder_.mergeFrom(value); - } - if (currentOpeningHours_ != null) { - bitField1_ |= 0x00000400; + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.set(index, value); onChanged(); + } else { + regularSecondaryOpeningHoursBuilder_.setMessage(index, value); } return this; } @@ -30947,22 +36180,27 @@ public Builder mergeCurrentOpeningHours(com.google.maps.places.v1.Place.OpeningH * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public Builder clearCurrentOpeningHours() { - bitField1_ = (bitField1_ & ~0x00000400); - currentOpeningHours_ = null; - if (currentOpeningHoursBuilder_ != null) { - currentOpeningHoursBuilder_.dispose(); - currentOpeningHoursBuilder_ = null; + public Builder setRegularSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.set(index, builderForValue.build()); + onChanged(); + } else { + regularSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); } - onChanged(); return this; } @@ -30970,197 +36208,199 @@ public Builder clearCurrentOpeningHours() { * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public com.google.maps.places.v1.Place.OpeningHours.Builder getCurrentOpeningHoursBuilder() { - bitField1_ |= 0x00000400; - onChanged(); - return getCurrentOpeningHoursFieldBuilder().getBuilder(); + public Builder addRegularSecondaryOpeningHours( + com.google.maps.places.v1.Place.OpeningHours value) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.add(value); + onChanged(); + } else { + regularSecondaryOpeningHoursBuilder_.addMessage(value); + } + return this; } /** * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * */ - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder getCurrentOpeningHoursOrBuilder() { - if (currentOpeningHoursBuilder_ != null) { - return currentOpeningHoursBuilder_.getMessageOrBuilder(); + public Builder addRegularSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours value) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.add(index, value); + onChanged(); } else { - return currentOpeningHours_ == null - ? com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance() - : currentOpeningHours_; + regularSecondaryOpeningHoursBuilder_.addMessage(index, value); } + return this; } /** * * *
-     * The hours of operation for the next seven days (including today). The time
-     * period starts at midnight on the date of the request and ends at 11:59 pm
-     * six days later. This field includes the special_days subfield of all hours,
-     * set for dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* - * .google.maps.places.v1.Place.OpeningHours current_opening_hours = 46; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - getCurrentOpeningHoursFieldBuilder() { - if (currentOpeningHoursBuilder_ == null) { - currentOpeningHoursBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( - getCurrentOpeningHours(), getParentForChildren(), isClean()); - currentOpeningHours_ = null; - } - return currentOpeningHoursBuilder_; - } - - private java.util.List - currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); - - private void ensureCurrentSecondaryOpeningHoursIsMutable() { - if (!((bitField1_ & 0x00000800) != 0)) { - currentSecondaryOpeningHours_ = - new java.util.ArrayList( - currentSecondaryOpeningHours_); - bitField1_ |= 0x00000800; + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + public Builder addRegularSecondaryOpeningHours( + com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.add(builderForValue.build()); + onChanged(); + } else { + regularSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); } + return this; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - currentSecondaryOpeningHoursBuilder_; - /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public java.util.List - getCurrentSecondaryOpeningHoursList() { - if (currentSecondaryOpeningHoursBuilder_ == null) { - return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); + public Builder addRegularSecondaryOpeningHours( + int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.add(index, builderForValue.build()); + onChanged(); } else { - return currentSecondaryOpeningHoursBuilder_.getMessageList(); + regularSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public int getCurrentSecondaryOpeningHoursCount() { - if (currentSecondaryOpeningHoursBuilder_ == null) { - return currentSecondaryOpeningHours_.size(); + public Builder addAllRegularSecondaryOpeningHours( + java.lang.Iterable values) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + ensureRegularSecondaryOpeningHoursIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, regularSecondaryOpeningHours_); + onChanged(); } else { - return currentSecondaryOpeningHoursBuilder_.getCount(); + regularSecondaryOpeningHoursBuilder_.addAllMessages(values); } + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public com.google.maps.places.v1.Place.OpeningHours getCurrentSecondaryOpeningHours(int index) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - return currentSecondaryOpeningHours_.get(index); + public Builder clearRegularSecondaryOpeningHours() { + if (regularSecondaryOpeningHoursBuilder_ == null) { + regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00001000); + onChanged(); } else { - return currentSecondaryOpeningHoursBuilder_.getMessage(index); + regularSecondaryOpeningHoursBuilder_.clear(); } + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder setCurrentSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours value) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.set(index, value); + public Builder removeRegularSecondaryOpeningHours(int index) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + ensureRegularSecondaryOpeningHoursIsMutable(); + regularSecondaryOpeningHours_.remove(index); onChanged(); } else { - currentSecondaryOpeningHoursBuilder_.setMessage(index, value); + regularSecondaryOpeningHoursBuilder_.remove(index); } return this; } @@ -31169,244 +36409,227 @@ public Builder setCurrentSecondaryOpeningHours( * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder setCurrentSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.set(index, builderForValue.build()); - onChanged(); - } else { - currentSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public com.google.maps.places.v1.Place.OpeningHours.Builder + getRegularSecondaryOpeningHoursBuilder(int index) { + return getRegularSecondaryOpeningHoursFieldBuilder().getBuilder(index); } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder addCurrentSecondaryOpeningHours( - com.google.maps.places.v1.Place.OpeningHours value) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.add(value); - onChanged(); + public com.google.maps.places.v1.Place.OpeningHoursOrBuilder + getRegularSecondaryOpeningHoursOrBuilder(int index) { + if (regularSecondaryOpeningHoursBuilder_ == null) { + return regularSecondaryOpeningHours_.get(index); } else { - currentSecondaryOpeningHoursBuilder_.addMessage(value); + return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder addCurrentSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours value) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.add(index, value); - onChanged(); + public java.util.List + getRegularSecondaryOpeningHoursOrBuilderList() { + if (regularSecondaryOpeningHoursBuilder_ != null) { + return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); } else { - currentSecondaryOpeningHoursBuilder_.addMessage(index, value); + return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); } - return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
+     * 
+ * + * + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; + * + */ + public com.google.maps.places.v1.Place.OpeningHours.Builder + addRegularSecondaryOpeningHoursBuilder() { + return getRegularSecondaryOpeningHoursFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); + } + + /** + * + * + *
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder addCurrentSecondaryOpeningHours( - com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.add(builderForValue.build()); - onChanged(); - } else { - currentSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.maps.places.v1.Place.OpeningHours.Builder + addRegularSecondaryOpeningHoursBuilder(int index) { + return getRegularSecondaryOpeningHoursFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains an array of entries for information about regular secondary hours
+     * of a business. Secondary hours are different from a business's main hours.
+     * For example, a restaurant can specify drive through hours or delivery hours
+     * as its secondary hours. This field populates the type subfield, which draws
+     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
+     * PICKUP, or TAKEOUT) based on the types of the place.
      * 
* * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; + * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; * */ - public Builder addCurrentSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.add(index, builderForValue.build()); - onChanged(); - } else { - currentSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); + public java.util.List + getRegularSecondaryOpeningHoursBuilderList() { + return getRegularSecondaryOpeningHoursFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder> + getRegularSecondaryOpeningHoursFieldBuilder() { + if (regularSecondaryOpeningHoursBuilder_ == null) { + regularSecondaryOpeningHoursBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.OpeningHours, + com.google.maps.places.v1.Place.OpeningHours.Builder, + com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( + regularSecondaryOpeningHours_, + ((bitField1_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + regularSecondaryOpeningHours_ = null; } - return this; + return regularSecondaryOpeningHoursBuilder_; } + private com.google.type.LocalizedText editorialSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + editorialSummaryBuilder_; + /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; + * + * @return Whether the editorialSummary field is set. */ - public Builder addAllCurrentSecondaryOpeningHours( - java.lang.Iterable values) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - ensureCurrentSecondaryOpeningHoursIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, currentSecondaryOpeningHours_); - onChanged(); - } else { - currentSecondaryOpeningHoursBuilder_.addAllMessages(values); - } - return this; + public boolean hasEditorialSummary() { + return ((bitField1_ & 0x00002000) != 0); } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; + * + * @return The editorialSummary. */ - public Builder clearCurrentSecondaryOpeningHours() { - if (currentSecondaryOpeningHoursBuilder_ == null) { - currentSecondaryOpeningHours_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000800); - onChanged(); + public com.google.type.LocalizedText getEditorialSummary() { + if (editorialSummaryBuilder_ == null) { + return editorialSummary_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : editorialSummary_; } else { - currentSecondaryOpeningHoursBuilder_.clear(); + return editorialSummaryBuilder_.getMessage(); } - return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public Builder removeCurrentSecondaryOpeningHours(int index) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - ensureCurrentSecondaryOpeningHoursIsMutable(); - currentSecondaryOpeningHours_.remove(index); - onChanged(); + public Builder setEditorialSummary(com.google.type.LocalizedText value) { + if (editorialSummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + editorialSummary_ = value; } else { - currentSecondaryOpeningHoursBuilder_.remove(index); + editorialSummaryBuilder_.setMessage(value); } + bitField1_ |= 0x00002000; + onChanged(); return this; } @@ -31414,348 +36637,265 @@ public Builder removeCurrentSecondaryOpeningHours(int index) { * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - getCurrentSecondaryOpeningHoursBuilder(int index) { - return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilder(index); + public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builderForValue) { + if (editorialSummaryBuilder_ == null) { + editorialSummary_ = builderForValue.build(); + } else { + editorialSummaryBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder - getCurrentSecondaryOpeningHoursOrBuilder(int index) { - if (currentSecondaryOpeningHoursBuilder_ == null) { - return currentSecondaryOpeningHours_.get(index); + public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { + if (editorialSummaryBuilder_ == null) { + if (((bitField1_ & 0x00002000) != 0) + && editorialSummary_ != null + && editorialSummary_ != com.google.type.LocalizedText.getDefaultInstance()) { + getEditorialSummaryBuilder().mergeFrom(value); + } else { + editorialSummary_ = value; + } } else { - return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); + editorialSummaryBuilder_.mergeFrom(value); + } + if (editorialSummary_ != null) { + bitField1_ |= 0x00002000; + onChanged(); } + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public java.util.List - getCurrentSecondaryOpeningHoursOrBuilderList() { - if (currentSecondaryOpeningHoursBuilder_ != null) { - return currentSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(currentSecondaryOpeningHours_); + public Builder clearEditorialSummary() { + bitField1_ = (bitField1_ & ~0x00002000); + editorialSummary_ = null; + if (editorialSummaryBuilder_ != null) { + editorialSummaryBuilder_.dispose(); + editorialSummaryBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - addCurrentSecondaryOpeningHoursBuilder() { - return getCurrentSecondaryOpeningHoursFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); + public com.google.type.LocalizedText.Builder getEditorialSummaryBuilder() { + bitField1_ |= 0x00002000; + onChanged(); + return getEditorialSummaryFieldBuilder().getBuilder(); } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - addCurrentSecondaryOpeningHoursBuilder(int index) { - return getCurrentSecondaryOpeningHoursFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); + public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { + if (editorialSummaryBuilder_ != null) { + return editorialSummaryBuilder_.getMessageOrBuilder(); + } else { + return editorialSummary_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : editorialSummary_; + } } /** * * *
-     * Contains an array of entries for the next seven days including information
-     * about secondary hours of a business. Secondary hours are different from a
-     * business's main hours. For example, a restaurant can specify drive through
-     * hours or delivery hours as its secondary hours. This field populates the
-     * type subfield, which draws from a predefined list of opening hours types
-     * (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the
-     * place. This field includes the special_days subfield of all hours, set for
-     * dates that have exceptional hours.
+     * Contains a summary of the place. A summary is comprised of a textual
+     * overview, and also includes the language code for these if applicable.
+     * Summary text must be presented as-is and can not be modified or altered.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours current_secondary_opening_hours = 47; - * + * .google.type.LocalizedText editorial_summary = 52; */ - public java.util.List - getCurrentSecondaryOpeningHoursBuilderList() { - return getCurrentSecondaryOpeningHoursFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - getCurrentSecondaryOpeningHoursFieldBuilder() { - if (currentSecondaryOpeningHoursBuilder_ == null) { - currentSecondaryOpeningHoursBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( - currentSecondaryOpeningHours_, - ((bitField1_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - currentSecondaryOpeningHours_ = null; - } - return currentSecondaryOpeningHoursBuilder_; - } - - private java.util.List - regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); - - private void ensureRegularSecondaryOpeningHoursIsMutable() { - if (!((bitField1_ & 0x00001000) != 0)) { - regularSecondaryOpeningHours_ = - new java.util.ArrayList( - regularSecondaryOpeningHours_); - bitField1_ |= 0x00001000; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + getEditorialSummaryFieldBuilder() { + if (editorialSummaryBuilder_ == null) { + editorialSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getEditorialSummary(), getParentForChildren(), isClean()); + editorialSummary_ = null; } + return editorialSummaryBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - regularSecondaryOpeningHoursBuilder_; + private boolean outdoorSeating_; /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides outdoor seating.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool outdoor_seating = 55; + * + * @return Whether the outdoorSeating field is set. */ - public java.util.List - getRegularSecondaryOpeningHoursList() { - if (regularSecondaryOpeningHoursBuilder_ == null) { - return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); - } else { - return regularSecondaryOpeningHoursBuilder_.getMessageList(); - } + @java.lang.Override + public boolean hasOutdoorSeating() { + return ((bitField1_ & 0x00004000) != 0); } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides outdoor seating.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool outdoor_seating = 55; + * + * @return The outdoorSeating. */ - public int getRegularSecondaryOpeningHoursCount() { - if (regularSecondaryOpeningHoursBuilder_ == null) { - return regularSecondaryOpeningHours_.size(); - } else { - return regularSecondaryOpeningHoursBuilder_.getCount(); - } + @java.lang.Override + public boolean getOutdoorSeating() { + return outdoorSeating_; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides outdoor seating.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool outdoor_seating = 55; + * + * @param value The outdoorSeating to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.Place.OpeningHours getRegularSecondaryOpeningHours(int index) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - return regularSecondaryOpeningHours_.get(index); - } else { - return regularSecondaryOpeningHoursBuilder_.getMessage(index); - } + public Builder setOutdoorSeating(boolean value) { + + outdoorSeating_ = value; + bitField1_ |= 0x00004000; + onChanged(); + return this; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides outdoor seating.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool outdoor_seating = 55; + * + * @return This builder for chaining. */ - public Builder setRegularSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours value) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.set(index, value); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.setMessage(index, value); - } + public Builder clearOutdoorSeating() { + bitField1_ = (bitField1_ & ~0x00004000); + outdoorSeating_ = false; + onChanged(); return this; } + private boolean liveMusic_; + /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides live music.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool live_music = 56; + * + * @return Whether the liveMusic field is set. */ - public Builder setRegularSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.set(index, builderForValue.build()); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public boolean hasLiveMusic() { + return ((bitField1_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Place provides live music.
+     * 
+ * + * optional bool live_music = 56; + * + * @return The liveMusic. + */ + @java.lang.Override + public boolean getLiveMusic() { + return liveMusic_; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides live music.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool live_music = 56; + * + * @param value The liveMusic to set. + * @return This builder for chaining. */ - public Builder addRegularSecondaryOpeningHours( - com.google.maps.places.v1.Place.OpeningHours value) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.add(value); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.addMessage(value); - } + public Builder setLiveMusic(boolean value) { + + liveMusic_ = value; + bitField1_ |= 0x00008000; + onChanged(); return this; } @@ -31763,115 +36903,71 @@ public Builder addRegularSecondaryOpeningHours( * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place provides live music.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool live_music = 56; + * + * @return This builder for chaining. */ - public Builder addRegularSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours value) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.add(index, value); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.addMessage(index, value); - } + public Builder clearLiveMusic() { + bitField1_ = (bitField1_ & ~0x00008000); + liveMusic_ = false; + onChanged(); return this; } + private boolean menuForChildren_; + /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place has a children's menu.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool menu_for_children = 57; + * + * @return Whether the menuForChildren field is set. */ - public Builder addRegularSecondaryOpeningHours( - com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.add(builderForValue.build()); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.addMessage(builderForValue.build()); - } - return this; + @java.lang.Override + public boolean hasMenuForChildren() { + return ((bitField1_ & 0x00010000) != 0); } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place has a children's menu.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool menu_for_children = 57; + * + * @return The menuForChildren. */ - public Builder addRegularSecondaryOpeningHours( - int index, com.google.maps.places.v1.Place.OpeningHours.Builder builderForValue) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.add(index, builderForValue.build()); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.addMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public boolean getMenuForChildren() { + return menuForChildren_; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place has a children's menu.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool menu_for_children = 57; + * + * @param value The menuForChildren to set. + * @return This builder for chaining. */ - public Builder addAllRegularSecondaryOpeningHours( - java.lang.Iterable values) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - ensureRegularSecondaryOpeningHoursIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, regularSecondaryOpeningHours_); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.addAllMessages(values); - } + public Builder setMenuForChildren(boolean value) { + + menuForChildren_ = value; + bitField1_ |= 0x00010000; + onChanged(); return this; } @@ -31879,302 +36975,214 @@ public Builder addAllRegularSecondaryOpeningHours( * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place has a children's menu.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool menu_for_children = 57; + * + * @return This builder for chaining. */ - public Builder clearRegularSecondaryOpeningHours() { - if (regularSecondaryOpeningHoursBuilder_ == null) { - regularSecondaryOpeningHours_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00001000); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.clear(); - } + public Builder clearMenuForChildren() { + bitField1_ = (bitField1_ & ~0x00010000); + menuForChildren_ = false; + onChanged(); return this; } + private boolean servesCocktails_; + /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves cocktails.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_cocktails = 58; + * + * @return Whether the servesCocktails field is set. */ - public Builder removeRegularSecondaryOpeningHours(int index) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - ensureRegularSecondaryOpeningHoursIsMutable(); - regularSecondaryOpeningHours_.remove(index); - onChanged(); - } else { - regularSecondaryOpeningHoursBuilder_.remove(index); - } - return this; + @java.lang.Override + public boolean hasServesCocktails() { + return ((bitField1_ & 0x00020000) != 0); } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves cocktails.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_cocktails = 58; + * + * @return The servesCocktails. */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - getRegularSecondaryOpeningHoursBuilder(int index) { - return getRegularSecondaryOpeningHoursFieldBuilder().getBuilder(index); + @java.lang.Override + public boolean getServesCocktails() { + return servesCocktails_; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves cocktails.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_cocktails = 58; + * + * @param value The servesCocktails to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.Place.OpeningHoursOrBuilder - getRegularSecondaryOpeningHoursOrBuilder(int index) { - if (regularSecondaryOpeningHoursBuilder_ == null) { - return regularSecondaryOpeningHours_.get(index); - } else { - return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilder(index); - } + public Builder setServesCocktails(boolean value) { + + servesCocktails_ = value; + bitField1_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves cocktails.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_cocktails = 58; + * + * @return This builder for chaining. */ - public java.util.List - getRegularSecondaryOpeningHoursOrBuilderList() { - if (regularSecondaryOpeningHoursBuilder_ != null) { - return regularSecondaryOpeningHoursBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(regularSecondaryOpeningHours_); - } + public Builder clearServesCocktails() { + bitField1_ = (bitField1_ & ~0x00020000); + servesCocktails_ = false; + onChanged(); + return this; } + private boolean servesDessert_; + /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves dessert.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_dessert = 59; + * + * @return Whether the servesDessert field is set. */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - addRegularSecondaryOpeningHoursBuilder() { - return getRegularSecondaryOpeningHoursFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); + @java.lang.Override + public boolean hasServesDessert() { + return ((bitField1_ & 0x00040000) != 0); } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves dessert.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_dessert = 59; + * + * @return The servesDessert. */ - public com.google.maps.places.v1.Place.OpeningHours.Builder - addRegularSecondaryOpeningHoursBuilder(int index) { - return getRegularSecondaryOpeningHoursFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.OpeningHours.getDefaultInstance()); + @java.lang.Override + public boolean getServesDessert() { + return servesDessert_; } /** * * *
-     * Contains an array of entries for information about regular secondary hours
-     * of a business. Secondary hours are different from a business's main hours.
-     * For example, a restaurant can specify drive through hours or delivery hours
-     * as its secondary hours. This field populates the type subfield, which draws
-     * from a predefined list of opening hours types (such as DRIVE_THROUGH,
-     * PICKUP, or TAKEOUT) based on the types of the place.
+     * Place serves dessert.
      * 
* - * - * repeated .google.maps.places.v1.Place.OpeningHours regular_secondary_opening_hours = 49; - * + * optional bool serves_dessert = 59; + * + * @param value The servesDessert to set. + * @return This builder for chaining. */ - public java.util.List - getRegularSecondaryOpeningHoursBuilderList() { - return getRegularSecondaryOpeningHoursFieldBuilder().getBuilderList(); - } + public Builder setServesDessert(boolean value) { - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder> - getRegularSecondaryOpeningHoursFieldBuilder() { - if (regularSecondaryOpeningHoursBuilder_ == null) { - regularSecondaryOpeningHoursBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.OpeningHours, - com.google.maps.places.v1.Place.OpeningHours.Builder, - com.google.maps.places.v1.Place.OpeningHoursOrBuilder>( - regularSecondaryOpeningHours_, - ((bitField1_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - regularSecondaryOpeningHours_ = null; - } - return regularSecondaryOpeningHoursBuilder_; + servesDessert_ = value; + bitField1_ |= 0x00040000; + onChanged(); + return this; } - private com.google.type.LocalizedText editorialSummary_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - editorialSummaryBuilder_; - /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place serves dessert.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool serves_dessert = 59; * - * @return Whether the editorialSummary field is set. + * @return This builder for chaining. */ - public boolean hasEditorialSummary() { - return ((bitField1_ & 0x00002000) != 0); + public Builder clearServesDessert() { + bitField1_ = (bitField1_ & ~0x00040000); + servesDessert_ = false; + onChanged(); + return this; } + private boolean servesCoffee_; + /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place serves coffee.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool serves_coffee = 60; * - * @return The editorialSummary. + * @return Whether the servesCoffee field is set. */ - public com.google.type.LocalizedText getEditorialSummary() { - if (editorialSummaryBuilder_ == null) { - return editorialSummary_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : editorialSummary_; - } else { - return editorialSummaryBuilder_.getMessage(); - } + @java.lang.Override + public boolean hasServesCoffee() { + return ((bitField1_ & 0x00080000) != 0); } /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place serves coffee.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool serves_coffee = 60; + * + * @return The servesCoffee. */ - public Builder setEditorialSummary(com.google.type.LocalizedText value) { - if (editorialSummaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - editorialSummary_ = value; - } else { - editorialSummaryBuilder_.setMessage(value); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; + @java.lang.Override + public boolean getServesCoffee() { + return servesCoffee_; } /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place serves coffee.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool serves_coffee = 60; + * + * @param value The servesCoffee to set. + * @return This builder for chaining. */ - public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builderForValue) { - if (editorialSummaryBuilder_ == null) { - editorialSummary_ = builderForValue.build(); - } else { - editorialSummaryBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00002000; + public Builder setServesCoffee(boolean value) { + + servesCoffee_ = value; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -32183,170 +37191,142 @@ public Builder setEditorialSummary(com.google.type.LocalizedText.Builder builder * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place serves coffee.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool serves_coffee = 60; + * + * @return This builder for chaining. */ - public Builder mergeEditorialSummary(com.google.type.LocalizedText value) { - if (editorialSummaryBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) - && editorialSummary_ != null - && editorialSummary_ != com.google.type.LocalizedText.getDefaultInstance()) { - getEditorialSummaryBuilder().mergeFrom(value); - } else { - editorialSummary_ = value; - } - } else { - editorialSummaryBuilder_.mergeFrom(value); - } - if (editorialSummary_ != null) { - bitField1_ |= 0x00002000; - onChanged(); - } + public Builder clearServesCoffee() { + bitField1_ = (bitField1_ & ~0x00080000); + servesCoffee_ = false; + onChanged(); return this; } + private boolean goodForChildren_; + /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place is good for children.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool good_for_children = 62; + * + * @return Whether the goodForChildren field is set. */ - public Builder clearEditorialSummary() { - bitField1_ = (bitField1_ & ~0x00002000); - editorialSummary_ = null; - if (editorialSummaryBuilder_ != null) { - editorialSummaryBuilder_.dispose(); - editorialSummaryBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public boolean hasGoodForChildren() { + return ((bitField1_ & 0x00100000) != 0); } /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place is good for children.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool good_for_children = 62; + * + * @return The goodForChildren. */ - public com.google.type.LocalizedText.Builder getEditorialSummaryBuilder() { - bitField1_ |= 0x00002000; - onChanged(); - return getEditorialSummaryFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getGoodForChildren() { + return goodForChildren_; } /** * * - *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * 
+     * Place is good for children.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool good_for_children = 62; + * + * @param value The goodForChildren to set. + * @return This builder for chaining. */ - public com.google.type.LocalizedTextOrBuilder getEditorialSummaryOrBuilder() { - if (editorialSummaryBuilder_ != null) { - return editorialSummaryBuilder_.getMessageOrBuilder(); - } else { - return editorialSummary_ == null - ? com.google.type.LocalizedText.getDefaultInstance() - : editorialSummary_; - } + public Builder setGoodForChildren(boolean value) { + + goodForChildren_ = value; + bitField1_ |= 0x00100000; + onChanged(); + return this; } /** * * *
-     * Contains a summary of the place. A summary is comprised of a textual
-     * overview, and also includes the language code for these if applicable.
-     * Summary text must be presented as-is and can not be modified or altered.
+     * Place is good for children.
      * 
* - * .google.type.LocalizedText editorial_summary = 52; + * optional bool good_for_children = 62; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder> - getEditorialSummaryFieldBuilder() { - if (editorialSummaryBuilder_ == null) { - editorialSummaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, - com.google.type.LocalizedText.Builder, - com.google.type.LocalizedTextOrBuilder>( - getEditorialSummary(), getParentForChildren(), isClean()); - editorialSummary_ = null; - } - return editorialSummaryBuilder_; + public Builder clearGoodForChildren() { + bitField1_ = (bitField1_ & ~0x00100000); + goodForChildren_ = false; + onChanged(); + return this; } - private boolean outdoorSeating_; + private boolean allowsDogs_; /** * * *
-     * Place provides outdoor seating.
+     * Place allows dogs.
      * 
* - * optional bool outdoor_seating = 55; + * optional bool allows_dogs = 63; * - * @return Whether the outdoorSeating field is set. + * @return Whether the allowsDogs field is set. */ @java.lang.Override - public boolean hasOutdoorSeating() { - return ((bitField1_ & 0x00004000) != 0); + public boolean hasAllowsDogs() { + return ((bitField1_ & 0x00200000) != 0); } /** * * *
-     * Place provides outdoor seating.
+     * Place allows dogs.
      * 
* - * optional bool outdoor_seating = 55; + * optional bool allows_dogs = 63; * - * @return The outdoorSeating. + * @return The allowsDogs. */ @java.lang.Override - public boolean getOutdoorSeating() { - return outdoorSeating_; + public boolean getAllowsDogs() { + return allowsDogs_; } /** * * *
-     * Place provides outdoor seating.
+     * Place allows dogs.
      * 
* - * optional bool outdoor_seating = 55; + * optional bool allows_dogs = 63; * - * @param value The outdoorSeating to set. + * @param value The allowsDogs to set. * @return This builder for chaining. */ - public Builder setOutdoorSeating(boolean value) { + public Builder setAllowsDogs(boolean value) { - outdoorSeating_ = value; - bitField1_ |= 0x00004000; + allowsDogs_ = value; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -32355,70 +37335,70 @@ public Builder setOutdoorSeating(boolean value) { * * *
-     * Place provides outdoor seating.
+     * Place allows dogs.
      * 
* - * optional bool outdoor_seating = 55; + * optional bool allows_dogs = 63; * * @return This builder for chaining. */ - public Builder clearOutdoorSeating() { - bitField1_ = (bitField1_ & ~0x00004000); - outdoorSeating_ = false; + public Builder clearAllowsDogs() { + bitField1_ = (bitField1_ & ~0x00200000); + allowsDogs_ = false; onChanged(); return this; } - private boolean liveMusic_; + private boolean restroom_; /** * * *
-     * Place provides live music.
+     * Place has restroom.
      * 
* - * optional bool live_music = 56; + * optional bool restroom = 64; * - * @return Whether the liveMusic field is set. + * @return Whether the restroom field is set. */ @java.lang.Override - public boolean hasLiveMusic() { - return ((bitField1_ & 0x00008000) != 0); + public boolean hasRestroom() { + return ((bitField1_ & 0x00400000) != 0); } /** * * *
-     * Place provides live music.
+     * Place has restroom.
      * 
* - * optional bool live_music = 56; + * optional bool restroom = 64; * - * @return The liveMusic. + * @return The restroom. */ @java.lang.Override - public boolean getLiveMusic() { - return liveMusic_; + public boolean getRestroom() { + return restroom_; } /** * * *
-     * Place provides live music.
+     * Place has restroom.
      * 
* - * optional bool live_music = 56; + * optional bool restroom = 64; * - * @param value The liveMusic to set. + * @param value The restroom to set. * @return This builder for chaining. */ - public Builder setLiveMusic(boolean value) { + public Builder setRestroom(boolean value) { - liveMusic_ = value; - bitField1_ |= 0x00008000; + restroom_ = value; + bitField1_ |= 0x00400000; onChanged(); return this; } @@ -32427,70 +37407,70 @@ public Builder setLiveMusic(boolean value) { * * *
-     * Place provides live music.
+     * Place has restroom.
      * 
* - * optional bool live_music = 56; + * optional bool restroom = 64; * * @return This builder for chaining. */ - public Builder clearLiveMusic() { - bitField1_ = (bitField1_ & ~0x00008000); - liveMusic_ = false; + public Builder clearRestroom() { + bitField1_ = (bitField1_ & ~0x00400000); + restroom_ = false; onChanged(); return this; } - private boolean menuForChildren_; + private boolean goodForGroups_; /** * * *
-     * Place has a children's menu.
+     * Place accommodates groups.
      * 
* - * optional bool menu_for_children = 57; + * optional bool good_for_groups = 65; * - * @return Whether the menuForChildren field is set. + * @return Whether the goodForGroups field is set. */ @java.lang.Override - public boolean hasMenuForChildren() { - return ((bitField1_ & 0x00010000) != 0); + public boolean hasGoodForGroups() { + return ((bitField1_ & 0x00800000) != 0); } /** * * *
-     * Place has a children's menu.
+     * Place accommodates groups.
      * 
* - * optional bool menu_for_children = 57; + * optional bool good_for_groups = 65; * - * @return The menuForChildren. + * @return The goodForGroups. */ @java.lang.Override - public boolean getMenuForChildren() { - return menuForChildren_; + public boolean getGoodForGroups() { + return goodForGroups_; } /** * * *
-     * Place has a children's menu.
+     * Place accommodates groups.
      * 
* - * optional bool menu_for_children = 57; + * optional bool good_for_groups = 65; * - * @param value The menuForChildren to set. + * @param value The goodForGroups to set. * @return This builder for chaining. */ - public Builder setMenuForChildren(boolean value) { + public Builder setGoodForGroups(boolean value) { - menuForChildren_ = value; - bitField1_ |= 0x00010000; + goodForGroups_ = value; + bitField1_ |= 0x00800000; onChanged(); return this; } @@ -32499,70 +37479,70 @@ public Builder setMenuForChildren(boolean value) { * * *
-     * Place has a children's menu.
+     * Place accommodates groups.
      * 
* - * optional bool menu_for_children = 57; + * optional bool good_for_groups = 65; * * @return This builder for chaining. */ - public Builder clearMenuForChildren() { - bitField1_ = (bitField1_ & ~0x00010000); - menuForChildren_ = false; + public Builder clearGoodForGroups() { + bitField1_ = (bitField1_ & ~0x00800000); + goodForGroups_ = false; onChanged(); return this; } - private boolean servesCocktails_; + private boolean goodForWatchingSports_; /** * * *
-     * Place serves cocktails.
+     * Place is suitable for watching sports.
      * 
* - * optional bool serves_cocktails = 58; + * optional bool good_for_watching_sports = 66; * - * @return Whether the servesCocktails field is set. + * @return Whether the goodForWatchingSports field is set. */ @java.lang.Override - public boolean hasServesCocktails() { - return ((bitField1_ & 0x00020000) != 0); + public boolean hasGoodForWatchingSports() { + return ((bitField1_ & 0x01000000) != 0); } /** * * *
-     * Place serves cocktails.
+     * Place is suitable for watching sports.
      * 
* - * optional bool serves_cocktails = 58; + * optional bool good_for_watching_sports = 66; * - * @return The servesCocktails. + * @return The goodForWatchingSports. */ @java.lang.Override - public boolean getServesCocktails() { - return servesCocktails_; + public boolean getGoodForWatchingSports() { + return goodForWatchingSports_; } /** * * *
-     * Place serves cocktails.
+     * Place is suitable for watching sports.
      * 
* - * optional bool serves_cocktails = 58; + * optional bool good_for_watching_sports = 66; * - * @param value The servesCocktails to set. + * @param value The goodForWatchingSports to set. * @return This builder for chaining. */ - public Builder setServesCocktails(boolean value) { + public Builder setGoodForWatchingSports(boolean value) { - servesCocktails_ = value; - bitField1_ |= 0x00020000; + goodForWatchingSports_ = value; + bitField1_ |= 0x01000000; onChanged(); return this; } @@ -32571,70 +37551,85 @@ public Builder setServesCocktails(boolean value) { * * *
-     * Place serves cocktails.
+     * Place is suitable for watching sports.
      * 
* - * optional bool serves_cocktails = 58; + * optional bool good_for_watching_sports = 66; * * @return This builder for chaining. */ - public Builder clearServesCocktails() { - bitField1_ = (bitField1_ & ~0x00020000); - servesCocktails_ = false; + public Builder clearGoodForWatchingSports() { + bitField1_ = (bitField1_ & ~0x01000000); + goodForWatchingSports_ = false; onChanged(); return this; } - private boolean servesDessert_; + private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.PaymentOptions, + com.google.maps.places.v1.Place.PaymentOptions.Builder, + com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> + paymentOptionsBuilder_; /** * * *
-     * Place serves dessert.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_dessert = 59; + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; * - * @return Whether the servesDessert field is set. + * @return Whether the paymentOptions field is set. */ - @java.lang.Override - public boolean hasServesDessert() { - return ((bitField1_ & 0x00040000) != 0); + public boolean hasPaymentOptions() { + return ((bitField1_ & 0x02000000) != 0); } /** * * *
-     * Place serves dessert.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_dessert = 59; + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; * - * @return The servesDessert. + * @return The paymentOptions. */ - @java.lang.Override - public boolean getServesDessert() { - return servesDessert_; + public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { + if (paymentOptionsBuilder_ == null) { + return paymentOptions_ == null + ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() + : paymentOptions_; + } else { + return paymentOptionsBuilder_.getMessage(); + } } /** * * *
-     * Place serves dessert.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_dessert = 59; - * - * @param value The servesDessert to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - public Builder setServesDessert(boolean value) { - - servesDessert_ = value; - bitField1_ |= 0x00040000; + public Builder setPaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { + if (paymentOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + paymentOptions_ = value; + } else { + paymentOptionsBuilder_.setMessage(value); + } + bitField1_ |= 0x02000000; onChanged(); return this; } @@ -32643,214 +37638,270 @@ public Builder setServesDessert(boolean value) { * * *
-     * Place serves dessert.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_dessert = 59; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - public Builder clearServesDessert() { - bitField1_ = (bitField1_ & ~0x00040000); - servesDessert_ = false; + public Builder setPaymentOptions( + com.google.maps.places.v1.Place.PaymentOptions.Builder builderForValue) { + if (paymentOptionsBuilder_ == null) { + paymentOptions_ = builderForValue.build(); + } else { + paymentOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x02000000; onChanged(); return this; } - private boolean servesCoffee_; - /** * * *
-     * Place serves coffee.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_coffee = 60; - * - * @return Whether the servesCoffee field is set. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - @java.lang.Override - public boolean hasServesCoffee() { - return ((bitField1_ & 0x00080000) != 0); + public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { + if (paymentOptionsBuilder_ == null) { + if (((bitField1_ & 0x02000000) != 0) + && paymentOptions_ != null + && paymentOptions_ + != com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance()) { + getPaymentOptionsBuilder().mergeFrom(value); + } else { + paymentOptions_ = value; + } + } else { + paymentOptionsBuilder_.mergeFrom(value); + } + if (paymentOptions_ != null) { + bitField1_ |= 0x02000000; + onChanged(); + } + return this; } /** * * *
-     * Place serves coffee.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_coffee = 60; - * - * @return The servesCoffee. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - @java.lang.Override - public boolean getServesCoffee() { - return servesCoffee_; + public Builder clearPaymentOptions() { + bitField1_ = (bitField1_ & ~0x02000000); + paymentOptions_ = null; + if (paymentOptionsBuilder_ != null) { + paymentOptionsBuilder_.dispose(); + paymentOptionsBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Place serves coffee.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_coffee = 60; - * - * @param value The servesCoffee to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - public Builder setServesCoffee(boolean value) { - - servesCoffee_ = value; - bitField1_ |= 0x00080000; + public com.google.maps.places.v1.Place.PaymentOptions.Builder getPaymentOptionsBuilder() { + bitField1_ |= 0x02000000; onChanged(); - return this; + return getPaymentOptionsFieldBuilder().getBuilder(); } /** * * *
-     * Place serves coffee.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool serves_coffee = 60; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - public Builder clearServesCoffee() { - bitField1_ = (bitField1_ & ~0x00080000); - servesCoffee_ = false; - onChanged(); - return this; + public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { + if (paymentOptionsBuilder_ != null) { + return paymentOptionsBuilder_.getMessageOrBuilder(); + } else { + return paymentOptions_ == null + ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() + : paymentOptions_; + } } - private boolean goodForChildren_; - /** * * *
-     * Place is good for children.
+     * Payment options the place accepts. If a payment option data is not
+     * available, the payment option field will be unset.
      * 
* - * optional bool good_for_children = 62; - * - * @return Whether the goodForChildren field is set. + * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; */ - @java.lang.Override - public boolean hasGoodForChildren() { - return ((bitField1_ & 0x00100000) != 0); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.PaymentOptions, + com.google.maps.places.v1.Place.PaymentOptions.Builder, + com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> + getPaymentOptionsFieldBuilder() { + if (paymentOptionsBuilder_ == null) { + paymentOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.PaymentOptions, + com.google.maps.places.v1.Place.PaymentOptions.Builder, + com.google.maps.places.v1.Place.PaymentOptionsOrBuilder>( + getPaymentOptions(), getParentForChildren(), isClean()); + paymentOptions_ = null; + } + return paymentOptionsBuilder_; } + private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ParkingOptions, + com.google.maps.places.v1.Place.ParkingOptions.Builder, + com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> + parkingOptionsBuilder_; + /** * * *
-     * Place is good for children.
+     * Options of parking provided by the place.
      * 
* - * optional bool good_for_children = 62; + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; * - * @return The goodForChildren. + * @return Whether the parkingOptions field is set. */ - @java.lang.Override - public boolean getGoodForChildren() { - return goodForChildren_; + public boolean hasParkingOptions() { + return ((bitField1_ & 0x04000000) != 0); } /** * * *
-     * Place is good for children.
+     * Options of parking provided by the place.
      * 
* - * optional bool good_for_children = 62; + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; * - * @param value The goodForChildren to set. - * @return This builder for chaining. + * @return The parkingOptions. */ - public Builder setGoodForChildren(boolean value) { - - goodForChildren_ = value; - bitField1_ |= 0x00100000; - onChanged(); - return this; + public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { + if (parkingOptionsBuilder_ == null) { + return parkingOptions_ == null + ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() + : parkingOptions_; + } else { + return parkingOptionsBuilder_.getMessage(); + } } /** * * *
-     * Place is good for children.
+     * Options of parking provided by the place.
      * 
* - * optional bool good_for_children = 62; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - public Builder clearGoodForChildren() { - bitField1_ = (bitField1_ & ~0x00100000); - goodForChildren_ = false; + public Builder setParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { + if (parkingOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parkingOptions_ = value; + } else { + parkingOptionsBuilder_.setMessage(value); + } + bitField1_ |= 0x04000000; onChanged(); return this; } - private boolean allowsDogs_; - /** * * *
-     * Place allows dogs.
+     * Options of parking provided by the place.
      * 
* - * optional bool allows_dogs = 63; - * - * @return Whether the allowsDogs field is set. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - @java.lang.Override - public boolean hasAllowsDogs() { - return ((bitField1_ & 0x00200000) != 0); + public Builder setParkingOptions( + com.google.maps.places.v1.Place.ParkingOptions.Builder builderForValue) { + if (parkingOptionsBuilder_ == null) { + parkingOptions_ = builderForValue.build(); + } else { + parkingOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; } /** * * *
-     * Place allows dogs.
+     * Options of parking provided by the place.
      * 
* - * optional bool allows_dogs = 63; - * - * @return The allowsDogs. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - @java.lang.Override - public boolean getAllowsDogs() { - return allowsDogs_; + public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { + if (parkingOptionsBuilder_ == null) { + if (((bitField1_ & 0x04000000) != 0) + && parkingOptions_ != null + && parkingOptions_ + != com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance()) { + getParkingOptionsBuilder().mergeFrom(value); + } else { + parkingOptions_ = value; + } + } else { + parkingOptionsBuilder_.mergeFrom(value); + } + if (parkingOptions_ != null) { + bitField1_ |= 0x04000000; + onChanged(); + } + return this; } /** * * *
-     * Place allows dogs.
+     * Options of parking provided by the place.
      * 
* - * optional bool allows_dogs = 63; - * - * @param value The allowsDogs to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - public Builder setAllowsDogs(boolean value) { - - allowsDogs_ = value; - bitField1_ |= 0x00200000; + public Builder clearParkingOptions() { + bitField1_ = (bitField1_ & ~0x04000000); + parkingOptions_ = null; + if (parkingOptionsBuilder_ != null) { + parkingOptionsBuilder_.dispose(); + parkingOptionsBuilder_ = null; + } onChanged(); return this; } @@ -32859,143 +37910,152 @@ public Builder setAllowsDogs(boolean value) { * * *
-     * Place allows dogs.
+     * Options of parking provided by the place.
      * 
* - * optional bool allows_dogs = 63; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - public Builder clearAllowsDogs() { - bitField1_ = (bitField1_ & ~0x00200000); - allowsDogs_ = false; + public com.google.maps.places.v1.Place.ParkingOptions.Builder getParkingOptionsBuilder() { + bitField1_ |= 0x04000000; onChanged(); - return this; + return getParkingOptionsFieldBuilder().getBuilder(); } - private boolean restroom_; - /** * * *
-     * Place has restroom.
+     * Options of parking provided by the place.
      * 
* - * optional bool restroom = 64; - * - * @return Whether the restroom field is set. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - @java.lang.Override - public boolean hasRestroom() { - return ((bitField1_ & 0x00400000) != 0); + public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { + if (parkingOptionsBuilder_ != null) { + return parkingOptionsBuilder_.getMessageOrBuilder(); + } else { + return parkingOptions_ == null + ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() + : parkingOptions_; + } } /** * * *
-     * Place has restroom.
+     * Options of parking provided by the place.
      * 
* - * optional bool restroom = 64; - * - * @return The restroom. + * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; */ - @java.lang.Override - public boolean getRestroom() { - return restroom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ParkingOptions, + com.google.maps.places.v1.Place.ParkingOptions.Builder, + com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> + getParkingOptionsFieldBuilder() { + if (parkingOptionsBuilder_ == null) { + parkingOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ParkingOptions, + com.google.maps.places.v1.Place.ParkingOptions.Builder, + com.google.maps.places.v1.Place.ParkingOptionsOrBuilder>( + getParkingOptions(), getParentForChildren(), isClean()); + parkingOptions_ = null; + } + return parkingOptionsBuilder_; } - /** - * - * - *
-     * Place has restroom.
-     * 
- * - * optional bool restroom = 64; - * - * @param value The restroom to set. - * @return This builder for chaining. - */ - public Builder setRestroom(boolean value) { + private java.util.List subDestinations_ = + java.util.Collections.emptyList(); - restroom_ = value; - bitField1_ |= 0x00400000; - onChanged(); - return this; + private void ensureSubDestinationsIsMutable() { + if (!((bitField1_ & 0x08000000) != 0)) { + subDestinations_ = + new java.util.ArrayList( + subDestinations_); + bitField1_ |= 0x08000000; + } } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.SubDestination, + com.google.maps.places.v1.Place.SubDestination.Builder, + com.google.maps.places.v1.Place.SubDestinationOrBuilder> + subDestinationsBuilder_; + /** * * *
-     * Place has restroom.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool restroom = 64; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder clearRestroom() { - bitField1_ = (bitField1_ & ~0x00400000); - restroom_ = false; - onChanged(); - return this; + public java.util.List getSubDestinationsList() { + if (subDestinationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subDestinations_); + } else { + return subDestinationsBuilder_.getMessageList(); + } } - private boolean goodForGroups_; - /** * * *
-     * Place accommodates groups.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_groups = 65; - * - * @return Whether the goodForGroups field is set. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - @java.lang.Override - public boolean hasGoodForGroups() { - return ((bitField1_ & 0x00800000) != 0); + public int getSubDestinationsCount() { + if (subDestinationsBuilder_ == null) { + return subDestinations_.size(); + } else { + return subDestinationsBuilder_.getCount(); + } } /** * * *
-     * Place accommodates groups.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_groups = 65; - * - * @return The goodForGroups. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - @java.lang.Override - public boolean getGoodForGroups() { - return goodForGroups_; + public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { + if (subDestinationsBuilder_ == null) { + return subDestinations_.get(index); + } else { + return subDestinationsBuilder_.getMessage(index); + } } /** * * *
-     * Place accommodates groups.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_groups = 65; - * - * @param value The goodForGroups to set. - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder setGoodForGroups(boolean value) { - - goodForGroups_ = value; - bitField1_ |= 0x00800000; - onChanged(); + public Builder setSubDestinations( + int index, com.google.maps.places.v1.Place.SubDestination value) { + if (subDestinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubDestinationsIsMutable(); + subDestinations_.set(index, value); + onChanged(); + } else { + subDestinationsBuilder_.setMessage(index, value); + } return this; } @@ -33003,71 +38063,88 @@ public Builder setGoodForGroups(boolean value) { * * *
-     * Place accommodates groups.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_groups = 65; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder clearGoodForGroups() { - bitField1_ = (bitField1_ & ~0x00800000); - goodForGroups_ = false; - onChanged(); + public Builder setSubDestinations( + int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { + if (subDestinationsBuilder_ == null) { + ensureSubDestinationsIsMutable(); + subDestinations_.set(index, builderForValue.build()); + onChanged(); + } else { + subDestinationsBuilder_.setMessage(index, builderForValue.build()); + } return this; } - private boolean goodForWatchingSports_; - /** * * *
-     * Place is suitable for watching sports.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_watching_sports = 66; - * - * @return Whether the goodForWatchingSports field is set. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - @java.lang.Override - public boolean hasGoodForWatchingSports() { - return ((bitField1_ & 0x01000000) != 0); + public Builder addSubDestinations(com.google.maps.places.v1.Place.SubDestination value) { + if (subDestinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubDestinationsIsMutable(); + subDestinations_.add(value); + onChanged(); + } else { + subDestinationsBuilder_.addMessage(value); + } + return this; } /** * * *
-     * Place is suitable for watching sports.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_watching_sports = 66; - * - * @return The goodForWatchingSports. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - @java.lang.Override - public boolean getGoodForWatchingSports() { - return goodForWatchingSports_; + public Builder addSubDestinations( + int index, com.google.maps.places.v1.Place.SubDestination value) { + if (subDestinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubDestinationsIsMutable(); + subDestinations_.add(index, value); + onChanged(); + } else { + subDestinationsBuilder_.addMessage(index, value); + } + return this; } /** * * *
-     * Place is suitable for watching sports.
+     * A list of sub-destinations related to the place.
      * 
- * - * optional bool good_for_watching_sports = 66; - * - * @param value The goodForWatchingSports to set. - * @return This builder for chaining. - */ - public Builder setGoodForWatchingSports(boolean value) { - - goodForWatchingSports_ = value; - bitField1_ |= 0x01000000; - onChanged(); + * + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + */ + public Builder addSubDestinations( + com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { + if (subDestinationsBuilder_ == null) { + ensureSubDestinationsIsMutable(); + subDestinations_.add(builderForValue.build()); + onChanged(); + } else { + subDestinationsBuilder_.addMessage(builderForValue.build()); + } return this; } @@ -33075,86 +38152,81 @@ public Builder setGoodForWatchingSports(boolean value) { * * *
-     * Place is suitable for watching sports.
+     * A list of sub-destinations related to the place.
      * 
* - * optional bool good_for_watching_sports = 66; - * - * @return This builder for chaining. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder clearGoodForWatchingSports() { - bitField1_ = (bitField1_ & ~0x01000000); - goodForWatchingSports_ = false; - onChanged(); + public Builder addSubDestinations( + int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { + if (subDestinationsBuilder_ == null) { + ensureSubDestinationsIsMutable(); + subDestinations_.add(index, builderForValue.build()); + onChanged(); + } else { + subDestinationsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - private com.google.maps.places.v1.Place.PaymentOptions paymentOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PaymentOptions, - com.google.maps.places.v1.Place.PaymentOptions.Builder, - com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> - paymentOptionsBuilder_; - /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; - * - * @return Whether the paymentOptions field is set. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public boolean hasPaymentOptions() { - return ((bitField1_ & 0x02000000) != 0); + public Builder addAllSubDestinations( + java.lang.Iterable values) { + if (subDestinationsBuilder_ == null) { + ensureSubDestinationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subDestinations_); + onChanged(); + } else { + subDestinationsBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; - * - * @return The paymentOptions. + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public com.google.maps.places.v1.Place.PaymentOptions getPaymentOptions() { - if (paymentOptionsBuilder_ == null) { - return paymentOptions_ == null - ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() - : paymentOptions_; + public Builder clearSubDestinations() { + if (subDestinationsBuilder_ == null) { + subDestinations_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x08000000); + onChanged(); } else { - return paymentOptionsBuilder_.getMessage(); + subDestinationsBuilder_.clear(); } + return this; } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder setPaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { - if (paymentOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paymentOptions_ = value; + public Builder removeSubDestinations(int index) { + if (subDestinationsBuilder_ == null) { + ensureSubDestinationsIsMutable(); + subDestinations_.remove(index); + onChanged(); } else { - paymentOptionsBuilder_.setMessage(value); + subDestinationsBuilder_.remove(index); } - bitField1_ |= 0x02000000; - onChanged(); return this; } @@ -33162,178 +38234,157 @@ public Builder setPaymentOptions(com.google.maps.places.v1.Place.PaymentOptions * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder setPaymentOptions( - com.google.maps.places.v1.Place.PaymentOptions.Builder builderForValue) { - if (paymentOptionsBuilder_ == null) { - paymentOptions_ = builderForValue.build(); - } else { - paymentOptionsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x02000000; - onChanged(); - return this; + public com.google.maps.places.v1.Place.SubDestination.Builder getSubDestinationsBuilder( + int index) { + return getSubDestinationsFieldBuilder().getBuilder(index); } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder mergePaymentOptions(com.google.maps.places.v1.Place.PaymentOptions value) { - if (paymentOptionsBuilder_ == null) { - if (((bitField1_ & 0x02000000) != 0) - && paymentOptions_ != null - && paymentOptions_ - != com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance()) { - getPaymentOptionsBuilder().mergeFrom(value); - } else { - paymentOptions_ = value; - } + public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( + int index) { + if (subDestinationsBuilder_ == null) { + return subDestinations_.get(index); } else { - paymentOptionsBuilder_.mergeFrom(value); - } - if (paymentOptions_ != null) { - bitField1_ |= 0x02000000; - onChanged(); + return subDestinationsBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public Builder clearPaymentOptions() { - bitField1_ = (bitField1_ & ~0x02000000); - paymentOptions_ = null; - if (paymentOptionsBuilder_ != null) { - paymentOptionsBuilder_.dispose(); - paymentOptionsBuilder_ = null; + public java.util.List + getSubDestinationsOrBuilderList() { + if (subDestinationsBuilder_ != null) { + return subDestinationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subDestinations_); } - onChanged(); - return this; } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public com.google.maps.places.v1.Place.PaymentOptions.Builder getPaymentOptionsBuilder() { - bitField1_ |= 0x02000000; - onChanged(); - return getPaymentOptionsFieldBuilder().getBuilder(); + public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder() { + return getSubDestinationsFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - public com.google.maps.places.v1.Place.PaymentOptionsOrBuilder getPaymentOptionsOrBuilder() { - if (paymentOptionsBuilder_ != null) { - return paymentOptionsBuilder_.getMessageOrBuilder(); - } else { - return paymentOptions_ == null - ? com.google.maps.places.v1.Place.PaymentOptions.getDefaultInstance() - : paymentOptions_; - } + public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder( + int index) { + return getSubDestinationsFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); } /** * * *
-     * Payment options the place accepts. If a payment option data is not
-     * available, the payment option field will be unset.
+     * A list of sub-destinations related to the place.
      * 
* - * .google.maps.places.v1.Place.PaymentOptions payment_options = 67; + * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PaymentOptions, - com.google.maps.places.v1.Place.PaymentOptions.Builder, - com.google.maps.places.v1.Place.PaymentOptionsOrBuilder> - getPaymentOptionsFieldBuilder() { - if (paymentOptionsBuilder_ == null) { - paymentOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.PaymentOptions, - com.google.maps.places.v1.Place.PaymentOptions.Builder, - com.google.maps.places.v1.Place.PaymentOptionsOrBuilder>( - getPaymentOptions(), getParentForChildren(), isClean()); - paymentOptions_ = null; + public java.util.List + getSubDestinationsBuilderList() { + return getSubDestinationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.SubDestination, + com.google.maps.places.v1.Place.SubDestination.Builder, + com.google.maps.places.v1.Place.SubDestinationOrBuilder> + getSubDestinationsFieldBuilder() { + if (subDestinationsBuilder_ == null) { + subDestinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.SubDestination, + com.google.maps.places.v1.Place.SubDestination.Builder, + com.google.maps.places.v1.Place.SubDestinationOrBuilder>( + subDestinations_, + ((bitField1_ & 0x08000000) != 0), + getParentForChildren(), + isClean()); + subDestinations_ = null; } - return paymentOptionsBuilder_; + return subDestinationsBuilder_; } - private com.google.maps.places.v1.Place.ParkingOptions parkingOptions_; + private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.ParkingOptions, - com.google.maps.places.v1.Place.ParkingOptions.Builder, - com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> - parkingOptionsBuilder_; + com.google.maps.places.v1.Place.AccessibilityOptions, + com.google.maps.places.v1.Place.AccessibilityOptions.Builder, + com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> + accessibilityOptionsBuilder_; /** * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * * - * @return Whether the parkingOptions field is set. + * @return Whether the accessibilityOptions field is set. */ - public boolean hasParkingOptions() { - return ((bitField1_ & 0x04000000) != 0); + public boolean hasAccessibilityOptions() { + return ((bitField1_ & 0x10000000) != 0); } /** * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * * - * @return The parkingOptions. + * @return The accessibilityOptions. */ - public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { - if (parkingOptionsBuilder_ == null) { - return parkingOptions_ == null - ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() - : parkingOptions_; + public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { + if (accessibilityOptionsBuilder_ == null) { + return accessibilityOptions_ == null + ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() + : accessibilityOptions_; } else { - return parkingOptionsBuilder_.getMessage(); + return accessibilityOptionsBuilder_.getMessage(); } } @@ -33341,21 +38392,23 @@ public com.google.maps.places.v1.Place.ParkingOptions getParkingOptions() { * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public Builder setParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { - if (parkingOptionsBuilder_ == null) { + public Builder setAccessibilityOptions( + com.google.maps.places.v1.Place.AccessibilityOptions value) { + if (accessibilityOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - parkingOptions_ = value; + accessibilityOptions_ = value; } else { - parkingOptionsBuilder_.setMessage(value); + accessibilityOptionsBuilder_.setMessage(value); } - bitField1_ |= 0x04000000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -33364,19 +38417,20 @@ public Builder setParkingOptions(com.google.maps.places.v1.Place.ParkingOptions * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public Builder setParkingOptions( - com.google.maps.places.v1.Place.ParkingOptions.Builder builderForValue) { - if (parkingOptionsBuilder_ == null) { - parkingOptions_ = builderForValue.build(); + public Builder setAccessibilityOptions( + com.google.maps.places.v1.Place.AccessibilityOptions.Builder builderForValue) { + if (accessibilityOptionsBuilder_ == null) { + accessibilityOptions_ = builderForValue.build(); } else { - parkingOptionsBuilder_.setMessage(builderForValue.build()); + accessibilityOptionsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x04000000; + bitField1_ |= 0x10000000; onChanged(); return this; } @@ -33385,26 +38439,28 @@ public Builder setParkingOptions( * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOptions value) { - if (parkingOptionsBuilder_ == null) { - if (((bitField1_ & 0x04000000) != 0) - && parkingOptions_ != null - && parkingOptions_ - != com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance()) { - getParkingOptionsBuilder().mergeFrom(value); + public Builder mergeAccessibilityOptions( + com.google.maps.places.v1.Place.AccessibilityOptions value) { + if (accessibilityOptionsBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) + && accessibilityOptions_ != null + && accessibilityOptions_ + != com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance()) { + getAccessibilityOptionsBuilder().mergeFrom(value); } else { - parkingOptions_ = value; + accessibilityOptions_ = value; } } else { - parkingOptionsBuilder_.mergeFrom(value); + accessibilityOptionsBuilder_.mergeFrom(value); } - if (parkingOptions_ != null) { - bitField1_ |= 0x04000000; + if (accessibilityOptions_ != null) { + bitField1_ |= 0x10000000; onChanged(); } return this; @@ -33414,17 +38470,18 @@ public Builder mergeParkingOptions(com.google.maps.places.v1.Place.ParkingOption * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public Builder clearParkingOptions() { - bitField1_ = (bitField1_ & ~0x04000000); - parkingOptions_ = null; - if (parkingOptionsBuilder_ != null) { - parkingOptionsBuilder_.dispose(); - parkingOptionsBuilder_ = null; + public Builder clearAccessibilityOptions() { + bitField1_ = (bitField1_ & ~0x10000000); + accessibilityOptions_ = null; + if (accessibilityOptionsBuilder_ != null) { + accessibilityOptionsBuilder_.dispose(); + accessibilityOptionsBuilder_ = null; } onChanged(); return this; @@ -33434,33 +38491,37 @@ public Builder clearParkingOptions() { * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public com.google.maps.places.v1.Place.ParkingOptions.Builder getParkingOptionsBuilder() { - bitField1_ |= 0x04000000; + public com.google.maps.places.v1.Place.AccessibilityOptions.Builder + getAccessibilityOptionsBuilder() { + bitField1_ |= 0x10000000; onChanged(); - return getParkingOptionsFieldBuilder().getBuilder(); + return getAccessibilityOptionsFieldBuilder().getBuilder(); } /** * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ - public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptionsOrBuilder() { - if (parkingOptionsBuilder_ != null) { - return parkingOptionsBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder + getAccessibilityOptionsOrBuilder() { + if (accessibilityOptionsBuilder_ != null) { + return accessibilityOptionsBuilder_.getMessageOrBuilder(); } else { - return parkingOptions_ == null - ? com.google.maps.places.v1.Place.ParkingOptions.getDefaultInstance() - : parkingOptions_; + return accessibilityOptions_ == null + ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() + : accessibilityOptions_; } } @@ -33468,77 +38529,71 @@ public com.google.maps.places.v1.Place.ParkingOptionsOrBuilder getParkingOptions * * *
-     * Options of parking provided by the place.
+     * Information about the accessibility options a place offers.
      * 
* - * .google.maps.places.v1.Place.ParkingOptions parking_options = 70; + * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.ParkingOptions, - com.google.maps.places.v1.Place.ParkingOptions.Builder, - com.google.maps.places.v1.Place.ParkingOptionsOrBuilder> - getParkingOptionsFieldBuilder() { - if (parkingOptionsBuilder_ == null) { - parkingOptionsBuilder_ = + com.google.maps.places.v1.Place.AccessibilityOptions, + com.google.maps.places.v1.Place.AccessibilityOptions.Builder, + com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> + getAccessibilityOptionsFieldBuilder() { + if (accessibilityOptionsBuilder_ == null) { + accessibilityOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.ParkingOptions, - com.google.maps.places.v1.Place.ParkingOptions.Builder, - com.google.maps.places.v1.Place.ParkingOptionsOrBuilder>( - getParkingOptions(), getParentForChildren(), isClean()); - parkingOptions_ = null; - } - return parkingOptionsBuilder_; - } - - private java.util.List subDestinations_ = - java.util.Collections.emptyList(); - - private void ensureSubDestinationsIsMutable() { - if (!((bitField1_ & 0x08000000) != 0)) { - subDestinations_ = - new java.util.ArrayList( - subDestinations_); - bitField1_ |= 0x08000000; + com.google.maps.places.v1.Place.AccessibilityOptions, + com.google.maps.places.v1.Place.AccessibilityOptions.Builder, + com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder>( + getAccessibilityOptions(), getParentForChildren(), isClean()); + accessibilityOptions_ = null; } + return accessibilityOptionsBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.SubDestination, - com.google.maps.places.v1.Place.SubDestination.Builder, - com.google.maps.places.v1.Place.SubDestinationOrBuilder> - subDestinationsBuilder_; + private com.google.maps.places.v1.FuelOptions fuelOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.FuelOptions, + com.google.maps.places.v1.FuelOptions.Builder, + com.google.maps.places.v1.FuelOptionsOrBuilder> + fuelOptionsBuilder_; /** * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; + * + * @return Whether the fuelOptions field is set. */ - public java.util.List getSubDestinationsList() { - if (subDestinationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subDestinations_); - } else { - return subDestinationsBuilder_.getMessageList(); - } + public boolean hasFuelOptions() { + return ((bitField1_ & 0x20000000) != 0); } /** * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; + * + * @return The fuelOptions. */ - public int getSubDestinationsCount() { - if (subDestinationsBuilder_ == null) { - return subDestinations_.size(); + public com.google.maps.places.v1.FuelOptions getFuelOptions() { + if (fuelOptionsBuilder_ == null) { + return fuelOptions_ == null + ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() + : fuelOptions_; } else { - return subDestinationsBuilder_.getCount(); + return fuelOptionsBuilder_.getMessage(); } } @@ -33546,40 +38601,44 @@ public int getSubDestinationsCount() { * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public com.google.maps.places.v1.Place.SubDestination getSubDestinations(int index) { - if (subDestinationsBuilder_ == null) { - return subDestinations_.get(index); + public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions value) { + if (fuelOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fuelOptions_ = value; } else { - return subDestinationsBuilder_.getMessage(index); + fuelOptionsBuilder_.setMessage(value); } + bitField1_ |= 0x20000000; + onChanged(); + return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder setSubDestinations( - int index, com.google.maps.places.v1.Place.SubDestination value) { - if (subDestinationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubDestinationsIsMutable(); - subDestinations_.set(index, value); - onChanged(); + public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder builderForValue) { + if (fuelOptionsBuilder_ == null) { + fuelOptions_ = builderForValue.build(); } else { - subDestinationsBuilder_.setMessage(index, value); + fuelOptionsBuilder_.setMessage(builderForValue.build()); } + bitField1_ |= 0x20000000; + onChanged(); return this; } @@ -33587,19 +38646,27 @@ public Builder setSubDestinations( * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder setSubDestinations( - int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { - if (subDestinationsBuilder_ == null) { - ensureSubDestinationsIsMutable(); - subDestinations_.set(index, builderForValue.build()); - onChanged(); + public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { + if (fuelOptionsBuilder_ == null) { + if (((bitField1_ & 0x20000000) != 0) + && fuelOptions_ != null + && fuelOptions_ != com.google.maps.places.v1.FuelOptions.getDefaultInstance()) { + getFuelOptionsBuilder().mergeFrom(value); + } else { + fuelOptions_ = value; + } } else { - subDestinationsBuilder_.setMessage(index, builderForValue.build()); + fuelOptionsBuilder_.mergeFrom(value); + } + if (fuelOptions_ != null) { + bitField1_ |= 0x20000000; + onChanged(); } return this; } @@ -33608,22 +38675,20 @@ public Builder setSubDestinations( * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder addSubDestinations(com.google.maps.places.v1.Place.SubDestination value) { - if (subDestinationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubDestinationsIsMutable(); - subDestinations_.add(value); - onChanged(); - } else { - subDestinationsBuilder_.addMessage(value); + public Builder clearFuelOptions() { + bitField1_ = (bitField1_ & ~0x20000000); + fuelOptions_ = null; + if (fuelOptionsBuilder_ != null) { + fuelOptionsBuilder_.dispose(); + fuelOptionsBuilder_ = null; } + onChanged(); return this; } @@ -33631,126 +38696,128 @@ public Builder addSubDestinations(com.google.maps.places.v1.Place.SubDestination * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder addSubDestinations( - int index, com.google.maps.places.v1.Place.SubDestination value) { - if (subDestinationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubDestinationsIsMutable(); - subDestinations_.add(index, value); - onChanged(); - } else { - subDestinationsBuilder_.addMessage(index, value); - } - return this; + public com.google.maps.places.v1.FuelOptions.Builder getFuelOptionsBuilder() { + bitField1_ |= 0x20000000; + onChanged(); + return getFuelOptionsFieldBuilder().getBuilder(); } /** * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder addSubDestinations( - com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { - if (subDestinationsBuilder_ == null) { - ensureSubDestinationsIsMutable(); - subDestinations_.add(builderForValue.build()); - onChanged(); + public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { + if (fuelOptionsBuilder_ != null) { + return fuelOptionsBuilder_.getMessageOrBuilder(); } else { - subDestinationsBuilder_.addMessage(builderForValue.build()); + return fuelOptions_ == null + ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() + : fuelOptions_; } - return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * The most recent information about fuel options in a gas station. This
+     * information is updated regularly.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.FuelOptions fuel_options = 78; */ - public Builder addSubDestinations( - int index, com.google.maps.places.v1.Place.SubDestination.Builder builderForValue) { - if (subDestinationsBuilder_ == null) { - ensureSubDestinationsIsMutable(); - subDestinations_.add(index, builderForValue.build()); - onChanged(); - } else { - subDestinationsBuilder_.addMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.FuelOptions, + com.google.maps.places.v1.FuelOptions.Builder, + com.google.maps.places.v1.FuelOptionsOrBuilder> + getFuelOptionsFieldBuilder() { + if (fuelOptionsBuilder_ == null) { + fuelOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.FuelOptions, + com.google.maps.places.v1.FuelOptions.Builder, + com.google.maps.places.v1.FuelOptionsOrBuilder>( + getFuelOptions(), getParentForChildren(), isClean()); + fuelOptions_ = null; } - return this; + return fuelOptionsBuilder_; } + private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.EVChargeOptions, + com.google.maps.places.v1.EVChargeOptions.Builder, + com.google.maps.places.v1.EVChargeOptionsOrBuilder> + evChargeOptionsBuilder_; + /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * + * @return Whether the evChargeOptions field is set. */ - public Builder addAllSubDestinations( - java.lang.Iterable values) { - if (subDestinationsBuilder_ == null) { - ensureSubDestinationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subDestinations_); - onChanged(); - } else { - subDestinationsBuilder_.addAllMessages(values); - } - return this; + public boolean hasEvChargeOptions() { + return ((bitField1_ & 0x40000000) != 0); } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * + * @return The evChargeOptions. */ - public Builder clearSubDestinations() { - if (subDestinationsBuilder_ == null) { - subDestinations_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x08000000); - onChanged(); + public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { + if (evChargeOptionsBuilder_ == null) { + return evChargeOptions_ == null + ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() + : evChargeOptions_; } else { - subDestinationsBuilder_.clear(); + return evChargeOptionsBuilder_.getMessage(); } - return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public Builder removeSubDestinations(int index) { - if (subDestinationsBuilder_ == null) { - ensureSubDestinationsIsMutable(); - subDestinations_.remove(index); - onChanged(); + public Builder setEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { + if (evChargeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evChargeOptions_ = value; } else { - subDestinationsBuilder_.remove(index); + evChargeOptionsBuilder_.setMessage(value); } + bitField1_ |= 0x40000000; + onChanged(); return this; } @@ -33758,157 +38825,171 @@ public Builder removeSubDestinations(int index) { * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public com.google.maps.places.v1.Place.SubDestination.Builder getSubDestinationsBuilder( - int index) { - return getSubDestinationsFieldBuilder().getBuilder(index); + public Builder setEvChargeOptions( + com.google.maps.places.v1.EVChargeOptions.Builder builderForValue) { + if (evChargeOptionsBuilder_ == null) { + evChargeOptions_ = builderForValue.build(); + } else { + evChargeOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x40000000; + onChanged(); + return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public com.google.maps.places.v1.Place.SubDestinationOrBuilder getSubDestinationsOrBuilder( - int index) { - if (subDestinationsBuilder_ == null) { - return subDestinations_.get(index); + public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { + if (evChargeOptionsBuilder_ == null) { + if (((bitField1_ & 0x40000000) != 0) + && evChargeOptions_ != null + && evChargeOptions_ != com.google.maps.places.v1.EVChargeOptions.getDefaultInstance()) { + getEvChargeOptionsBuilder().mergeFrom(value); + } else { + evChargeOptions_ = value; + } } else { - return subDestinationsBuilder_.getMessageOrBuilder(index); + evChargeOptionsBuilder_.mergeFrom(value); + } + if (evChargeOptions_ != null) { + bitField1_ |= 0x40000000; + onChanged(); } + return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public java.util.List - getSubDestinationsOrBuilderList() { - if (subDestinationsBuilder_ != null) { - return subDestinationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subDestinations_); + public Builder clearEvChargeOptions() { + bitField1_ = (bitField1_ & ~0x40000000); + evChargeOptions_ = null; + if (evChargeOptionsBuilder_ != null) { + evChargeOptionsBuilder_.dispose(); + evChargeOptionsBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder() { - return getSubDestinationsFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); + public com.google.maps.places.v1.EVChargeOptions.Builder getEvChargeOptionsBuilder() { + bitField1_ |= 0x40000000; + onChanged(); + return getEvChargeOptionsFieldBuilder().getBuilder(); } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public com.google.maps.places.v1.Place.SubDestination.Builder addSubDestinationsBuilder( - int index) { - return getSubDestinationsFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.SubDestination.getDefaultInstance()); + public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { + if (evChargeOptionsBuilder_ != null) { + return evChargeOptionsBuilder_.getMessageOrBuilder(); + } else { + return evChargeOptions_ == null + ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() + : evChargeOptions_; + } } /** * * *
-     * A list of sub destinations related to the place.
+     * Information of ev charging options.
      * 
* - * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; + * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; */ - public java.util.List - getSubDestinationsBuilderList() { - return getSubDestinationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.SubDestination, - com.google.maps.places.v1.Place.SubDestination.Builder, - com.google.maps.places.v1.Place.SubDestinationOrBuilder> - getSubDestinationsFieldBuilder() { - if (subDestinationsBuilder_ == null) { - subDestinationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.SubDestination, - com.google.maps.places.v1.Place.SubDestination.Builder, - com.google.maps.places.v1.Place.SubDestinationOrBuilder>( - subDestinations_, - ((bitField1_ & 0x08000000) != 0), - getParentForChildren(), - isClean()); - subDestinations_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.EVChargeOptions, + com.google.maps.places.v1.EVChargeOptions.Builder, + com.google.maps.places.v1.EVChargeOptionsOrBuilder> + getEvChargeOptionsFieldBuilder() { + if (evChargeOptionsBuilder_ == null) { + evChargeOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.EVChargeOptions, + com.google.maps.places.v1.EVChargeOptions.Builder, + com.google.maps.places.v1.EVChargeOptionsOrBuilder>( + getEvChargeOptions(), getParentForChildren(), isClean()); + evChargeOptions_ = null; } - return subDestinationsBuilder_; + return evChargeOptionsBuilder_; } - private com.google.maps.places.v1.Place.AccessibilityOptions accessibilityOptions_; + private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AccessibilityOptions, - com.google.maps.places.v1.Place.AccessibilityOptions.Builder, - com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> - accessibilityOptionsBuilder_; + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> + generativeSummaryBuilder_; /** * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; * - * @return Whether the accessibilityOptions field is set. + * @return Whether the generativeSummary field is set. */ - public boolean hasAccessibilityOptions() { - return ((bitField1_ & 0x10000000) != 0); + public boolean hasGenerativeSummary() { + return ((bitField1_ & 0x80000000) != 0); } /** * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; * - * @return The accessibilityOptions. + * @return The generativeSummary. */ - public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOptions() { - if (accessibilityOptionsBuilder_ == null) { - return accessibilityOptions_ == null - ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() - : accessibilityOptions_; + public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { + if (generativeSummaryBuilder_ == null) { + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; } else { - return accessibilityOptionsBuilder_.getMessage(); + return generativeSummaryBuilder_.getMessage(); } } @@ -33916,23 +38997,21 @@ public com.google.maps.places.v1.Place.AccessibilityOptions getAccessibilityOpti * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public Builder setAccessibilityOptions( - com.google.maps.places.v1.Place.AccessibilityOptions value) { - if (accessibilityOptionsBuilder_ == null) { + public Builder setGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { + if (generativeSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - accessibilityOptions_ = value; + generativeSummary_ = value; } else { - accessibilityOptionsBuilder_.setMessage(value); + generativeSummaryBuilder_.setMessage(value); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -33941,20 +39020,19 @@ public Builder setAccessibilityOptions( * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public Builder setAccessibilityOptions( - com.google.maps.places.v1.Place.AccessibilityOptions.Builder builderForValue) { - if (accessibilityOptionsBuilder_ == null) { - accessibilityOptions_ = builderForValue.build(); + public Builder setGenerativeSummary( + com.google.maps.places.v1.Place.GenerativeSummary.Builder builderForValue) { + if (generativeSummaryBuilder_ == null) { + generativeSummary_ = builderForValue.build(); } else { - accessibilityOptionsBuilder_.setMessage(builderForValue.build()); + generativeSummaryBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x10000000; + bitField1_ |= 0x80000000; onChanged(); return this; } @@ -33963,28 +39041,26 @@ public Builder setAccessibilityOptions( * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public Builder mergeAccessibilityOptions( - com.google.maps.places.v1.Place.AccessibilityOptions value) { - if (accessibilityOptionsBuilder_ == null) { - if (((bitField1_ & 0x10000000) != 0) - && accessibilityOptions_ != null - && accessibilityOptions_ - != com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance()) { - getAccessibilityOptionsBuilder().mergeFrom(value); + public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { + if (generativeSummaryBuilder_ == null) { + if (((bitField1_ & 0x80000000) != 0) + && generativeSummary_ != null + && generativeSummary_ + != com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance()) { + getGenerativeSummaryBuilder().mergeFrom(value); } else { - accessibilityOptions_ = value; + generativeSummary_ = value; } } else { - accessibilityOptionsBuilder_.mergeFrom(value); + generativeSummaryBuilder_.mergeFrom(value); } - if (accessibilityOptions_ != null) { - bitField1_ |= 0x10000000; + if (generativeSummary_ != null) { + bitField1_ |= 0x80000000; onChanged(); } return this; @@ -33994,18 +39070,17 @@ public Builder mergeAccessibilityOptions( * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public Builder clearAccessibilityOptions() { - bitField1_ = (bitField1_ & ~0x10000000); - accessibilityOptions_ = null; - if (accessibilityOptionsBuilder_ != null) { - accessibilityOptionsBuilder_.dispose(); - accessibilityOptionsBuilder_ = null; + public Builder clearGenerativeSummary() { + bitField1_ = (bitField1_ & ~0x80000000); + generativeSummary_ = null; + if (generativeSummaryBuilder_ != null) { + generativeSummaryBuilder_.dispose(); + generativeSummaryBuilder_ = null; } onChanged(); return this; @@ -34015,37 +39090,34 @@ public Builder clearAccessibilityOptions() { * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public com.google.maps.places.v1.Place.AccessibilityOptions.Builder - getAccessibilityOptionsBuilder() { - bitField1_ |= 0x10000000; + public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSummaryBuilder() { + bitField1_ |= 0x80000000; onChanged(); - return getAccessibilityOptionsFieldBuilder().getBuilder(); + return getGenerativeSummaryFieldBuilder().getBuilder(); } /** * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ - public com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder - getAccessibilityOptionsOrBuilder() { - if (accessibilityOptionsBuilder_ != null) { - return accessibilityOptionsBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder + getGenerativeSummaryOrBuilder() { + if (generativeSummaryBuilder_ != null) { + return generativeSummaryBuilder_.getMessageOrBuilder(); } else { - return accessibilityOptions_ == null - ? com.google.maps.places.v1.Place.AccessibilityOptions.getDefaultInstance() - : accessibilityOptions_; + return generativeSummary_ == null + ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() + : generativeSummary_; } } @@ -34053,95 +39125,163 @@ public Builder clearAccessibilityOptions() { * * *
-     * Information about the accessibility options a place offers.
+     * AI-generated summary of the place.
      * 
* - * optional .google.maps.places.v1.Place.AccessibilityOptions accessibility_options = 72; - * + * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AccessibilityOptions, - com.google.maps.places.v1.Place.AccessibilityOptions.Builder, - com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder> - getAccessibilityOptionsFieldBuilder() { - if (accessibilityOptionsBuilder_ == null) { - accessibilityOptionsBuilder_ = + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> + getGenerativeSummaryFieldBuilder() { + if (generativeSummaryBuilder_ == null) { + generativeSummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AccessibilityOptions, - com.google.maps.places.v1.Place.AccessibilityOptions.Builder, - com.google.maps.places.v1.Place.AccessibilityOptionsOrBuilder>( - getAccessibilityOptions(), getParentForChildren(), isClean()); - accessibilityOptions_ = null; + com.google.maps.places.v1.Place.GenerativeSummary, + com.google.maps.places.v1.Place.GenerativeSummary.Builder, + com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder>( + getGenerativeSummary(), getParentForChildren(), isClean()); + generativeSummary_ = null; + } + return generativeSummaryBuilder_; + } + + private java.util.List containingPlaces_ = + java.util.Collections.emptyList(); + + private void ensureContainingPlacesIsMutable() { + if (!((bitField2_ & 0x00000001) != 0)) { + containingPlaces_ = + new java.util.ArrayList( + containingPlaces_); + bitField2_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.ContainingPlace, + com.google.maps.places.v1.Place.ContainingPlace.Builder, + com.google.maps.places.v1.Place.ContainingPlaceOrBuilder> + containingPlacesBuilder_; + + /** + * + * + *
+     * List of places in which the current place is located.
+     * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + public java.util.List + getContainingPlacesList() { + if (containingPlacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(containingPlaces_); + } else { + return containingPlacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * List of places in which the current place is located.
+     * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + public int getContainingPlacesCount() { + if (containingPlacesBuilder_ == null) { + return containingPlaces_.size(); + } else { + return containingPlacesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * List of places in which the current place is located.
+     * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + public com.google.maps.places.v1.Place.ContainingPlace getContainingPlaces(int index) { + if (containingPlacesBuilder_ == null) { + return containingPlaces_.get(index); + } else { + return containingPlacesBuilder_.getMessage(index); } - return accessibilityOptionsBuilder_; } - private com.google.maps.places.v1.FuelOptions fuelOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.FuelOptions, - com.google.maps.places.v1.FuelOptions.Builder, - com.google.maps.places.v1.FuelOptionsOrBuilder> - fuelOptionsBuilder_; - /** * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; - * - * @return Whether the fuelOptions field is set. + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public boolean hasFuelOptions() { - return ((bitField1_ & 0x20000000) != 0); + public Builder setContainingPlaces( + int index, com.google.maps.places.v1.Place.ContainingPlace value) { + if (containingPlacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainingPlacesIsMutable(); + containingPlaces_.set(index, value); + onChanged(); + } else { + containingPlacesBuilder_.setMessage(index, value); + } + return this; } /** * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; - * - * @return The fuelOptions. + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public com.google.maps.places.v1.FuelOptions getFuelOptions() { - if (fuelOptionsBuilder_ == null) { - return fuelOptions_ == null - ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() - : fuelOptions_; + public Builder setContainingPlaces( + int index, com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { + if (containingPlacesBuilder_ == null) { + ensureContainingPlacesIsMutable(); + containingPlaces_.set(index, builderForValue.build()); + onChanged(); } else { - return fuelOptionsBuilder_.getMessage(); + containingPlacesBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions value) { - if (fuelOptionsBuilder_ == null) { + public Builder addContainingPlaces(com.google.maps.places.v1.Place.ContainingPlace value) { + if (containingPlacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - fuelOptions_ = value; + ensureContainingPlacesIsMutable(); + containingPlaces_.add(value); + onChanged(); } else { - fuelOptionsBuilder_.setMessage(value); + containingPlacesBuilder_.addMessage(value); } - bitField1_ |= 0x20000000; - onChanged(); return this; } @@ -34149,20 +39289,23 @@ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions value) { * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder builderForValue) { - if (fuelOptionsBuilder_ == null) { - fuelOptions_ = builderForValue.build(); + public Builder addContainingPlaces( + int index, com.google.maps.places.v1.Place.ContainingPlace value) { + if (containingPlacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainingPlacesIsMutable(); + containingPlaces_.add(index, value); + onChanged(); } else { - fuelOptionsBuilder_.setMessage(builderForValue.build()); + containingPlacesBuilder_.addMessage(index, value); } - bitField1_ |= 0x20000000; - onChanged(); return this; } @@ -34170,27 +39313,19 @@ public Builder setFuelOptions(com.google.maps.places.v1.FuelOptions.Builder buil * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { - if (fuelOptionsBuilder_ == null) { - if (((bitField1_ & 0x20000000) != 0) - && fuelOptions_ != null - && fuelOptions_ != com.google.maps.places.v1.FuelOptions.getDefaultInstance()) { - getFuelOptionsBuilder().mergeFrom(value); - } else { - fuelOptions_ = value; - } - } else { - fuelOptionsBuilder_.mergeFrom(value); - } - if (fuelOptions_ != null) { - bitField1_ |= 0x20000000; + public Builder addContainingPlaces( + com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { + if (containingPlacesBuilder_ == null) { + ensureContainingPlacesIsMutable(); + containingPlaces_.add(builderForValue.build()); onChanged(); + } else { + containingPlacesBuilder_.addMessage(builderForValue.build()); } return this; } @@ -34199,20 +39334,20 @@ public Builder mergeFuelOptions(com.google.maps.places.v1.FuelOptions value) { * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder clearFuelOptions() { - bitField1_ = (bitField1_ & ~0x20000000); - fuelOptions_ = null; - if (fuelOptionsBuilder_ != null) { - fuelOptionsBuilder_.dispose(); - fuelOptionsBuilder_ = null; + public Builder addContainingPlaces( + int index, com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { + if (containingPlacesBuilder_ == null) { + ensureContainingPlacesIsMutable(); + containingPlaces_.add(index, builderForValue.build()); + onChanged(); + } else { + containingPlacesBuilder_.addMessage(index, builderForValue.build()); } - onChanged(); return this; } @@ -34220,105 +39355,92 @@ public Builder clearFuelOptions() { * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public com.google.maps.places.v1.FuelOptions.Builder getFuelOptionsBuilder() { - bitField1_ |= 0x20000000; - onChanged(); - return getFuelOptionsFieldBuilder().getBuilder(); + public Builder addAllContainingPlaces( + java.lang.Iterable values) { + if (containingPlacesBuilder_ == null) { + ensureContainingPlacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containingPlaces_); + onChanged(); + } else { + containingPlacesBuilder_.addAllMessages(values); + } + return this; } /** * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public com.google.maps.places.v1.FuelOptionsOrBuilder getFuelOptionsOrBuilder() { - if (fuelOptionsBuilder_ != null) { - return fuelOptionsBuilder_.getMessageOrBuilder(); + public Builder clearContainingPlaces() { + if (containingPlacesBuilder_ == null) { + containingPlaces_ = java.util.Collections.emptyList(); + bitField2_ = (bitField2_ & ~0x00000001); + onChanged(); } else { - return fuelOptions_ == null - ? com.google.maps.places.v1.FuelOptions.getDefaultInstance() - : fuelOptions_; + containingPlacesBuilder_.clear(); } + return this; } /** * * *
-     * The most recent information about fuel options in a gas station. This
-     * information is updated regularly.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.FuelOptions fuel_options = 78; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.FuelOptions, - com.google.maps.places.v1.FuelOptions.Builder, - com.google.maps.places.v1.FuelOptionsOrBuilder> - getFuelOptionsFieldBuilder() { - if (fuelOptionsBuilder_ == null) { - fuelOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.FuelOptions, - com.google.maps.places.v1.FuelOptions.Builder, - com.google.maps.places.v1.FuelOptionsOrBuilder>( - getFuelOptions(), getParentForChildren(), isClean()); - fuelOptions_ = null; + public Builder removeContainingPlaces(int index) { + if (containingPlacesBuilder_ == null) { + ensureContainingPlacesIsMutable(); + containingPlaces_.remove(index); + onChanged(); + } else { + containingPlacesBuilder_.remove(index); } - return fuelOptionsBuilder_; + return this; } - private com.google.maps.places.v1.EVChargeOptions evChargeOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.EVChargeOptions, - com.google.maps.places.v1.EVChargeOptions.Builder, - com.google.maps.places.v1.EVChargeOptionsOrBuilder> - evChargeOptionsBuilder_; - /** * * *
-     * Information of ev charging options.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; - * - * @return Whether the evChargeOptions field is set. + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public boolean hasEvChargeOptions() { - return ((bitField1_ & 0x40000000) != 0); + public com.google.maps.places.v1.Place.ContainingPlace.Builder getContainingPlacesBuilder( + int index) { + return getContainingPlacesFieldBuilder().getBuilder(index); } /** * * *
-     * Information of ev charging options.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; - * - * @return The evChargeOptions. + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { - if (evChargeOptionsBuilder_ == null) { - return evChargeOptions_ == null - ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() - : evChargeOptions_; + public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPlacesOrBuilder( + int index) { + if (containingPlacesBuilder_ == null) { + return containingPlaces_.get(index); } else { - return evChargeOptionsBuilder_.getMessage(); + return containingPlacesBuilder_.getMessageOrBuilder(index); } } @@ -34326,202 +39448,217 @@ public com.google.maps.places.v1.EVChargeOptions getEvChargeOptions() { * * *
-     * Information of ev charging options.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder setEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { - if (evChargeOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evChargeOptions_ = value; + public java.util.List + getContainingPlacesOrBuilderList() { + if (containingPlacesBuilder_ != null) { + return containingPlacesBuilder_.getMessageOrBuilderList(); } else { - evChargeOptionsBuilder_.setMessage(value); + return java.util.Collections.unmodifiableList(containingPlaces_); } - bitField1_ |= 0x40000000; - onChanged(); - return this; } /** * * *
-     * Information of ev charging options.
+     * List of places in which the current place is located.
+     * 
+ * + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + */ + public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlacesBuilder() { + return getContainingPlacesFieldBuilder() + .addBuilder(com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()); + } + + /** + * + * + *
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder setEvChargeOptions( - com.google.maps.places.v1.EVChargeOptions.Builder builderForValue) { - if (evChargeOptionsBuilder_ == null) { - evChargeOptions_ = builderForValue.build(); - } else { - evChargeOptionsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x40000000; - onChanged(); - return this; + public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlacesBuilder( + int index) { + return getContainingPlacesFieldBuilder() + .addBuilder(index, com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()); } /** * * *
-     * Information of ev charging options.
+     * List of places in which the current place is located.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; */ - public Builder mergeEvChargeOptions(com.google.maps.places.v1.EVChargeOptions value) { - if (evChargeOptionsBuilder_ == null) { - if (((bitField1_ & 0x40000000) != 0) - && evChargeOptions_ != null - && evChargeOptions_ != com.google.maps.places.v1.EVChargeOptions.getDefaultInstance()) { - getEvChargeOptionsBuilder().mergeFrom(value); - } else { - evChargeOptions_ = value; - } - } else { - evChargeOptionsBuilder_.mergeFrom(value); - } - if (evChargeOptions_ != null) { - bitField1_ |= 0x40000000; - onChanged(); + public java.util.List + getContainingPlacesBuilderList() { + return getContainingPlacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.ContainingPlace, + com.google.maps.places.v1.Place.ContainingPlace.Builder, + com.google.maps.places.v1.Place.ContainingPlaceOrBuilder> + getContainingPlacesFieldBuilder() { + if (containingPlacesBuilder_ == null) { + containingPlacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.places.v1.Place.ContainingPlace, + com.google.maps.places.v1.Place.ContainingPlace.Builder, + com.google.maps.places.v1.Place.ContainingPlaceOrBuilder>( + containingPlaces_, + ((bitField2_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + containingPlaces_ = null; } - return this; + return containingPlacesBuilder_; } + private boolean pureServiceAreaBusiness_; + /** * * *
-     * Information of ev charging options.
+     * Indicates whether the place is a pure service area business. Pure service
+     * area business is a business that visits or delivers to customers directly
+     * but does not serve customers at their business address. For example,
+     * businesses like cleaning services or plumbers. Those businesses may not
+     * have a physical address or location on Google Maps.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * optional bool pure_service_area_business = 83; + * + * @return Whether the pureServiceAreaBusiness field is set. */ - public Builder clearEvChargeOptions() { - bitField1_ = (bitField1_ & ~0x40000000); - evChargeOptions_ = null; - if (evChargeOptionsBuilder_ != null) { - evChargeOptionsBuilder_.dispose(); - evChargeOptionsBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public boolean hasPureServiceAreaBusiness() { + return ((bitField2_ & 0x00000002) != 0); } /** * * *
-     * Information of ev charging options.
+     * Indicates whether the place is a pure service area business. Pure service
+     * area business is a business that visits or delivers to customers directly
+     * but does not serve customers at their business address. For example,
+     * businesses like cleaning services or plumbers. Those businesses may not
+     * have a physical address or location on Google Maps.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * optional bool pure_service_area_business = 83; + * + * @return The pureServiceAreaBusiness. */ - public com.google.maps.places.v1.EVChargeOptions.Builder getEvChargeOptionsBuilder() { - bitField1_ |= 0x40000000; - onChanged(); - return getEvChargeOptionsFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getPureServiceAreaBusiness() { + return pureServiceAreaBusiness_; } /** * * *
-     * Information of ev charging options.
+     * Indicates whether the place is a pure service area business. Pure service
+     * area business is a business that visits or delivers to customers directly
+     * but does not serve customers at their business address. For example,
+     * businesses like cleaning services or plumbers. Those businesses may not
+     * have a physical address or location on Google Maps.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * optional bool pure_service_area_business = 83; + * + * @param value The pureServiceAreaBusiness to set. + * @return This builder for chaining. */ - public com.google.maps.places.v1.EVChargeOptionsOrBuilder getEvChargeOptionsOrBuilder() { - if (evChargeOptionsBuilder_ != null) { - return evChargeOptionsBuilder_.getMessageOrBuilder(); - } else { - return evChargeOptions_ == null - ? com.google.maps.places.v1.EVChargeOptions.getDefaultInstance() - : evChargeOptions_; - } + public Builder setPureServiceAreaBusiness(boolean value) { + + pureServiceAreaBusiness_ = value; + bitField2_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-     * Information of ev charging options.
+     * Indicates whether the place is a pure service area business. Pure service
+     * area business is a business that visits or delivers to customers directly
+     * but does not serve customers at their business address. For example,
+     * businesses like cleaning services or plumbers. Those businesses may not
+     * have a physical address or location on Google Maps.
      * 
* - * .google.maps.places.v1.EVChargeOptions ev_charge_options = 79; + * optional bool pure_service_area_business = 83; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.EVChargeOptions, - com.google.maps.places.v1.EVChargeOptions.Builder, - com.google.maps.places.v1.EVChargeOptionsOrBuilder> - getEvChargeOptionsFieldBuilder() { - if (evChargeOptionsBuilder_ == null) { - evChargeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.EVChargeOptions, - com.google.maps.places.v1.EVChargeOptions.Builder, - com.google.maps.places.v1.EVChargeOptionsOrBuilder>( - getEvChargeOptions(), getParentForChildren(), isClean()); - evChargeOptions_ = null; - } - return evChargeOptionsBuilder_; + public Builder clearPureServiceAreaBusiness() { + bitField2_ = (bitField2_ & ~0x00000002); + pureServiceAreaBusiness_ = false; + onChanged(); + return this; } - private com.google.maps.places.v1.Place.GenerativeSummary generativeSummary_; + private com.google.maps.places.v1.AddressDescriptor addressDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.GenerativeSummary, - com.google.maps.places.v1.Place.GenerativeSummary.Builder, - com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> - generativeSummaryBuilder_; + com.google.maps.places.v1.AddressDescriptor, + com.google.maps.places.v1.AddressDescriptor.Builder, + com.google.maps.places.v1.AddressDescriptorOrBuilder> + addressDescriptorBuilder_; /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; * - * @return Whether the generativeSummary field is set. + * @return Whether the addressDescriptor field is set. */ - public boolean hasGenerativeSummary() { - return ((bitField1_ & 0x80000000) != 0); + public boolean hasAddressDescriptor() { + return ((bitField2_ & 0x00000004) != 0); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; * - * @return The generativeSummary. + * @return The addressDescriptor. */ - public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() { - if (generativeSummaryBuilder_ == null) { - return generativeSummary_ == null - ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() - : generativeSummary_; + public com.google.maps.places.v1.AddressDescriptor getAddressDescriptor() { + if (addressDescriptorBuilder_ == null) { + return addressDescriptor_ == null + ? com.google.maps.places.v1.AddressDescriptor.getDefaultInstance() + : addressDescriptor_; } else { - return generativeSummaryBuilder_.getMessage(); + return addressDescriptorBuilder_.getMessage(); } } @@ -34529,25 +39666,24 @@ public com.google.maps.places.v1.Place.GenerativeSummary getGenerativeSummary() * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public Builder setGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { - if (generativeSummaryBuilder_ == null) { + public Builder setAddressDescriptor(com.google.maps.places.v1.AddressDescriptor value) { + if (addressDescriptorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - generativeSummary_ = value; + addressDescriptor_ = value; } else { - generativeSummaryBuilder_.setMessage(value); + addressDescriptorBuilder_.setMessage(value); } - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -34556,23 +39692,22 @@ public Builder setGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSu * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public Builder setGenerativeSummary( - com.google.maps.places.v1.Place.GenerativeSummary.Builder builderForValue) { - if (generativeSummaryBuilder_ == null) { - generativeSummary_ = builderForValue.build(); + public Builder setAddressDescriptor( + com.google.maps.places.v1.AddressDescriptor.Builder builderForValue) { + if (addressDescriptorBuilder_ == null) { + addressDescriptor_ = builderForValue.build(); } else { - generativeSummaryBuilder_.setMessage(builderForValue.build()); + addressDescriptorBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x80000000; + bitField2_ |= 0x00000004; onChanged(); return this; } @@ -34581,30 +39716,29 @@ public Builder setGenerativeSummary( * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.GenerativeSummary value) { - if (generativeSummaryBuilder_ == null) { - if (((bitField1_ & 0x80000000) != 0) - && generativeSummary_ != null - && generativeSummary_ - != com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance()) { - getGenerativeSummaryBuilder().mergeFrom(value); + public Builder mergeAddressDescriptor(com.google.maps.places.v1.AddressDescriptor value) { + if (addressDescriptorBuilder_ == null) { + if (((bitField2_ & 0x00000004) != 0) + && addressDescriptor_ != null + && addressDescriptor_ + != com.google.maps.places.v1.AddressDescriptor.getDefaultInstance()) { + getAddressDescriptorBuilder().mergeFrom(value); } else { - generativeSummary_ = value; + addressDescriptor_ = value; } } else { - generativeSummaryBuilder_.mergeFrom(value); + addressDescriptorBuilder_.mergeFrom(value); } - if (generativeSummary_ != null) { - bitField1_ |= 0x80000000; + if (addressDescriptor_ != null) { + bitField2_ |= 0x00000004; onChanged(); } return this; @@ -34614,21 +39748,20 @@ public Builder mergeGenerativeSummary(com.google.maps.places.v1.Place.Generative * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public Builder clearGenerativeSummary() { - bitField1_ = (bitField1_ & ~0x80000000); - generativeSummary_ = null; - if (generativeSummaryBuilder_ != null) { - generativeSummaryBuilder_.dispose(); - generativeSummaryBuilder_ = null; + public Builder clearAddressDescriptor() { + bitField2_ = (bitField2_ & ~0x00000004); + addressDescriptor_ = null; + if (addressDescriptorBuilder_ != null) { + addressDescriptorBuilder_.dispose(); + addressDescriptorBuilder_ = null; } onChanged(); return this; @@ -34638,42 +39771,39 @@ public Builder clearGenerativeSummary() { * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSummaryBuilder() { - bitField1_ |= 0x80000000; + public com.google.maps.places.v1.AddressDescriptor.Builder getAddressDescriptorBuilder() { + bitField2_ |= 0x00000004; onChanged(); - return getGenerativeSummaryFieldBuilder().getBuilder(); + return getAddressDescriptorFieldBuilder().getBuilder(); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ - public com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder - getGenerativeSummaryOrBuilder() { - if (generativeSummaryBuilder_ != null) { - return generativeSummaryBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptorOrBuilder() { + if (addressDescriptorBuilder_ != null) { + return addressDescriptorBuilder_.getMessageOrBuilder(); } else { - return generativeSummary_ == null - ? com.google.maps.places.v1.Place.GenerativeSummary.getDefaultInstance() - : generativeSummary_; + return addressDescriptor_ == null + ? com.google.maps.places.v1.AddressDescriptor.getDefaultInstance() + : addressDescriptor_; } } @@ -34681,80 +39811,71 @@ public com.google.maps.places.v1.Place.GenerativeSummary.Builder getGenerativeSu * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the place.
+     * The address descriptor of the place. Address descriptors include additional
+     * information that help describe a location using landmarks and areas. See
+     * address descriptor regional coverage in
+     * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
      * 
* - * .google.maps.places.v1.Place.GenerativeSummary generative_summary = 80; + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.GenerativeSummary, - com.google.maps.places.v1.Place.GenerativeSummary.Builder, - com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder> - getGenerativeSummaryFieldBuilder() { - if (generativeSummaryBuilder_ == null) { - generativeSummaryBuilder_ = + com.google.maps.places.v1.AddressDescriptor, + com.google.maps.places.v1.AddressDescriptor.Builder, + com.google.maps.places.v1.AddressDescriptorOrBuilder> + getAddressDescriptorFieldBuilder() { + if (addressDescriptorBuilder_ == null) { + addressDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.GenerativeSummary, - com.google.maps.places.v1.Place.GenerativeSummary.Builder, - com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder>( - getGenerativeSummary(), getParentForChildren(), isClean()); - generativeSummary_ = null; + com.google.maps.places.v1.AddressDescriptor, + com.google.maps.places.v1.AddressDescriptor.Builder, + com.google.maps.places.v1.AddressDescriptorOrBuilder>( + getAddressDescriptor(), getParentForChildren(), isClean()); + addressDescriptor_ = null; } - return generativeSummaryBuilder_; + return addressDescriptorBuilder_; } - private com.google.maps.places.v1.Place.AreaSummary areaSummary_; + private com.google.maps.places.v1.PriceRange priceRange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AreaSummary, - com.google.maps.places.v1.Place.AreaSummary.Builder, - com.google.maps.places.v1.Place.AreaSummaryOrBuilder> - areaSummaryBuilder_; + com.google.maps.places.v1.PriceRange, + com.google.maps.places.v1.PriceRange.Builder, + com.google.maps.places.v1.PriceRangeOrBuilder> + priceRangeBuilder_; /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; * - * @return Whether the areaSummary field is set. + * @return Whether the priceRange field is set. */ - public boolean hasAreaSummary() { - return ((bitField2_ & 0x00000001) != 0); + public boolean hasPriceRange() { + return ((bitField2_ & 0x00000008) != 0); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; * - * @return The areaSummary. + * @return The priceRange. */ - public com.google.maps.places.v1.Place.AreaSummary getAreaSummary() { - if (areaSummaryBuilder_ == null) { - return areaSummary_ == null - ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() - : areaSummary_; + public com.google.maps.places.v1.PriceRange getPriceRange() { + if (priceRangeBuilder_ == null) { + return priceRange_ == null + ? com.google.maps.places.v1.PriceRange.getDefaultInstance() + : priceRange_; } else { - return areaSummaryBuilder_.getMessage(); + return priceRangeBuilder_.getMessage(); } } @@ -34762,25 +39883,21 @@ public com.google.maps.places.v1.Place.AreaSummary getAreaSummary() { * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public Builder setAreaSummary(com.google.maps.places.v1.Place.AreaSummary value) { - if (areaSummaryBuilder_ == null) { + public Builder setPriceRange(com.google.maps.places.v1.PriceRange value) { + if (priceRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - areaSummary_ = value; + priceRange_ = value; } else { - areaSummaryBuilder_.setMessage(value); + priceRangeBuilder_.setMessage(value); } - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -34789,23 +39906,18 @@ public Builder setAreaSummary(com.google.maps.places.v1.Place.AreaSummary value) * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public Builder setAreaSummary( - com.google.maps.places.v1.Place.AreaSummary.Builder builderForValue) { - if (areaSummaryBuilder_ == null) { - areaSummary_ = builderForValue.build(); + public Builder setPriceRange(com.google.maps.places.v1.PriceRange.Builder builderForValue) { + if (priceRangeBuilder_ == null) { + priceRange_ = builderForValue.build(); } else { - areaSummaryBuilder_.setMessage(builderForValue.build()); + priceRangeBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000001; + bitField2_ |= 0x00000008; onChanged(); return this; } @@ -34814,29 +39926,25 @@ public Builder setAreaSummary( * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public Builder mergeAreaSummary(com.google.maps.places.v1.Place.AreaSummary value) { - if (areaSummaryBuilder_ == null) { - if (((bitField2_ & 0x00000001) != 0) - && areaSummary_ != null - && areaSummary_ != com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance()) { - getAreaSummaryBuilder().mergeFrom(value); + public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { + if (priceRangeBuilder_ == null) { + if (((bitField2_ & 0x00000008) != 0) + && priceRange_ != null + && priceRange_ != com.google.maps.places.v1.PriceRange.getDefaultInstance()) { + getPriceRangeBuilder().mergeFrom(value); } else { - areaSummary_ = value; + priceRange_ = value; } } else { - areaSummaryBuilder_.mergeFrom(value); + priceRangeBuilder_.mergeFrom(value); } - if (areaSummary_ != null) { - bitField2_ |= 0x00000001; + if (priceRange_ != null) { + bitField2_ |= 0x00000008; onChanged(); } return this; @@ -34846,21 +39954,17 @@ public Builder mergeAreaSummary(com.google.maps.places.v1.Place.AreaSummary valu * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public Builder clearAreaSummary() { - bitField2_ = (bitField2_ & ~0x00000001); - areaSummary_ = null; - if (areaSummaryBuilder_ != null) { - areaSummaryBuilder_.dispose(); - areaSummaryBuilder_ = null; + public Builder clearPriceRange() { + bitField2_ = (bitField2_ & ~0x00000008); + priceRange_ = null; + if (priceRangeBuilder_ != null) { + priceRangeBuilder_.dispose(); + priceRangeBuilder_ = null; } onChanged(); return this; @@ -34870,41 +39974,33 @@ public Builder clearAreaSummary() { * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public com.google.maps.places.v1.Place.AreaSummary.Builder getAreaSummaryBuilder() { - bitField2_ |= 0x00000001; + public com.google.maps.places.v1.PriceRange.Builder getPriceRangeBuilder() { + bitField2_ |= 0x00000008; onChanged(); - return getAreaSummaryFieldBuilder().getBuilder(); + return getPriceRangeFieldBuilder().getBuilder(); } /** * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ - public com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder() { - if (areaSummaryBuilder_ != null) { - return areaSummaryBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { + if (priceRangeBuilder_ != null) { + return priceRangeBuilder_.getMessageOrBuilder(); } else { - return areaSummary_ == null - ? com.google.maps.places.v1.Place.AreaSummary.getDefaultInstance() - : areaSummary_; + return priceRange_ == null + ? com.google.maps.places.v1.PriceRange.getDefaultInstance() + : priceRange_; } } @@ -34912,167 +40008,91 @@ public com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuil * * *
-     * Experimental: See
-     * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-     * for more details.
-     *
-     * AI-generated summary of the area that the place is in.
+     * The price range associated with a Place.
      * 
* - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; + * .google.maps.places.v1.PriceRange price_range = 86; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AreaSummary, - com.google.maps.places.v1.Place.AreaSummary.Builder, - com.google.maps.places.v1.Place.AreaSummaryOrBuilder> - getAreaSummaryFieldBuilder() { - if (areaSummaryBuilder_ == null) { - areaSummaryBuilder_ = + com.google.maps.places.v1.PriceRange, + com.google.maps.places.v1.PriceRange.Builder, + com.google.maps.places.v1.PriceRangeOrBuilder> + getPriceRangeFieldBuilder() { + if (priceRangeBuilder_ == null) { + priceRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.Place.AreaSummary, - com.google.maps.places.v1.Place.AreaSummary.Builder, - com.google.maps.places.v1.Place.AreaSummaryOrBuilder>( - getAreaSummary(), getParentForChildren(), isClean()); - areaSummary_ = null; - } - return areaSummaryBuilder_; - } - - private java.util.List containingPlaces_ = - java.util.Collections.emptyList(); - - private void ensureContainingPlacesIsMutable() { - if (!((bitField2_ & 0x00000002) != 0)) { - containingPlaces_ = - new java.util.ArrayList( - containingPlaces_); - bitField2_ |= 0x00000002; + com.google.maps.places.v1.PriceRange, + com.google.maps.places.v1.PriceRange.Builder, + com.google.maps.places.v1.PriceRangeOrBuilder>( + getPriceRange(), getParentForChildren(), isClean()); + priceRange_ = null; } + return priceRangeBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.ContainingPlace, - com.google.maps.places.v1.Place.ContainingPlace.Builder, - com.google.maps.places.v1.Place.ContainingPlaceOrBuilder> - containingPlacesBuilder_; - - /** - * - * - *
-     * List of places in which the current place is located.
-     * 
- * - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; - */ - public java.util.List - getContainingPlacesList() { - if (containingPlacesBuilder_ == null) { - return java.util.Collections.unmodifiableList(containingPlaces_); - } else { - return containingPlacesBuilder_.getMessageList(); - } - } + private com.google.maps.places.v1.Place.ReviewSummary reviewSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ReviewSummary, + com.google.maps.places.v1.Place.ReviewSummary.Builder, + com.google.maps.places.v1.Place.ReviewSummaryOrBuilder> + reviewSummaryBuilder_; /** * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; - */ - public int getContainingPlacesCount() { - if (containingPlacesBuilder_ == null) { - return containingPlaces_.size(); - } else { - return containingPlacesBuilder_.getCount(); - } - } - - /** - * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; * - *
-     * List of places in which the current place is located.
-     * 
- * - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * @return Whether the reviewSummary field is set. */ - public com.google.maps.places.v1.Place.ContainingPlace getContainingPlaces(int index) { - if (containingPlacesBuilder_ == null) { - return containingPlaces_.get(index); - } else { - return containingPlacesBuilder_.getMessage(index); - } + public boolean hasReviewSummary() { + return ((bitField2_ & 0x00000010) != 0); } /** * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; - */ - public Builder setContainingPlaces( - int index, com.google.maps.places.v1.Place.ContainingPlace value) { - if (containingPlacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainingPlacesIsMutable(); - containingPlaces_.set(index, value); - onChanged(); - } else { - containingPlacesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of places in which the current place is located.
-     * 
+ * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; * - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * @return The reviewSummary. */ - public Builder setContainingPlaces( - int index, com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { - if (containingPlacesBuilder_ == null) { - ensureContainingPlacesIsMutable(); - containingPlaces_.set(index, builderForValue.build()); - onChanged(); + public com.google.maps.places.v1.Place.ReviewSummary getReviewSummary() { + if (reviewSummaryBuilder_ == null) { + return reviewSummary_ == null + ? com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance() + : reviewSummary_; } else { - containingPlacesBuilder_.setMessage(index, builderForValue.build()); + return reviewSummaryBuilder_.getMessage(); } - return this; } /** * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public Builder addContainingPlaces(com.google.maps.places.v1.Place.ContainingPlace value) { - if (containingPlacesBuilder_ == null) { + public Builder setReviewSummary(com.google.maps.places.v1.Place.ReviewSummary value) { + if (reviewSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureContainingPlacesIsMutable(); - containingPlaces_.add(value); - onChanged(); + reviewSummary_ = value; } else { - containingPlacesBuilder_.addMessage(value); + reviewSummaryBuilder_.setMessage(value); } + bitField2_ |= 0x00000010; + onChanged(); return this; } @@ -35080,23 +40100,20 @@ public Builder addContainingPlaces(com.google.maps.places.v1.Place.ContainingPla * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public Builder addContainingPlaces( - int index, com.google.maps.places.v1.Place.ContainingPlace value) { - if (containingPlacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainingPlacesIsMutable(); - containingPlaces_.add(index, value); - onChanged(); + public Builder setReviewSummary( + com.google.maps.places.v1.Place.ReviewSummary.Builder builderForValue) { + if (reviewSummaryBuilder_ == null) { + reviewSummary_ = builderForValue.build(); } else { - containingPlacesBuilder_.addMessage(index, value); + reviewSummaryBuilder_.setMessage(builderForValue.build()); } + bitField2_ |= 0x00000010; + onChanged(); return this; } @@ -35104,62 +40121,48 @@ public Builder addContainingPlaces( * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public Builder addContainingPlaces( - com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { - if (containingPlacesBuilder_ == null) { - ensureContainingPlacesIsMutable(); - containingPlaces_.add(builderForValue.build()); - onChanged(); + public Builder mergeReviewSummary(com.google.maps.places.v1.Place.ReviewSummary value) { + if (reviewSummaryBuilder_ == null) { + if (((bitField2_ & 0x00000010) != 0) + && reviewSummary_ != null + && reviewSummary_ + != com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance()) { + getReviewSummaryBuilder().mergeFrom(value); + } else { + reviewSummary_ = value; + } } else { - containingPlacesBuilder_.addMessage(builderForValue.build()); + reviewSummaryBuilder_.mergeFrom(value); } - return this; - } - - /** - * - * - *
-     * List of places in which the current place is located.
-     * 
- * - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; - */ - public Builder addContainingPlaces( - int index, com.google.maps.places.v1.Place.ContainingPlace.Builder builderForValue) { - if (containingPlacesBuilder_ == null) { - ensureContainingPlacesIsMutable(); - containingPlaces_.add(index, builderForValue.build()); + if (reviewSummary_ != null) { + bitField2_ |= 0x00000010; onChanged(); - } else { - containingPlacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * - * - *
-     * List of places in which the current place is located.
-     * 
- * - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; - */ - public Builder addAllContainingPlaces( - java.lang.Iterable values) { - if (containingPlacesBuilder_ == null) { - ensureContainingPlacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containingPlaces_); - onChanged(); - } else { - containingPlacesBuilder_.addAllMessages(values); + * + * + *
+     * AI-generated summary of the place using user reviews.
+     * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + */ + public Builder clearReviewSummary() { + bitField2_ = (bitField2_ & ~0x00000010); + reviewSummary_ = null; + if (reviewSummaryBuilder_ != null) { + reviewSummaryBuilder_.dispose(); + reviewSummaryBuilder_ = null; } + onChanged(); return this; } @@ -35167,89 +40170,104 @@ public Builder addAllContainingPlaces( * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public Builder clearContainingPlaces() { - if (containingPlacesBuilder_ == null) { - containingPlaces_ = java.util.Collections.emptyList(); - bitField2_ = (bitField2_ & ~0x00000002); - onChanged(); - } else { - containingPlacesBuilder_.clear(); - } - return this; + public com.google.maps.places.v1.Place.ReviewSummary.Builder getReviewSummaryBuilder() { + bitField2_ |= 0x00000010; + onChanged(); + return getReviewSummaryFieldBuilder().getBuilder(); } /** * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public Builder removeContainingPlaces(int index) { - if (containingPlacesBuilder_ == null) { - ensureContainingPlacesIsMutable(); - containingPlaces_.remove(index); - onChanged(); + public com.google.maps.places.v1.Place.ReviewSummaryOrBuilder getReviewSummaryOrBuilder() { + if (reviewSummaryBuilder_ != null) { + return reviewSummaryBuilder_.getMessageOrBuilder(); } else { - containingPlacesBuilder_.remove(index); + return reviewSummary_ == null + ? com.google.maps.places.v1.Place.ReviewSummary.getDefaultInstance() + : reviewSummary_; } - return this; } /** * * *
-     * List of places in which the current place is located.
+     * AI-generated summary of the place using user reviews.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; */ - public com.google.maps.places.v1.Place.ContainingPlace.Builder getContainingPlacesBuilder( - int index) { - return getContainingPlacesFieldBuilder().getBuilder(index); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ReviewSummary, + com.google.maps.places.v1.Place.ReviewSummary.Builder, + com.google.maps.places.v1.Place.ReviewSummaryOrBuilder> + getReviewSummaryFieldBuilder() { + if (reviewSummaryBuilder_ == null) { + reviewSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.ReviewSummary, + com.google.maps.places.v1.Place.ReviewSummary.Builder, + com.google.maps.places.v1.Place.ReviewSummaryOrBuilder>( + getReviewSummary(), getParentForChildren(), isClean()); + reviewSummary_ = null; + } + return reviewSummaryBuilder_; } + private com.google.maps.places.v1.Place.EvChargeAmenitySummary evChargeAmenitySummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.EvChargeAmenitySummary, + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder, + com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder> + evChargeAmenitySummaryBuilder_; + /** * * *
-     * List of places in which the current place is located.
+     * The summary of amenities near the EV charging station.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return Whether the evChargeAmenitySummary field is set. */ - public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPlacesOrBuilder( - int index) { - if (containingPlacesBuilder_ == null) { - return containingPlaces_.get(index); - } else { - return containingPlacesBuilder_.getMessageOrBuilder(index); - } + public boolean hasEvChargeAmenitySummary() { + return ((bitField2_ & 0x00000020) != 0); } /** * * *
-     * List of places in which the current place is located.
+     * The summary of amenities near the EV charging station.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return The evChargeAmenitySummary. */ - public java.util.List - getContainingPlacesOrBuilderList() { - if (containingPlacesBuilder_ != null) { - return containingPlacesBuilder_.getMessageOrBuilderList(); + public com.google.maps.places.v1.Place.EvChargeAmenitySummary getEvChargeAmenitySummary() { + if (evChargeAmenitySummaryBuilder_ == null) { + return evChargeAmenitySummary_ == null + ? com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance() + : evChargeAmenitySummary_; } else { - return java.util.Collections.unmodifiableList(containingPlaces_); + return evChargeAmenitySummaryBuilder_.getMessage(); } } @@ -35257,193 +40275,206 @@ public com.google.maps.places.v1.Place.ContainingPlaceOrBuilder getContainingPla * * *
-     * List of places in which the current place is located.
+     * The summary of amenities near the EV charging station.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlacesBuilder() { - return getContainingPlacesFieldBuilder() - .addBuilder(com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()); + public Builder setEvChargeAmenitySummary( + com.google.maps.places.v1.Place.EvChargeAmenitySummary value) { + if (evChargeAmenitySummaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evChargeAmenitySummary_ = value; + } else { + evChargeAmenitySummaryBuilder_.setMessage(value); + } + bitField2_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * List of places in which the current place is located.
+     * The summary of amenities near the EV charging station.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - public com.google.maps.places.v1.Place.ContainingPlace.Builder addContainingPlacesBuilder( - int index) { - return getContainingPlacesFieldBuilder() - .addBuilder(index, com.google.maps.places.v1.Place.ContainingPlace.getDefaultInstance()); + public Builder setEvChargeAmenitySummary( + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder builderForValue) { + if (evChargeAmenitySummaryBuilder_ == null) { + evChargeAmenitySummary_ = builderForValue.build(); + } else { + evChargeAmenitySummaryBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * List of places in which the current place is located.
+     * The summary of amenities near the EV charging station.
      * 
* - * repeated .google.maps.places.v1.Place.ContainingPlace containing_places = 82; + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - public java.util.List - getContainingPlacesBuilderList() { - return getContainingPlacesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.ContainingPlace, - com.google.maps.places.v1.Place.ContainingPlace.Builder, - com.google.maps.places.v1.Place.ContainingPlaceOrBuilder> - getContainingPlacesFieldBuilder() { - if (containingPlacesBuilder_ == null) { - containingPlacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.places.v1.Place.ContainingPlace, - com.google.maps.places.v1.Place.ContainingPlace.Builder, - com.google.maps.places.v1.Place.ContainingPlaceOrBuilder>( - containingPlaces_, - ((bitField2_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - containingPlaces_ = null; + public Builder mergeEvChargeAmenitySummary( + com.google.maps.places.v1.Place.EvChargeAmenitySummary value) { + if (evChargeAmenitySummaryBuilder_ == null) { + if (((bitField2_ & 0x00000020) != 0) + && evChargeAmenitySummary_ != null + && evChargeAmenitySummary_ + != com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance()) { + getEvChargeAmenitySummaryBuilder().mergeFrom(value); + } else { + evChargeAmenitySummary_ = value; + } + } else { + evChargeAmenitySummaryBuilder_.mergeFrom(value); } - return containingPlacesBuilder_; + if (evChargeAmenitySummary_ != null) { + bitField2_ |= 0x00000020; + onChanged(); + } + return this; } - private boolean pureServiceAreaBusiness_; - /** * * *
-     * Indicates whether the place is a pure service area business. Pure service
-     * area business is a business that visits or delivers to customers directly
-     * but does not serve customers at their business address. For example,
-     * businesses like cleaning services or plumbers. Those businesses may not
-     * have a physical address or location on Google Maps.
+     * The summary of amenities near the EV charging station.
      * 
* - * optional bool pure_service_area_business = 83; - * - * @return Whether the pureServiceAreaBusiness field is set. + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - @java.lang.Override - public boolean hasPureServiceAreaBusiness() { - return ((bitField2_ & 0x00000004) != 0); + public Builder clearEvChargeAmenitySummary() { + bitField2_ = (bitField2_ & ~0x00000020); + evChargeAmenitySummary_ = null; + if (evChargeAmenitySummaryBuilder_ != null) { + evChargeAmenitySummaryBuilder_.dispose(); + evChargeAmenitySummaryBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Indicates whether the place is a pure service area business. Pure service
-     * area business is a business that visits or delivers to customers directly
-     * but does not serve customers at their business address. For example,
-     * businesses like cleaning services or plumbers. Those businesses may not
-     * have a physical address or location on Google Maps.
+     * The summary of amenities near the EV charging station.
      * 
* - * optional bool pure_service_area_business = 83; - * - * @return The pureServiceAreaBusiness. + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - @java.lang.Override - public boolean getPureServiceAreaBusiness() { - return pureServiceAreaBusiness_; + public com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder + getEvChargeAmenitySummaryBuilder() { + bitField2_ |= 0x00000020; + onChanged(); + return getEvChargeAmenitySummaryFieldBuilder().getBuilder(); } /** * * *
-     * Indicates whether the place is a pure service area business. Pure service
-     * area business is a business that visits or delivers to customers directly
-     * but does not serve customers at their business address. For example,
-     * businesses like cleaning services or plumbers. Those businesses may not
-     * have a physical address or location on Google Maps.
+     * The summary of amenities near the EV charging station.
      * 
* - * optional bool pure_service_area_business = 83; - * - * @param value The pureServiceAreaBusiness to set. - * @return This builder for chaining. + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - public Builder setPureServiceAreaBusiness(boolean value) { - - pureServiceAreaBusiness_ = value; - bitField2_ |= 0x00000004; - onChanged(); - return this; + public com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder + getEvChargeAmenitySummaryOrBuilder() { + if (evChargeAmenitySummaryBuilder_ != null) { + return evChargeAmenitySummaryBuilder_.getMessageOrBuilder(); + } else { + return evChargeAmenitySummary_ == null + ? com.google.maps.places.v1.Place.EvChargeAmenitySummary.getDefaultInstance() + : evChargeAmenitySummary_; + } } /** * * *
-     * Indicates whether the place is a pure service area business. Pure service
-     * area business is a business that visits or delivers to customers directly
-     * but does not serve customers at their business address. For example,
-     * businesses like cleaning services or plumbers. Those businesses may not
-     * have a physical address or location on Google Maps.
+     * The summary of amenities near the EV charging station.
      * 
* - * optional bool pure_service_area_business = 83; - * - * @return This builder for chaining. + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * */ - public Builder clearPureServiceAreaBusiness() { - bitField2_ = (bitField2_ & ~0x00000004); - pureServiceAreaBusiness_ = false; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.EvChargeAmenitySummary, + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder, + com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder> + getEvChargeAmenitySummaryFieldBuilder() { + if (evChargeAmenitySummaryBuilder_ == null) { + evChargeAmenitySummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.places.v1.Place.EvChargeAmenitySummary, + com.google.maps.places.v1.Place.EvChargeAmenitySummary.Builder, + com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder>( + getEvChargeAmenitySummary(), getParentForChildren(), isClean()); + evChargeAmenitySummary_ = null; + } + return evChargeAmenitySummaryBuilder_; } - private com.google.maps.places.v1.PriceRange priceRange_; + private com.google.maps.places.v1.Place.NeighborhoodSummary neighborhoodSummary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.PriceRange, - com.google.maps.places.v1.PriceRange.Builder, - com.google.maps.places.v1.PriceRangeOrBuilder> - priceRangeBuilder_; + com.google.maps.places.v1.Place.NeighborhoodSummary, + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder, + com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder> + neighborhoodSummaryBuilder_; /** * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; * - * @return Whether the priceRange field is set. + * @return Whether the neighborhoodSummary field is set. */ - public boolean hasPriceRange() { - return ((bitField2_ & 0x00000008) != 0); + public boolean hasNeighborhoodSummary() { + return ((bitField2_ & 0x00000040) != 0); } /** * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; * - * @return The priceRange. + * @return The neighborhoodSummary. */ - public com.google.maps.places.v1.PriceRange getPriceRange() { - if (priceRangeBuilder_ == null) { - return priceRange_ == null - ? com.google.maps.places.v1.PriceRange.getDefaultInstance() - : priceRange_; + public com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummary() { + if (neighborhoodSummaryBuilder_ == null) { + return neighborhoodSummary_ == null + ? com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance() + : neighborhoodSummary_; } else { - return priceRangeBuilder_.getMessage(); + return neighborhoodSummaryBuilder_.getMessage(); } } @@ -35451,21 +40482,22 @@ public com.google.maps.places.v1.PriceRange getPriceRange() { * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public Builder setPriceRange(com.google.maps.places.v1.PriceRange value) { - if (priceRangeBuilder_ == null) { + public Builder setNeighborhoodSummary( + com.google.maps.places.v1.Place.NeighborhoodSummary value) { + if (neighborhoodSummaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - priceRange_ = value; + neighborhoodSummary_ = value; } else { - priceRangeBuilder_.setMessage(value); + neighborhoodSummaryBuilder_.setMessage(value); } - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -35474,18 +40506,19 @@ public Builder setPriceRange(com.google.maps.places.v1.PriceRange value) { * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public Builder setPriceRange(com.google.maps.places.v1.PriceRange.Builder builderForValue) { - if (priceRangeBuilder_ == null) { - priceRange_ = builderForValue.build(); + public Builder setNeighborhoodSummary( + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder builderForValue) { + if (neighborhoodSummaryBuilder_ == null) { + neighborhoodSummary_ = builderForValue.build(); } else { - priceRangeBuilder_.setMessage(builderForValue.build()); + neighborhoodSummaryBuilder_.setMessage(builderForValue.build()); } - bitField2_ |= 0x00000008; + bitField2_ |= 0x00000040; onChanged(); return this; } @@ -35494,25 +40527,27 @@ public Builder setPriceRange(com.google.maps.places.v1.PriceRange.Builder builde * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { - if (priceRangeBuilder_ == null) { - if (((bitField2_ & 0x00000008) != 0) - && priceRange_ != null - && priceRange_ != com.google.maps.places.v1.PriceRange.getDefaultInstance()) { - getPriceRangeBuilder().mergeFrom(value); + public Builder mergeNeighborhoodSummary( + com.google.maps.places.v1.Place.NeighborhoodSummary value) { + if (neighborhoodSummaryBuilder_ == null) { + if (((bitField2_ & 0x00000040) != 0) + && neighborhoodSummary_ != null + && neighborhoodSummary_ + != com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance()) { + getNeighborhoodSummaryBuilder().mergeFrom(value); } else { - priceRange_ = value; + neighborhoodSummary_ = value; } } else { - priceRangeBuilder_.mergeFrom(value); + neighborhoodSummaryBuilder_.mergeFrom(value); } - if (priceRange_ != null) { - bitField2_ |= 0x00000008; + if (neighborhoodSummary_ != null) { + bitField2_ |= 0x00000040; onChanged(); } return this; @@ -35522,17 +40557,17 @@ public Builder mergePriceRange(com.google.maps.places.v1.PriceRange value) { * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public Builder clearPriceRange() { - bitField2_ = (bitField2_ & ~0x00000008); - priceRange_ = null; - if (priceRangeBuilder_ != null) { - priceRangeBuilder_.dispose(); - priceRangeBuilder_ = null; + public Builder clearNeighborhoodSummary() { + bitField2_ = (bitField2_ & ~0x00000040); + neighborhoodSummary_ = null; + if (neighborhoodSummaryBuilder_ != null) { + neighborhoodSummaryBuilder_.dispose(); + neighborhoodSummaryBuilder_ = null; } onChanged(); return this; @@ -35542,33 +40577,35 @@ public Builder clearPriceRange() { * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public com.google.maps.places.v1.PriceRange.Builder getPriceRangeBuilder() { - bitField2_ |= 0x00000008; + public com.google.maps.places.v1.Place.NeighborhoodSummary.Builder + getNeighborhoodSummaryBuilder() { + bitField2_ |= 0x00000040; onChanged(); - return getPriceRangeFieldBuilder().getBuilder(); + return getNeighborhoodSummaryFieldBuilder().getBuilder(); } /** * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ - public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { - if (priceRangeBuilder_ != null) { - return priceRangeBuilder_.getMessageOrBuilder(); + public com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder + getNeighborhoodSummaryOrBuilder() { + if (neighborhoodSummaryBuilder_ != null) { + return neighborhoodSummaryBuilder_.getMessageOrBuilder(); } else { - return priceRange_ == null - ? com.google.maps.places.v1.PriceRange.getDefaultInstance() - : priceRange_; + return neighborhoodSummary_ == null + ? com.google.maps.places.v1.Place.NeighborhoodSummary.getDefaultInstance() + : neighborhoodSummary_; } } @@ -35576,26 +40613,26 @@ public com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder() { * * *
-     * The price range associated with a Place.
+     * A summary of points of interest near the place.
      * 
* - * .google.maps.places.v1.PriceRange price_range = 86; + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.PriceRange, - com.google.maps.places.v1.PriceRange.Builder, - com.google.maps.places.v1.PriceRangeOrBuilder> - getPriceRangeFieldBuilder() { - if (priceRangeBuilder_ == null) { - priceRangeBuilder_ = + com.google.maps.places.v1.Place.NeighborhoodSummary, + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder, + com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder> + getNeighborhoodSummaryFieldBuilder() { + if (neighborhoodSummaryBuilder_ == null) { + neighborhoodSummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.places.v1.PriceRange, - com.google.maps.places.v1.PriceRange.Builder, - com.google.maps.places.v1.PriceRangeOrBuilder>( - getPriceRange(), getParentForChildren(), isClean()); - priceRange_ = null; + com.google.maps.places.v1.Place.NeighborhoodSummary, + com.google.maps.places.v1.Place.NeighborhoodSummary.Builder, + com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder>( + getNeighborhoodSummary(), getParentForChildren(), isClean()); + neighborhoodSummary_ = null; } - return priceRangeBuilder_; + return neighborhoodSummaryBuilder_; } @java.lang.Override diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java index 697caa049c56..f73ad1d306ce 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceOrBuilder.java @@ -782,9 +782,14 @@ com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOr * The regular hours of operation. Note that if a place is always open (24 * hours), the `close` field will not be set. Clients can rely on always open * (24 hours) being represented as an - * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period - * containing [day][Point.day] with value `0`, [hour][Point.hour] with - * value `0`, and [minute][Point.minute] with value `0`. + * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) + * period containing + * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, + * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, and + * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`. *
* * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; @@ -800,9 +805,14 @@ com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOr * The regular hours of operation. Note that if a place is always open (24 * hours), the `close` field will not be set. Clients can rely on always open * (24 hours) being represented as an - * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period - * containing [day][Point.day] with value `0`, [hour][Point.hour] with - * value `0`, and [minute][Point.minute] with value `0`. + * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) + * period containing + * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, + * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, and + * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`. *
* * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; @@ -818,9 +828,14 @@ com.google.maps.places.v1.Place.AddressComponentOrBuilder getAddressComponentsOr * The regular hours of operation. Note that if a place is always open (24 * hours), the `close` field will not be set. Clients can rely on always open * (24 hours) being represented as an - * [open][google.maps.places.v1.Place.OpeningHours.Period.open] period - * containing [day][Point.day] with value `0`, [hour][Point.hour] with - * value `0`, and [minute][Point.minute] with value `0`. + * [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) + * period containing + * [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, + * [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`, and + * [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + * with value `0`. *
* * .google.maps.places.v1.Place.OpeningHours regular_opening_hours = 21; @@ -2122,7 +2137,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * A list of sub destinations related to the place.
+   * A list of sub-destinations related to the place.
    * 
* * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; @@ -2133,7 +2148,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * A list of sub destinations related to the place.
+   * A list of sub-destinations related to the place.
    * 
* * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; @@ -2144,7 +2159,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * A list of sub destinations related to the place.
+   * A list of sub-destinations related to the place.
    * 
* * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; @@ -2155,7 +2170,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * A list of sub destinations related to the place.
+   * A list of sub-destinations related to the place.
    * 
* * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; @@ -2167,7 +2182,7 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * A list of sub destinations related to the place.
+   * A list of sub-destinations related to the place.
    * 
* * repeated .google.maps.places.v1.Place.SubDestination sub_destinations = 71; @@ -2295,10 +2310,6 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
    * AI-generated summary of the place.
    * 
* @@ -2312,10 +2323,6 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
    * AI-generated summary of the place.
    * 
* @@ -2329,10 +2336,6 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * * *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
    * AI-generated summary of the place.
    * 
* @@ -2340,55 +2343,6 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening */ com.google.maps.places.v1.Place.GenerativeSummaryOrBuilder getGenerativeSummaryOrBuilder(); - /** - * - * - *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
-   * 
- * - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; - * - * @return Whether the areaSummary field is set. - */ - boolean hasAreaSummary(); - - /** - * - * - *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
-   * 
- * - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; - * - * @return The areaSummary. - */ - com.google.maps.places.v1.Place.AreaSummary getAreaSummary(); - - /** - * - * - *
-   * Experimental: See
-   * https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
-   * for more details.
-   *
-   * AI-generated summary of the area that the place is in.
-   * 
- * - * .google.maps.places.v1.Place.AreaSummary area_summary = 81; - */ - com.google.maps.places.v1.Place.AreaSummaryOrBuilder getAreaSummaryOrBuilder(); - /** * * @@ -2479,6 +2433,52 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening */ boolean getPureServiceAreaBusiness(); + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + * + * @return Whether the addressDescriptor field is set. + */ + boolean hasAddressDescriptor(); + + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + * + * @return The addressDescriptor. + */ + com.google.maps.places.v1.AddressDescriptor getAddressDescriptor(); + + /** + * + * + *
+   * The address descriptor of the place. Address descriptors include additional
+   * information that help describe a location using landmarks and areas. See
+   * address descriptor regional coverage in
+   * https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
+   * 
+ * + * .google.maps.places.v1.AddressDescriptor address_descriptor = 84; + */ + com.google.maps.places.v1.AddressDescriptorOrBuilder getAddressDescriptorOrBuilder(); + /** * * @@ -2515,4 +2515,119 @@ com.google.maps.places.v1.Place.OpeningHoursOrBuilder getRegularSecondaryOpening * .google.maps.places.v1.PriceRange price_range = 86; */ com.google.maps.places.v1.PriceRangeOrBuilder getPriceRangeOrBuilder(); + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + * + * @return Whether the reviewSummary field is set. + */ + boolean hasReviewSummary(); + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + * + * @return The reviewSummary. + */ + com.google.maps.places.v1.Place.ReviewSummary getReviewSummary(); + + /** + * + * + *
+   * AI-generated summary of the place using user reviews.
+   * 
+ * + * .google.maps.places.v1.Place.ReviewSummary review_summary = 87; + */ + com.google.maps.places.v1.Place.ReviewSummaryOrBuilder getReviewSummaryOrBuilder(); + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return Whether the evChargeAmenitySummary field is set. + */ + boolean hasEvChargeAmenitySummary(); + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + * + * @return The evChargeAmenitySummary. + */ + com.google.maps.places.v1.Place.EvChargeAmenitySummary getEvChargeAmenitySummary(); + + /** + * + * + *
+   * The summary of amenities near the EV charging station.
+   * 
+ * + * .google.maps.places.v1.Place.EvChargeAmenitySummary ev_charge_amenity_summary = 89; + * + */ + com.google.maps.places.v1.Place.EvChargeAmenitySummaryOrBuilder + getEvChargeAmenitySummaryOrBuilder(); + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + * + * @return Whether the neighborhoodSummary field is set. + */ + boolean hasNeighborhoodSummary(); + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + * + * @return The neighborhoodSummary. + */ + com.google.maps.places.v1.Place.NeighborhoodSummary getNeighborhoodSummary(); + + /** + * + * + *
+   * A summary of points of interest near the place.
+   * 
+ * + * .google.maps.places.v1.Place.NeighborhoodSummary neighborhood_summary = 91; + */ + com.google.maps.places.v1.Place.NeighborhoodSummaryOrBuilder getNeighborhoodSummaryOrBuilder(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java index 24050d1fd2c5..4dc7220a921f 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceProto.java @@ -80,14 +80,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_maps_places_v1_Place_GenerativeSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_places_v1_Place_AreaSummary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_ReviewSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -100,16 +108,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "!google/maps/places/v1/place.proto\022\025goo" + "gle.maps.places.v1\032\031google/api/resource." - + "proto\032\036google/geo/type/viewport.proto\032)g" - + "oogle/maps/places/v1/content_block.proto\032\'google/maps/places/v1/ev_charging.prot" - + "o\032(google/maps/places/v1/fuel_options.pr" - + "oto\032!google/maps/places/v1/photo.proto\032\'" - + "google/maps/places/v1/price_range.proto\032" - + "%google/maps/places/v1/reference.proto\032\"" - + "google/maps/places/v1/review.proto\032\037goog" - + "le/protobuf/timestamp.proto\032\026google/type" - + "/date.proto\032\032google/type/datetime.proto\032\030google/type/latlng.proto\032" - + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\2570\n" + + "proto\032\036google/geo/type/viewport.proto\032.g" + + "oogle/maps/places/v1/address_descriptor.proto\032)google/maps/places/v1/content_blo" + + "ck.proto\032\'google/maps/places/v1/ev_charg" + + "ing.proto\032(google/maps/places/v1/fuel_options.proto\032!google/maps/places/v1/photo" + + ".proto\032\'google/maps/places/v1/price_rang" + + "e.proto\032\"google/maps/places/v1/review.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\026go" + + "ogle/type/date.proto\032\032google/type/datetime.proto\032\030google/type/latlng.proto\032" + + " google/type/localized_text.proto\032 google/type/postal_address.proto\"\3536\n" + "\005Place\022\014\n" + "\004name\030\001 \001(\t\022\n\n" + "\002id\030\002 \001(\t\0220\n" @@ -138,8 +145,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\ttime_zone\030X \001(\0132\025.google.type.TimeZone\022,\n" + "\006photos\0306 \003(\0132\034.google.maps.places.v1.Photo\022\032\n" + "\022adr_format_address\030\030 \001(\t\022D\n" - + "\017business_status\030\031 \001(\0162+.goog" - + "le.maps.places.v1.Place.BusinessStatus\0226\n" + + "\017business_status\030\031 \001" + + "(\0162+.google.maps.places.v1.Place.BusinessStatus\0226\n" + "\013price_level\030\032 \001(\0162!.google.maps.places.v1.PriceLevel\022>\n" + "\014attributions\030\033 \003(\0132(.google.maps.places.v1.Place.Attribution\022\036\n" + "\021user_rating_count\030\034 \001(\005H\001\210\001\001\022\032\n" @@ -179,19 +186,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030good_for_watching_sports\030B \001(\010H\030\210\001\001\022D\n" + "\017payment_options\030C \001(\0132+.google.maps.places.v1.Place.PaymentOptions\022D\n" + "\017parking_options\030F \001(\0132+.google.maps.places.v1.Place.ParkingOptions\022E\n" - + "\020sub_destinations\030G \003" - + "(\0132+.google.maps.places.v1.Place.SubDestination\022U\n" - + "\025accessibility_options\030H \001(\01321" - + ".google.maps.places.v1.Place.AccessibilityOptionsH\031\210\001\001\0228\n" + + "\020sub_destinations\030G" + + " \003(\0132+.google.maps.places.v1.Place.SubDestination\022U\n" + + "\025accessibility_options\030H" + + " \001(\01321.google.maps.places.v1.Place.AccessibilityOptionsH\031\210\001\001\0228\n" + "\014fuel_options\030N \001(\0132\".google.maps.places.v1.FuelOptions\022A\n" + "\021ev_charge_options\030O \001(\0132&.google.maps.places.v1.EVChargeOptions\022J\n" + "\022generative_summary\030P" - + " \001(\0132..google.maps.places.v1.Place.GenerativeSummary\022>\n" - + "\014area_summary\030Q \001(\0132(.google.maps.places.v1.Place.AreaSummary\022G\n" + + " \001(\0132..google.maps.places.v1.Place.GenerativeSummary\022G\n" + "\021containing_places\030R" + " \003(\0132,.google.maps.places.v1.Place.ContainingPlace\022\'\n" - + "\032pure_service_area_business\030S \001(\010H\032\210\001\001\0226\n" - + "\013price_range\030V \001(\0132!.google.maps.places.v1.PriceRange\032_\n" + + "\032pure_service_area_business\030S \001(\010H\032\210\001\001\022D\n" + + "\022address_descriptor\030T \001(\0132(.google.maps.places.v1.AddressDescriptor\0226\n" + + "\013price_range\030V \001(\0132!.google.maps.places.v1.PriceRange\022B\n" + + "\016review_summary\030W \001(\0132*.google.maps.places.v1.Place.ReviewSummary\022V\n" + + "\031ev_charge_amenity_summary\030Y" + + " \001(\01323.google.maps.places.v1.Place.EvChargeAmenitySummary\022N\n" + + "\024neighborhood_summary\030[" + + " \001(\01320.google.maps.places.v1.Place.NeighborhoodSummary\032_\n" + "\020AddressComponent\022\021\n" + "\tlong_text\030\001 \001(\t\022\022\n\n" + "short_text\030\002 \001(\t\022\r\n" @@ -202,20 +214,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "compound_code\030\002 \001(\t\032\375\007\n" + "\014OpeningHours\022\025\n" + "\010open_now\030\001 \001(\010H\000\210\001\001\022A\n" - + "\007periods\030\002" - + " \003(\01320.google.maps.places.v1.Place.OpeningHours.Period\022\034\n" + + "\007periods\030\002 \003(\01320.google." + + "maps.places.v1.Place.OpeningHours.Period\022\034\n" + "\024weekday_descriptions\030\003 \003(\t\022Z\n" - + "\024secondary_hours_type\030\004" - + " \001(\0162<.google.maps.places.v1.Place.OpeningHours.SecondaryHoursType\022J\n" - + "\014special_days\030\005" - + " \003(\01324.google.maps.places.v1.Place.OpeningHours.SpecialDay\0222\n" + + "\024secondary_hours_type\030\004 \001(\0162<.google.maps.place" + + "s.v1.Place.OpeningHours.SecondaryHoursType\022J\n" + + "\014special_days\030\005 \003(\01324.google.maps.p" + + "laces.v1.Place.OpeningHours.SpecialDay\0222\n" + "\016next_open_time\030\006 \001(\0132\032.google.protobuf.Timestamp\0223\n" + "\017next_close_time\030\007 \001(\0132\032.google.protobuf.Timestamp\032\251\002\n" + "\006Period\022D\n" - + "\004open\030\001 \001(\01326." - + "google.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" - + "\005close\030\002 \001(\01326.google.ma" - + "ps.places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + + "\004open\030\001" + + " \001(\01326.google.maps.places.v1.Place.OpeningHours.Period.Point\022E\n" + + "\005close\030\002 \001(\0132" + + "6.google.maps.places.v1.Place.OpeningHours.Period.Point\032\221\001\n" + "\005Point\022\020\n" + "\003day\030\001 \001(\005H\000\210\001\001\022\021\n" + "\004hour\030\002 \001(\005H\001\210\001\001\022\023\n" @@ -284,17 +296,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_wheelchair_accessible_parkingB!\n" + "\037_wheelchair_accessible_entranceB!\n" + "\037_wheelchair_accessible_restroomB \n" - + "\036_wheelchair_accessible_seating\032\251\001\n" + + "\036_wheelchair_accessible_seating\032\231\001\n" + "\021GenerativeSummary\022,\n" - + "\010overview\030\001 \001(\0132\032.google.type.LocalizedText\022/\n" - + "\013description\030\002 \001(\0132\032.google.type.LocalizedText\0225\n\n" - + "references\030\003 \001(\0132!.google.maps.places.v1.References\032J\n" - + "\013AreaSummary\022;\n" - + "\016content_blocks\030\004 \003(\0132#.google.maps.places.v1.ContentBlock\032M\n" + + "\010overview\030\001 \001(\0132\032.google.type.LocalizedText\022!\n" + + "\031overview_flag_content_uri\030\004 \001(\t\0223\n" + + "\017disclosure_text\030\006 \001(\0132\032.google.type.LocalizedText\032M\n" + "\017ContainingPlace\022.\n" + "\004name\030\001 \001(\tB \372A\035\n" + "\033places.googleapis.com/Place\022\n\n" - + "\002id\030\002 \001(\t\"r\n" + + "\002id\030\002 \001(\t\032\210\001\n\r" + + "ReviewSummary\022(\n" + + "\004text\030\001 \001(\0132\032.google.type.LocalizedText\022\030\n" + + "\020flag_content_uri\030\002 \001(\t\0223\n" + + "\017disclosure_text\030\003 \001(\0132\032.google.type.LocalizedText\032\300\002\n" + + "\026EvChargeAmenitySummary\0225\n" + + "\010overview\030\001 \001(\0132#.google.maps.places.v1.ContentBlock\0223\n" + + "\006coffee\030\002 \001(\0132#.google.maps.places.v1.ContentBlock\0227\n\n" + + "restaurant\030\003 \001(\0132#.google.maps.places.v1.ContentBlock\0222\n" + + "\005store\030\004 \001(\0132#.google.maps.places.v1.ContentBlock\022\030\n" + + "\020flag_content_uri\030\005 \001(\t\0223\n" + + "\017disclosure_text\030\006 \001(\0132\032.google.type.LocalizedText\032\325\001\n" + + "\023NeighborhoodSummary\0225\n" + + "\010overview\030\001 \001(\0132#.google.maps.places.v1.ContentBlock\0228\n" + + "\013description\030\002 \001(\0132#.google.maps.places.v1.ContentBlock\022\030\n" + + "\020flag_content_uri\030\003 \001(\t\0223\n" + + "\017disclosure_text\030\004 \001(\0132\032.google.type.LocalizedText\"r\n" + "\016BusinessStatus\022\037\n" + "\033BUSINESS_STATUS_UNSPECIFIED\020\000\022\017\n" + "\013OPERATIONAL\020\001\022\026\n" @@ -336,9 +362,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRICE_LEVEL_EXPENSIVE\020\004\022\036\n" + "\032PRICE_LEVEL_VERY_EXPENSIVE\020\005B\233\001\n" + "\031com.google.maps.places.v1B\n" - + "PlaceProtoP\001Z7cloud.google.com/go/maps/places/apiv1/placespb;" - + "placespb\242\002\006GMPSV1\252\002\025Google.Maps.Places.V" - + "1\312\002\025Google\\Maps\\Places\\V1b\006proto3" + + "PlaceProtoP\001Z7cloud.google.com/go/maps/places/apiv1/placespb;pla" + + "cespb\242\002\006GMPSV1\252\002\025Google.Maps.Places.V1\312\002" + + "\025Google\\Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -346,12 +372,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.ResourceProto.getDescriptor(), com.google.geo.type.ViewportProto.getDescriptor(), + com.google.maps.places.v1.AddressDescriptorProto.getDescriptor(), com.google.maps.places.v1.ContentBlockProto.getDescriptor(), com.google.maps.places.v1.EvChargingProto.getDescriptor(), com.google.maps.places.v1.FuelOptionsProto.getDescriptor(), com.google.maps.places.v1.PhotoProto.getDescriptor(), com.google.maps.places.v1.PriceRangeProto.getDescriptor(), - com.google.maps.places.v1.ReferenceProto.getDescriptor(), com.google.maps.places.v1.ReviewProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -430,10 +456,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FuelOptions", "EvChargeOptions", "GenerativeSummary", - "AreaSummary", "ContainingPlaces", "PureServiceAreaBusiness", + "AddressDescriptor", "PriceRange", + "ReviewSummary", + "EvChargeAmenitySummary", + "NeighborhoodSummary", }); internal_static_google_maps_places_v1_Place_AddressComponent_descriptor = internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(0); @@ -546,23 +575,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_maps_places_v1_Place_GenerativeSummary_descriptor, new java.lang.String[] { - "Overview", "Description", "References", + "Overview", "OverviewFlagContentUri", "DisclosureText", }); - internal_static_google_maps_places_v1_Place_AreaSummary_descriptor = + internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor = internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(9); - internal_static_google_maps_places_v1_Place_AreaSummary_fieldAccessorTable = + internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_places_v1_Place_AreaSummary_descriptor, + internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor, new java.lang.String[] { - "ContentBlocks", + "Name", "Id", }); - internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor = + internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor = internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(10); - internal_static_google_maps_places_v1_Place_ContainingPlace_fieldAccessorTable = + internal_static_google_maps_places_v1_Place_ReviewSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_places_v1_Place_ContainingPlace_descriptor, + internal_static_google_maps_places_v1_Place_ReviewSummary_descriptor, new java.lang.String[] { - "Name", "Id", + "Text", "FlagContentUri", "DisclosureText", + }); + internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(11); + internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_EvChargeAmenitySummary_descriptor, + new java.lang.String[] { + "Overview", "Coffee", "Restaurant", "Store", "FlagContentUri", "DisclosureText", + }); + internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor = + internal_static_google_maps_places_v1_Place_descriptor.getNestedTypes().get(12); + internal_static_google_maps_places_v1_Place_NeighborhoodSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_places_v1_Place_NeighborhoodSummary_descriptor, + new java.lang.String[] { + "Overview", "Description", "FlagContentUri", "DisclosureText", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -572,12 +617,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.ResourceProto.getDescriptor(); com.google.geo.type.ViewportProto.getDescriptor(); + com.google.maps.places.v1.AddressDescriptorProto.getDescriptor(); com.google.maps.places.v1.ContentBlockProto.getDescriptor(); com.google.maps.places.v1.EvChargingProto.getDescriptor(); com.google.maps.places.v1.FuelOptionsProto.getDescriptor(); com.google.maps.places.v1.PhotoProto.getDescriptor(); com.google.maps.places.v1.PriceRangeProto.getDescriptor(); - com.google.maps.places.v1.ReferenceProto.getDescriptor(); com.google.maps.places.v1.ReviewProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java index 486ca5157055..b84750299de4 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java @@ -42,6 +42,8 @@ private Review(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Review() { name_ = ""; relativePublishTimeDescription_ = ""; + flagContentUri_ = ""; + googleMapsUri_ = ""; } @java.lang.Override @@ -400,6 +402,112 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } + public static final int FLAG_CONTENT_URI_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object flagContentUri_ = ""; + + /** + * + * + *
+   * A link where users can flag a problem with the review.
+   * 
+ * + * string flag_content_uri = 15; + * + * @return The flagContentUri. + */ + @java.lang.Override + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A link where users can flag a problem with the review.
+   * 
+ * + * string flag_content_uri = 15; + * + * @return The bytes for flagContentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_MAPS_URI_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleMapsUri_ = ""; + + /** + * + * + *
+   * A link to show the review on Google Maps.
+   * 
+ * + * string google_maps_uri = 16; + * + * @return The googleMapsUri. + */ + @java.lang.Override + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * A link to show the review on Google Maps.
+   * 
+ * + * string google_maps_uri = 16; + * + * @return The bytes for googleMapsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -436,6 +544,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(14, getPublishTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, flagContentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, googleMapsUri_); + } getUnknownFields().writeTo(output); } @@ -468,6 +582,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getPublishTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flagContentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, flagContentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, googleMapsUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -504,6 +624,8 @@ public boolean equals(final java.lang.Object obj) { if (hasPublishTime()) { if (!getPublishTime().equals(other.getPublishTime())) return false; } + if (!getFlagContentUri().equals(other.getFlagContentUri())) return false; + if (!getGoogleMapsUri().equals(other.getGoogleMapsUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,6 +661,10 @@ public int hashCode() { hash = (37 * hash) + PUBLISH_TIME_FIELD_NUMBER; hash = (53 * hash) + getPublishTime().hashCode(); } + hash = (37 * hash) + FLAG_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getFlagContentUri().hashCode(); + hash = (37 * hash) + GOOGLE_MAPS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -713,6 +839,8 @@ public Builder clear() { publishTimeBuilder_.dispose(); publishTimeBuilder_ = null; } + flagContentUri_ = ""; + googleMapsUri_ = ""; return this; } @@ -779,6 +907,12 @@ private void buildPartial0(com.google.maps.places.v1.Review result) { publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.flagContentUri_ = flagContentUri_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.googleMapsUri_ = googleMapsUri_; + } result.bitField0_ |= to_bitField0_; } @@ -852,6 +986,16 @@ public Builder mergeFrom(com.google.maps.places.v1.Review other) { if (other.hasPublishTime()) { mergePublishTime(other.getPublishTime()); } + if (!other.getFlagContentUri().isEmpty()) { + flagContentUri_ = other.flagContentUri_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getGoogleMapsUri().isEmpty()) { + googleMapsUri_ = other.googleMapsUri_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -921,6 +1065,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 114 + case 122: + { + flagContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 122 + case 130: + { + googleMapsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2007,6 +2163,228 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { return publishTimeBuilder_; } + private java.lang.Object flagContentUri_ = ""; + + /** + * + * + *
+     * A link where users can flag a problem with the review.
+     * 
+ * + * string flag_content_uri = 15; + * + * @return The flagContentUri. + */ + public java.lang.String getFlagContentUri() { + java.lang.Object ref = flagContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flagContentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A link where users can flag a problem with the review.
+     * 
+ * + * string flag_content_uri = 15; + * + * @return The bytes for flagContentUri. + */ + public com.google.protobuf.ByteString getFlagContentUriBytes() { + java.lang.Object ref = flagContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + flagContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A link where users can flag a problem with the review.
+     * 
+ * + * string flag_content_uri = 15; + * + * @param value The flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + flagContentUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * A link where users can flag a problem with the review.
+     * 
+ * + * string flag_content_uri = 15; + * + * @return This builder for chaining. + */ + public Builder clearFlagContentUri() { + flagContentUri_ = getDefaultInstance().getFlagContentUri(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * A link where users can flag a problem with the review.
+     * 
+ * + * string flag_content_uri = 15; + * + * @param value The bytes for flagContentUri to set. + * @return This builder for chaining. + */ + public Builder setFlagContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + flagContentUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object googleMapsUri_ = ""; + + /** + * + * + *
+     * A link to show the review on Google Maps.
+     * 
+ * + * string google_maps_uri = 16; + * + * @return The googleMapsUri. + */ + public java.lang.String getGoogleMapsUri() { + java.lang.Object ref = googleMapsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A link to show the review on Google Maps.
+     * 
+ * + * string google_maps_uri = 16; + * + * @return The bytes for googleMapsUri. + */ + public com.google.protobuf.ByteString getGoogleMapsUriBytes() { + java.lang.Object ref = googleMapsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A link to show the review on Google Maps.
+     * 
+ * + * string google_maps_uri = 16; + * + * @param value The googleMapsUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleMapsUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to show the review on Google Maps.
+     * 
+ * + * string google_maps_uri = 16; + * + * @return This builder for chaining. + */ + public Builder clearGoogleMapsUri() { + googleMapsUri_ = getDefaultInstance().getGoogleMapsUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * A link to show the review on Google Maps.
+     * 
+ * + * string google_maps_uri = 16; + * + * @param value The bytes for googleMapsUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleMapsUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java index 363cde736a60..2ddacbc5145a 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java @@ -242,4 +242,56 @@ public interface ReviewOrBuilder * .google.protobuf.Timestamp publish_time = 14; */ com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder(); + + /** + * + * + *
+   * A link where users can flag a problem with the review.
+   * 
+ * + * string flag_content_uri = 15; + * + * @return The flagContentUri. + */ + java.lang.String getFlagContentUri(); + + /** + * + * + *
+   * A link where users can flag a problem with the review.
+   * 
+ * + * string flag_content_uri = 15; + * + * @return The bytes for flagContentUri. + */ + com.google.protobuf.ByteString getFlagContentUriBytes(); + + /** + * + * + *
+   * A link to show the review on Google Maps.
+   * 
+ * + * string google_maps_uri = 16; + * + * @return The googleMapsUri. + */ + java.lang.String getGoogleMapsUri(); + + /** + * + * + *
+   * A link to show the review on Google Maps.
+   * 
+ * + * string google_maps_uri = 16; + * + * @return The bytes for googleMapsUri. + */ + com.google.protobuf.ByteString getGoogleMapsUriBytes(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java index a13ba430e2c9..5b602db5793f 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java @@ -45,21 +45,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.maps.places.v1\032\031google/api/resource" + ".proto\032\'google/maps/places/v1/attributio" + "n.proto\032\037google/protobuf/timestamp.proto" - + "\032 google/type/localized_text.proto\"\373\002\n\006R" - + "eview\022\014\n\004name\030\001 \001(\t\022)\n!relative_publish_" - + "time_description\030\002 \001(\t\022(\n\004text\030\t \001(\0132\032.g" - + "oogle.type.LocalizedText\0221\n\roriginal_tex" - + "t\030\014 \001(\0132\032.google.type.LocalizedText\022\016\n\006r" - + "ating\030\007 \001(\001\022D\n\022author_attribution\030\r \001(\0132" - + "(.google.maps.places.v1.AuthorAttributio" - + "n\0220\n\014publish_time\030\016 \001(\0132\032.google.protobu" - + "f.Timestamp:S\352AP\n\034places.googleapis.com/" - + "Review\022\037places/{place}/reviews/{review}*" - + "\007reviews2\006reviewB\234\001\n\031com.google.maps.pla" - + "ces.v1B\013ReviewProtoP\001Z7cloud.google.com/" - + "go/maps/places/apiv1/placespb;placespb\242\002" - + "\006GMPSV1\252\002\025Google.Maps.Places.V1\312\002\025Google" - + "\\Maps\\Places\\V1b\006proto3" + + "\032\026google/type/date.proto\032 google/type/lo" + + "calized_text.proto\"\256\003\n\006Review\022\014\n\004name\030\001 " + + "\001(\t\022)\n!relative_publish_time_description" + + "\030\002 \001(\t\022(\n\004text\030\t \001(\0132\032.google.type.Local" + + "izedText\0221\n\roriginal_text\030\014 \001(\0132\032.google" + + ".type.LocalizedText\022\016\n\006rating\030\007 \001(\001\022D\n\022a" + + "uthor_attribution\030\r \001(\0132(.google.maps.pl" + + "aces.v1.AuthorAttribution\0220\n\014publish_tim" + + "e\030\016 \001(\0132\032.google.protobuf.Timestamp\022\030\n\020f" + + "lag_content_uri\030\017 \001(\t\022\027\n\017google_maps_uri" + + "\030\020 \001(\t:S\352AP\n\034places.googleapis.com/Revie" + + "w\022\037places/{place}/reviews/{review}*\007revi" + + "ews2\006reviewB\234\001\n\031com.google.maps.places.v" + + "1B\013ReviewProtoP\001Z7cloud.google.com/go/ma" + + "ps/places/apiv1/placespb;placespb\242\002\006GMPS" + + "V1\252\002\025Google.Maps.Places.V1\312\002\025Google\\Maps" + + "\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -68,6 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.maps.places.v1.AttributionProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), com.google.type.LocalizedTextProto.getDescriptor(), }); internal_static_google_maps_places_v1_Review_descriptor = @@ -83,6 +86,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rating", "AuthorAttribution", "PublishTime", + "FlagContentUri", + "GoogleMapsUri", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -92,6 +97,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.maps.places.v1.AttributionProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); com.google.type.LocalizedTextProto.getDescriptor(); } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto new file mode 100644 index 000000000000..b368b1253d59 --- /dev/null +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/address_descriptor.proto @@ -0,0 +1,144 @@ +// 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.maps.places.v1; + +import "google/api/resource.proto"; +import "google/type/localized_text.proto"; + +option csharp_namespace = "Google.Maps.Places.V1"; +option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb"; +option java_multiple_files = true; +option java_outer_classname = "AddressDescriptorProto"; +option java_package = "com.google.maps.places.v1"; +option objc_class_prefix = "GMPSV1"; +option php_namespace = "Google\\Maps\\Places\\V1"; + +// A relational description of a location. Includes a ranked set of nearby +// landmarks and precise containing areas and their relationship to the target +// location. +message AddressDescriptor { + // Basic landmark information and the landmark's relationship with the + // target location. + // + // Landmarks are prominent places that can be used to describe a location. + message Landmark { + // Defines the spatial relationship between the target location and the + // landmark. + enum SpatialRelationship { + // This is the default relationship when nothing more specific below + // applies. + NEAR = 0; + + // The landmark has a spatial geometry and the target is within its + // bounds. + WITHIN = 1; + + // The target is directly adjacent to the landmark. + BESIDE = 2; + + // The target is directly opposite the landmark on the other side of the + // road. + ACROSS_THE_ROAD = 3; + + // On the same route as the landmark but not besides or across. + DOWN_THE_ROAD = 4; + + // Not on the same route as the landmark but a single turn away. + AROUND_THE_CORNER = 5; + + // Close to the landmark's structure but further away from its street + // entrances. + BEHIND = 6; + } + + // The landmark's resource name. + string name = 1 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; + + // The landmark's place id. + string place_id = 2; + + // The landmark's display name. + google.type.LocalizedText display_name = 3; + + // A set of type tags for this landmark. For a complete list of possible + // values, see + // https://developers.google.com/maps/documentation/places/web-service/place-types. + repeated string types = 4; + + // Defines the spatial relationship between the target location and the + // landmark. + SpatialRelationship spatial_relationship = 5; + + // The straight line distance, in meters, between the center point of the + // target and the center point of the landmark. In some situations, this + // value can be longer than `travel_distance_meters`. + float straight_line_distance_meters = 6; + + // The travel distance, in meters, along the road network from the target to + // the landmark, if known. This value does not take into account the mode of + // transportation, such as walking, driving, or biking. + optional float travel_distance_meters = 7; + } + + // Area information and the area's relationship with the target location. + // + // Areas includes precise sublocality, neighborhoods, and large compounds that + // are useful for describing a location. + message Area { + // Defines the spatial relationship between the target location and the + // area. + enum Containment { + // The containment is unspecified. + CONTAINMENT_UNSPECIFIED = 0; + + // The target location is within the area region, close to the + // center. + WITHIN = 1; + + // The target location is within the area region, close to the edge. + OUTSKIRTS = 2; + + // The target location is outside the area region, but close by. + NEAR = 3; + } + + // The area's resource name. + string name = 1 [ + (google.api.resource_reference) = { type: "places.googleapis.com/Place" } + ]; + + // The area's place id. + string place_id = 2; + + // The area's display name. + google.type.LocalizedText display_name = 3; + + // Defines the spatial relationship between the target location and the + // area. + Containment containment = 4; + } + + // A ranked list of nearby landmarks. The most recognizable and nearby + // landmarks are ranked first. + repeated Landmark landmarks = 1; + + // A ranked list of containing or adjacent areas. The most recognizable and + // precise areas are ranked first. + repeated Area areas = 2; +} diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto index 490420425ef0..f9bfee5fad62 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto @@ -50,4 +50,10 @@ message Photo { // This photo's authors. repeated AuthorAttribution author_attributions = 4; + + // A link where users can flag a problem with the photo. + string flag_content_uri = 5; + + // A link to show the photo on Google Maps. + string google_maps_uri = 6; } diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto index 1fe0af61b41f..33dead097fd5 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/place.proto @@ -18,12 +18,12 @@ package google.maps.places.v1; import "google/api/resource.proto"; import "google/geo/type/viewport.proto"; +import "google/maps/places/v1/address_descriptor.proto"; import "google/maps/places/v1/content_block.proto"; import "google/maps/places/v1/ev_charging.proto"; import "google/maps/places/v1/fuel_options.proto"; import "google/maps/places/v1/photo.proto"; import "google/maps/places/v1/price_range.proto"; -import "google/maps/places/v1/reference.proto"; import "google/maps/places/v1/review.proto"; import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; @@ -273,15 +273,21 @@ message Place { optional bool paid_garage_parking = 7; } - // Place resource name and id of sub destinations that relate to the place. - // For example, different terminals are different destinations of an airport. + // Sub-destinations are specific places associated with a main place. These + // provide more specific destinations for users who are searching within a + // large or complex place, like an airport, national park, university, or + // stadium. For example, sub-destinations at an airport might include + // associated terminals and parking lots. Sub-destinations return the place ID + // and place resource name, which can be used in subsequent Place Details + // (New) requests to fetch richer details, including the sub-destination's + // display name and location. message SubDestination { - // The resource name of the sub destination. + // The resource name of the sub-destination. string name = 1 [ (google.api.resource_reference) = { type: "places.googleapis.com/Place" } ]; - // The place id of the sub destination. + // The place id of the sub-destination. string id = 2; } @@ -300,31 +306,18 @@ message Place { optional bool wheelchair_accessible_seating = 4; } - // Experimental: See - // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative - // for more details. - // // AI-generated summary of the place. message GenerativeSummary { // The overview of the place. google.type.LocalizedText overview = 1; - // The detailed description of the place. - google.type.LocalizedText description = 2; + // A link where users can flag a problem with the overview summary. + string overview_flag_content_uri = 4; - // References that are used to generate the summary description. - References references = 3; - } - - // Experimental: See - // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative - // for more details. - // - // AI-generated summary of the area that the place is in. - message AreaSummary { - // Content blocks that compose the area summary. Each block has a separate - // topic about the area. - repeated ContentBlock content_blocks = 4; + // The AI disclosure message "Summarized with Gemini" + // (and its localized variants). This will be in the language specified in + // the request if available. + google.type.LocalizedText disclosure_text = 6; } // Info about the place in which this place is located. @@ -338,6 +331,63 @@ message Place { string id = 2; } + // AI-generated summary of the place using user reviews. + message ReviewSummary { + // The summary of user reviews. + google.type.LocalizedText text = 1; + + // A link where users can flag a problem with the summary. + string flag_content_uri = 2; + + // The AI disclosure message "Summarized with Gemini" + // (and its localized variants). This will be in the language specified in + // the request if available. + google.type.LocalizedText disclosure_text = 3; + } + + // The summary of amenities near the EV charging station. This only applies to + // places with type `electric_vehicle_charging_station`. The `overview` field + // is guaranteed to be provided while the other fields are optional. + message EvChargeAmenitySummary { + // An overview of the available amenities. This is guaranteed to be + // provided. + ContentBlock overview = 1; + + // A summary of the nearby coffee options. + ContentBlock coffee = 2; + + // A summary of the nearby restaurants. + ContentBlock restaurant = 3; + + // A summary of the nearby gas stations. + ContentBlock store = 4; + + // A link where users can flag a problem with the summary. + string flag_content_uri = 5; + + // The AI disclosure message "Summarized with Gemini" + // (and its localized variants). This will be in the language specified in + // the request if available. + google.type.LocalizedText disclosure_text = 6; + } + + // A summary of points of interest near the place. + message NeighborhoodSummary { + // An overview summary of the neighborhood. + ContentBlock overview = 1; + + // A detailed description of the neighborhood. + ContentBlock description = 2; + + // A link where users can flag a problem with the summary. + string flag_content_uri = 3; + + // The AI disclosure message "Summarized with Gemini" + // (and its localized variants). This will be in the language specified in + // the request if available. + google.type.LocalizedText disclosure_text = 4; + } + // This Place's resource name, in `places/{place_id}` format. Can be used to // look up the Place. string name = 1; @@ -429,9 +479,14 @@ message Place { // The regular hours of operation. Note that if a place is always open (24 // hours), the `close` field will not be set. Clients can rely on always open // (24 hours) being represented as an - // [open][google.maps.places.v1.Place.OpeningHours.Period.open] period - // containing [day][Point.day] with value `0`, [hour][Point.hour] with - // value `0`, and [minute][Point.minute] with value `0`. + // [`open`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Period) + // period containing + // [`day`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + // with value `0`, + // [`hour`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + // with value `0`, and + // [`minute`](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places#Point) + // with value `0`. OpeningHours regular_opening_hours = 21; // Number of minutes this place's timezone is currently offset from UTC. @@ -573,7 +628,7 @@ message Place { // Options of parking provided by the place. ParkingOptions parking_options = 70; - // A list of sub destinations related to the place. + // A list of sub-destinations related to the place. repeated SubDestination sub_destinations = 71; // Information about the accessibility options a place offers. @@ -586,20 +641,9 @@ message Place { // Information of ev charging options. EVChargeOptions ev_charge_options = 79; - // Experimental: See - // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative - // for more details. - // // AI-generated summary of the place. GenerativeSummary generative_summary = 80; - // Experimental: See - // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative - // for more details. - // - // AI-generated summary of the area that the place is in. - AreaSummary area_summary = 81; - // List of places in which the current place is located. repeated ContainingPlace containing_places = 82; @@ -610,8 +654,23 @@ message Place { // have a physical address or location on Google Maps. optional bool pure_service_area_business = 83; + // The address descriptor of the place. Address descriptors include additional + // information that help describe a location using landmarks and areas. See + // address descriptor regional coverage in + // https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage. + AddressDescriptor address_descriptor = 84; + // The price range associated with a Place. PriceRange price_range = 86; + + // AI-generated summary of the place using user reviews. + ReviewSummary review_summary = 87; + + // The summary of amenities near the EV charging station. + EvChargeAmenitySummary ev_charge_amenity_summary = 89; + + // A summary of points of interest near the place. + NeighborhoodSummary neighborhood_summary = 91; } // Price level of the place. diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto index 17543a789b81..db6ca67648cb 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto @@ -19,6 +19,7 @@ package google.maps.places.v1; import "google/api/resource.proto"; import "google/maps/places/v1/attribution.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; import "google/type/localized_text.proto"; option csharp_namespace = "Google.Maps.Places.V1"; @@ -61,4 +62,10 @@ message Review { // Timestamp for the review. google.protobuf.Timestamp publish_time = 14; + + // A link where users can flag a problem with the review. + string flag_content_uri = 15; + + // A link to show the review on Google Maps. + string google_maps_uri = 16; } diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index b433bb258046..dd54e06b5b34 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routeoptimization - 0.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.19.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.19.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "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.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/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-maps-routing/README.md b/java-maps-routing/README.md index 91f91cc8da82..1fe5715fe3b0 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/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.59.0 + 26.60.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routing - 1.46.0 + 1.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.46.0' +implementation 'com.google.maps:google-maps-routing:1.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.46.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.47.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.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.47.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-maps-solar/README.md b/java-maps-solar/README.md index c00230b21eb2..7aa0452ace06 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-solar - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.20.0' +implementation 'com.google.maps:google-maps-solar:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.20.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "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.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/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-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index 68d01a508a72..fe0dc837f35a 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.ads-marketingplatform admin - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.10.0' +implementation 'com.google.ads-marketingplatform:admin:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.10.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.11.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.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.11.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-mediatranslation/README.md b/java-mediatranslation/README.md index 12a1c3747bc9..3e9c02e17e38 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/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.59.0 + 26.60.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-mediatranslation - 0.67.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.67.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "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-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/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-meet/README.md b/java-meet/README.md index bb9c9a26e209..5a160741957d 100644 --- a/java-meet/README.md +++ b/java-meet/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.59.0 + 26.60.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-meet - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.28.0' +implementation 'com.google.cloud:google-cloud-meet:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.29.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-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.29.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-memcache/README.md b/java-memcache/README.md index 5191ce1b81d9..d4489511f0e3 100644 --- a/java-memcache/README.md +++ b/java-memcache/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.59.0 + 26.60.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-memcache - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.61.0' +implementation 'com.google.cloud:google-cloud-memcache:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.62.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-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.62.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-migrationcenter/README.md b/java-migrationcenter/README.md index 99b0183c9ae0..6150ccb9a11f 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/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.59.0 + 26.60.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-migrationcenter - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.43.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "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-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/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-modelarmor/README.md b/java-modelarmor/README.md index 977825a9c732..2dce7ba0d9bc 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/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.59.0 + 26.60.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-modelarmor - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.2.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "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-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/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-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 97d6dfc756de..61b464192865 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/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.59.0 + 26.60.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-monitoring-dashboard - 2.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.63.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.64.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-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.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-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index d7c87ab8006c..2ef61445e222 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/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.59.0 + 26.60.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-monitoring-metricsscope - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.55.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.56.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-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.56.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-monitoring/README.md b/java-monitoring/README.md index bf6f03e3f326..52c593fb0e85 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/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.59.0 + 26.60.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-monitoring - 3.62.0 + 3.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.62.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.63.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-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.63.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-netapp/README.md b/java-netapp/README.md index 58ee9264bd2e..ea78ae99ce08 100644 --- a/java-netapp/README.md +++ b/java-netapp/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.59.0 + 26.60.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-netapp - 0.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.40.0' +implementation 'com.google.cloud:google-cloud-netapp:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.41.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-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.41.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-network-management/README.md b/java-network-management/README.md index 12033befb010..aa754747f645 100644 --- a/java-network-management/README.md +++ b/java-network-management/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.59.0 + 26.60.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-network-management - 1.62.0 + 1.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.62.0' +implementation 'com.google.cloud:google-cloud-network-management:1.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.63.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-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.63.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-network-security/README.md b/java-network-security/README.md index 2fc7ce347c2e..df00c57a50a4 100644 --- a/java-network-security/README.md +++ b/java-network-security/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.59.0 + 26.60.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-network-security - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.64.0' +implementation 'com.google.cloud:google-cloud-network-security:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.65.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-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.65.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-networkconnectivity/README.md b/java-networkconnectivity/README.md index 0232715df960..0bd7bf13b2d6 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/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.59.0 + 26.60.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-networkconnectivity - 1.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.60.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.61.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-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.61.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-networkservices/README.md b/java-networkservices/README.md index 47b6ee7375be..9b425aac816a 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/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.59.0 + 26.60.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-networkservices - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.17.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "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-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/README.md b/java-notebooks/README.md index 8fba1f33d081..54f202d5bbc8 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/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.59.0 + 26.60.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-notebooks - 1.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.59.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.60.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-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.60.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-optimization/README.md b/java-optimization/README.md index c8b0c19ded0c..307d64ca8100 100644 --- a/java-optimization/README.md +++ b/java-optimization/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.59.0 + 26.60.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-optimization - 1.59.0 + 1.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.59.0' +implementation 'com.google.cloud:google-cloud-optimization:1.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.60.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-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.60.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-oracledatabase/README.md b/java-oracledatabase/README.md index ca962cdf2106..d454a61f89d3 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/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.59.0 + 26.60.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-oracledatabase - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.10.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.11.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-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.11.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-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index ef62e3b7fc73..d1902b90c216 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/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.59.0 + 26.60.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-orchestration-airflow - 1.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.61.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.62.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-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.62.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-orgpolicy/README.md b/java-orgpolicy/README.md index f3f08f50db1f..31fffaf64a03 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/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.59.0 + 26.60.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-orgpolicy - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.61.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.62.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-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.62.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-os-config/README.md b/java-os-config/README.md index 4fb95c925425..1748254d0875 100644 --- a/java-os-config/README.md +++ b/java-os-config/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.59.0 + 26.60.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-os-config - 2.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.63.0' +implementation 'com.google.cloud:google-cloud-os-config:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.64.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-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.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-os-login/README.md b/java-os-login/README.md index 01cf6ceb3197..b34daa85397d 100644 --- a/java-os-login/README.md +++ b/java-os-login/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.59.0 + 26.60.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-os-login - 2.60.0 + 2.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.60.0' +implementation 'com.google.cloud:google-cloud-os-login:2.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.61.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-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.61.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-parallelstore/README.md b/java-parallelstore/README.md index d41e621fdfc2..a05fe9eb27e9 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/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.59.0 + 26.60.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-parallelstore - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.24.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.25.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-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.25.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-parametermanager/README.md b/java-parametermanager/README.md index c2de309bb242..1f619c94182b 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/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.59.0 + 26.60.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-parametermanager - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.5.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.6.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-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.6.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-phishingprotection/README.md b/java-phishingprotection/README.md index d6f8d040c5c4..735ddea974be 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/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.59.0 + 26.60.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-phishingprotection - 0.92.0 + 0.93.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.92.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.93.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-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.93.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-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 588ad8cdb81e..0c55e109c4dc 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/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.59.0 + 26.60.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-policy-troubleshooter - 1.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.60.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.61.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-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.61.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-policysimulator/README.md b/java-policysimulator/README.md index 0ecb54d56981..52a613ffd917 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/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.59.0 + 26.60.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-policysimulator - 0.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.40.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.41.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-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.41.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-private-catalog/README.md b/java-private-catalog/README.md index d8f6de653248..d023eb32ab02 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/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.59.0 + 26.60.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-private-catalog - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.63.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "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-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/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-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index ce4892062e11..b6a8bd9e5aa3 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/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.59.0 + 26.60.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-privilegedaccessmanager - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.15.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.16.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-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.16.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-profiler/README.md b/java-profiler/README.md index a0cafed04ecf..6c820b3d357a 100644 --- a/java-profiler/README.md +++ b/java-profiler/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.59.0 + 26.60.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-profiler - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.61.0' +implementation 'com.google.cloud:google-cloud-profiler:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.62.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-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.62.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-publicca/README.md b/java-publicca/README.md index 4a3d54be201e..6c83d023b4e1 100644 --- a/java-publicca/README.md +++ b/java-publicca/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.59.0 + 26.60.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-publicca - 0.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.58.0' +implementation 'com.google.cloud:google-cloud-publicca:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.59.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-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.59.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-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 01078d1e82c9..4b5f07057efe 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/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.59.0 + 26.60.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-rapidmigrationassessment - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.44.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.45.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-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.45.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-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index e67c57880f5e..e920c5e31335 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/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.59.0 + 26.60.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-recaptchaenterprise - 3.58.0 + 3.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.58.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.59.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-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.59.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-recommendations-ai/README.md b/java-recommendations-ai/README.md index f20d2bae8349..2bac19ac55b0 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.59.0 + 26.60.0 pom import @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.68.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.68.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.69.0" ``` ## Authentication @@ -201,7 +201,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-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.68.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/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-recommender/README.md b/java-recommender/README.md index ff0b25268b0f..02b1db36f728 100644 --- a/java-recommender/README.md +++ b/java-recommender/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.59.0 + 26.60.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-recommender - 2.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.63.0' +implementation 'com.google.cloud:google-cloud-recommender:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.64.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-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.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-redis-cluster/README.md b/java-redis-cluster/README.md index 751e3df59fc2..02153c488608 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/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.59.0 + 26.60.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-redis-cluster - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.33.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.34.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-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.34.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-redis/README.md b/java-redis/README.md index 9b52dbc5a65b..cdc406d8bd2b 100644 --- a/java-redis/README.md +++ b/java-redis/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.59.0 + 26.60.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-redis - 2.64.0 + 2.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.64.0' +implementation 'com.google.cloud:google-cloud-redis:2.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.65.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-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.65.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-resourcemanager/README.md b/java-resourcemanager/README.md index b003483a8b73..e8448bea0a35 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/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.59.0 + 26.60.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-resourcemanager - 1.63.0 + 1.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.63.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.64.0" ``` ## Authentication @@ -335,7 +335,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-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.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-retail/README.md b/java-retail/README.md index 5a74397128fb..17fcf201a5a3 100644 --- a/java-retail/README.md +++ b/java-retail/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.59.0 + 26.60.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-retail - 2.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.63.0' +implementation 'com.google.cloud:google-cloud-retail:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.64.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-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.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-run/README.md b/java-run/README.md index 7fb45ab2ff17..aeb4076af4d5 100644 --- a/java-run/README.md +++ b/java-run/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.59.0 + 26.60.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-run - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.61.0' +implementation 'com.google.cloud:google-cloud-run:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.62.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-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.62.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-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java index 6036fa356f3b..5302ac7cbb93 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java @@ -118,6 +118,8 @@ public void getRevisionTest() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -194,6 +196,8 @@ public void getRevisionTest2() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -372,6 +376,8 @@ public void deleteRevisionTest() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); Operation resultOperation = @@ -453,6 +459,8 @@ public void deleteRevisionTest2() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java index 4e0963f99fea..7e1b15568f06 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java @@ -126,6 +126,8 @@ public void getRevisionTest() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); mockRevisions.addResponse(expectedResponse); @@ -196,6 +198,8 @@ public void getRevisionTest2() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); mockRevisions.addResponse(expectedResponse); @@ -354,6 +358,8 @@ public void deleteRevisionTest() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); Operation resultOperation = @@ -432,6 +438,8 @@ public void deleteRevisionTest2() throws Exception { .setSessionAffinity(true) .setScalingStatus(RevisionScalingStatus.newBuilder().build()) .setNodeSelector(NodeSelector.newBuilder().build()) + .setGpuZonalRedundancyDisabled(true) + .setCreator("creator1028554796") .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java index 2f1f98f5a4f2..a9cd256b4bb1 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java @@ -114,6 +114,7 @@ public void getTaskTest() throws Exception { .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") .setSatisfiesPzs(true) + .setNodeSelector(NodeSelector.newBuilder().build()) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -190,6 +191,7 @@ public void getTaskTest2() throws Exception { .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") .setSatisfiesPzs(true) + .setNodeSelector(NodeSelector.newBuilder().build()) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java index d2b351c7f394..d687376fd556 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java @@ -120,6 +120,7 @@ public void getTaskTest() throws Exception { .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") .setSatisfiesPzs(true) + .setNodeSelector(NodeSelector.newBuilder().build()) .setEtag("etag3123477") .build(); mockTasks.addResponse(expectedResponse); @@ -190,6 +191,7 @@ public void getTaskTest2() throws Exception { .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") .setSatisfiesPzs(true) + .setNodeSelector(NodeSelector.newBuilder().build()) .setEtag("etag3123477") .build(); mockTasks.addResponse(expectedResponse); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index ac306652fbf3..4b19cf79bea8 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java @@ -614,6 +614,16 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { * INTERNAL = 16; */ INTERNAL(16), + /** + * + * + *
+     * User-provided VPC network was not found.
+     * 
+ * + * VPC_NETWORK_NOT_FOUND = 17; + */ + VPC_NETWORK_NOT_FOUND(17), UNRECOGNIZED(-1), ; @@ -782,6 +792,17 @@ public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_VALUE = 16; + /** + * + * + *
+     * User-provided VPC network was not found.
+     * 
+ * + * VPC_NETWORK_NOT_FOUND = 17; + */ + public static final int VPC_NETWORK_NOT_FOUND_VALUE = 17; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -836,6 +857,8 @@ public static CommonReason forNumber(int value) { return POSTPONED_RETRY; case 16: return INTERNAL; + case 17: + return VPC_NETWORK_NOT_FOUND; default: return null; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java index 740d86fd04a0..f1208f0bf916 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -41,52 +41,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n#google/cloud/run/v2/condition.proto\022\023g" + "\n" + + "#google/cloud/run/v2/condition.proto\022\023g" + "oogle.cloud.run.v2\032\037google/api/field_beh" - + "avior.proto\032\037google/protobuf/timestamp.p" - + "roto\"\254\014\n\tCondition\022\014\n\004type\030\001 \001(\t\0223\n\005stat" - + "e\030\002 \001(\0162$.google.cloud.run.v2.Condition." - + "State\022\017\n\007message\030\003 \001(\t\0228\n\024last_transitio" - + "n_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\0229\n\010severity\030\005 \001(\0162\'.google.cloud.run.v2" - + ".Condition.Severity\022B\n\006reason\030\006 \001(\0162+.go" - + "ogle.cloud.run.v2.Condition.CommonReason" - + "B\003\340A\003H\000\022M\n\017revision_reason\030\t \001(\0162-.googl" - + "e.cloud.run.v2.Condition.RevisionReasonB" - + "\003\340A\003H\000\022O\n\020execution_reason\030\013 \001(\0162..googl" - + "e.cloud.run.v2.Condition.ExecutionReason" - + "B\003\340A\003H\000\"\177\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\025\n\021CONDITION_PENDING\020\001\022\031\n\025CONDITION_RECO" - + "NCILING\020\002\022\024\n\020CONDITION_FAILED\020\003\022\027\n\023CONDI" - + "TION_SUCCEEDED\020\004\"F\n\010Severity\022\030\n\024SEVERITY" - + "_UNSPECIFIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\010" - + "\n\004INFO\020\003\"\262\003\n\014CommonReason\022\033\n\027COMMON_REAS" - + "ON_UNDEFINED\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017REVISION_" - + "FAILED\020\003\022\036\n\032PROGRESS_DEADLINE_EXCEEDED\020\004" - + "\022\025\n\021CONTAINER_MISSING\020\006\022\037\n\033CONTAINER_PER" - + "MISSION_DENIED\020\007\022 \n\034CONTAINER_IMAGE_UNAU" - + "THORIZED\020\010\022.\n*CONTAINER_IMAGE_AUTHORIZAT" - + "ION_CHECK_FAILED\020\t\022$\n ENCRYPTION_KEY_PER" - + "MISSION_DENIED\020\n\022\037\n\033ENCRYPTION_KEY_CHECK" - + "_FAILED\020\013\022\037\n\033SECRETS_ACCESS_CHECK_FAILED" - + "\020\014\022\031\n\025WAITING_FOR_OPERATION\020\r\022\023\n\017IMMEDIA" - + "TE_RETRY\020\016\022\023\n\017POSTPONED_RETRY\020\017\022\014\n\010INTER" - + "NAL\020\020\"\312\002\n\016RevisionReason\022\035\n\031REVISION_REA" - + "SON_UNDEFINED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RESERVE\020" - + "\002\022\013\n\007RETIRED\020\003\022\014\n\010RETIRING\020\004\022\016\n\nRECREATI" - + "NG\020\005\022 \n\034HEALTH_CHECK_CONTAINER_ERROR\020\006\022$" - + "\n CUSTOMIZED_PATH_RESPONSE_PENDING\020\007\022!\n\035" - + "MIN_INSTANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIV" - + "E_REVISION_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYM" - + "ENT\020\n\022\030\n\024HEALTH_CHECK_SKIPPED\020\013\022\031\n\025MIN_I" - + "NSTANCES_WARMING\020\014\"\233\001\n\017ExecutionReason\022\036" - + "\n\032EXECUTION_REASON_UNDEFINED\020\000\022$\n JOB_ST" - + "ATUS_SERVICE_POLLING_ERROR\020\001\022\026\n\022NON_ZERO" - + "_EXIT_CODE\020\002\022\r\n\tCANCELLED\020\003\022\016\n\nCANCELLIN" - + "G\020\004\022\013\n\007DELETED\020\005B\t\n\007reasonsBV\n\027com.googl" - + "e.cloud.run.v2B\016ConditionProtoP\001Z)cloud." - + "google.com/go/run/apiv2/runpb;runpbb\006pro" - + "to3" + + "avior.proto\032\037google/protobuf/timestamp.proto\"\307\014\n" + + "\tCondition\022\014\n" + + "\004type\030\001 \001(\t\0223\n" + + "\005state\030\002 \001(\0162$.google.cloud.run.v2.Condition.State\022\017\n" + + "\007message\030\003 \001(\t\0228\n" + + "\024last_transition_time\030\004 \001(\0132\032.google.protobuf.Timestamp\0229\n" + + "\010severity\030\005 \001(\0162\'.google.cloud.run.v2.Condition.Severity\022B\n" + + "\006reason\030\006 \001(\0162+.go" + + "ogle.cloud.run.v2.Condition.CommonReasonB\003\340A\003H\000\022M\n" + + "\017revision_reason\030\t \001(\0162-.googl" + + "e.cloud.run.v2.Condition.RevisionReasonB\003\340A\003H\000\022O\n" + + "\020execution_reason\030\013 \001(\0162..googl" + + "e.cloud.run.v2.Condition.ExecutionReasonB\003\340A\003H\000\"\177\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\025\n" + + "\021CONDITION_PENDING\020\001\022\031\n" + + "\025CONDITION_RECONCILING\020\002\022\024\n" + + "\020CONDITION_FAILED\020\003\022\027\n" + + "\023CONDITION_SUCCEEDED\020\004\"F\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\t\n" + + "\005ERROR\020\001\022\013\n" + + "\007WARNING\020\002\022\010\n" + + "\004INFO\020\003\"\315\003\n" + + "\014CommonReason\022\033\n" + + "\027COMMON_REASON_UNDEFINED\020\000\022\013\n" + + "\007UNKNOWN\020\001\022\023\n" + + "\017REVISION_FAILED\020\003\022\036\n" + + "\032PROGRESS_DEADLINE_EXCEEDED\020\004\022\025\n" + + "\021CONTAINER_MISSING\020\006\022\037\n" + + "\033CONTAINER_PERMISSION_DENIED\020\007\022 \n" + + "\034CONTAINER_IMAGE_UNAUTHORIZED\020\010\022.\n" + + "*CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\020\t\022$\n" + + " ENCRYPTION_KEY_PERMISSION_DENIED\020\n" + + "\022\037\n" + + "\033ENCRYPTION_KEY_CHECK_FAILED\020\013\022\037\n" + + "\033SECRETS_ACCESS_CHECK_FAILED\020\014\022\031\n" + + "\025WAITING_FOR_OPERATION\020\r" + + "\022\023\n" + + "\017IMMEDIATE_RETRY\020\016\022\023\n" + + "\017POSTPONED_RETRY\020\017\022\014\n" + + "\010INTERNAL\020\020\022\031\n" + + "\025VPC_NETWORK_NOT_FOUND\020\021\"\312\002\n" + + "\016RevisionReason\022\035\n" + + "\031REVISION_REASON_UNDEFINED\020\000\022\013\n" + + "\007PENDING\020\001\022\013\n" + + "\007RESERVE\020\002\022\013\n" + + "\007RETIRED\020\003\022\014\n" + + "\010RETIRING\020\004\022\016\n\n" + + "RECREATING\020\005\022 \n" + + "\034HEALTH_CHECK_CONTAINER_ERROR\020\006\022$\n" + + " CUSTOMIZED_PATH_RESPONSE_PENDING\020\007\022!\n" + + "\035MIN_INSTANCES_NOT_PROVISIONED\020\010\022!\n" + + "\035ACTIVE_REVISION_LIMIT_REACHED\020\t\022\021\n\r" + + "NO_DEPLOYMENT\020\n" + + "\022\030\n" + + "\024HEALTH_CHECK_SKIPPED\020\013\022\031\n" + + "\025MIN_INSTANCES_WARMING\020\014\"\233\001\n" + + "\017ExecutionReason\022\036\n" + + "\032EXECUTION_REASON_UNDEFINED\020\000\022$\n" + + " JOB_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n" + + "\022NON_ZERO_EXIT_CODE\020\002\022\r\n" + + "\tCANCELLED\020\003\022\016\n\n" + + "CANCELLING\020\004\022\013\n" + + "\007DELETED\020\005B\t\n" + + "\007reasonsBV\n" + + "\027com.google.cloud.run.v2B\016ConditionProtoP\001Z)cloud.google.com/go" + + "/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java index 020656ae2014..9e09c4ed5bba 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java @@ -384,16 +384,15 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
-   * Specifies the maximum desired number of tasks the execution should run at
-   * given time. Must be <= task_count.
-   * When the job is run, if this field is 0 or unset, the maximum possible
-   * value will be used for that execution.
-   * The actual number of tasks running in steady state will be less than this
-   * number when there are fewer tasks waiting to be completed remaining,
-   * i.e. when the work left to do is less than max parallelism.
+   * Optional. Specifies the maximum desired number of tasks the execution
+   * should run at given time. When the job is run, if this field is 0 or unset,
+   * the maximum possible value will be used for that execution. The actual
+   * number of tasks running in steady state will be less than this number when
+   * there are fewer tasks waiting to be completed remaining, i.e. when the work
+   * left to do is less than max parallelism.
    * 
* - * int32 parallelism = 3; + * int32 parallelism = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The parallelism. */ @@ -1486,16 +1485,15 @@ public Builder putAllAnnotations(java.util.Map - * Specifies the maximum desired number of tasks the execution should run at - * given time. Must be <= task_count. - * When the job is run, if this field is 0 or unset, the maximum possible - * value will be used for that execution. - * The actual number of tasks running in steady state will be less than this - * number when there are fewer tasks waiting to be completed remaining, - * i.e. when the work left to do is less than max parallelism. + * Optional. Specifies the maximum desired number of tasks the execution + * should run at given time. When the job is run, if this field is 0 or unset, + * the maximum possible value will be used for that execution. The actual + * number of tasks running in steady state will be less than this number when + * there are fewer tasks waiting to be completed remaining, i.e. when the work + * left to do is less than max parallelism. *
* - * int32 parallelism = 3; + * int32 parallelism = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The parallelism. */ @@ -1508,16 +1506,15 @@ public int getParallelism() { * * *
-     * Specifies the maximum desired number of tasks the execution should run at
-     * given time. Must be <= task_count.
-     * When the job is run, if this field is 0 or unset, the maximum possible
-     * value will be used for that execution.
-     * The actual number of tasks running in steady state will be less than this
-     * number when there are fewer tasks waiting to be completed remaining,
-     * i.e. when the work left to do is less than max parallelism.
+     * Optional. Specifies the maximum desired number of tasks the execution
+     * should run at given time. When the job is run, if this field is 0 or unset,
+     * the maximum possible value will be used for that execution. The actual
+     * number of tasks running in steady state will be less than this number when
+     * there are fewer tasks waiting to be completed remaining, i.e. when the work
+     * left to do is less than max parallelism.
      * 
* - * int32 parallelism = 3; + * int32 parallelism = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The parallelism to set. * @return This builder for chaining. @@ -1534,16 +1531,15 @@ public Builder setParallelism(int value) { * * *
-     * Specifies the maximum desired number of tasks the execution should run at
-     * given time. Must be <= task_count.
-     * When the job is run, if this field is 0 or unset, the maximum possible
-     * value will be used for that execution.
-     * The actual number of tasks running in steady state will be less than this
-     * number when there are fewer tasks waiting to be completed remaining,
-     * i.e. when the work left to do is less than max parallelism.
+     * Optional. Specifies the maximum desired number of tasks the execution
+     * should run at given time. When the job is run, if this field is 0 or unset,
+     * the maximum possible value will be used for that execution. The actual
+     * number of tasks running in steady state will be less than this number when
+     * there are fewer tasks waiting to be completed remaining, i.e. when the work
+     * left to do is less than max parallelism.
      * 
* - * int32 parallelism = 3; + * int32 parallelism = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java index 982d0683bfc5..d3c885d13b50 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java @@ -259,16 +259,15 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Specifies the maximum desired number of tasks the execution should run at
-   * given time. Must be <= task_count.
-   * When the job is run, if this field is 0 or unset, the maximum possible
-   * value will be used for that execution.
-   * The actual number of tasks running in steady state will be less than this
-   * number when there are fewer tasks waiting to be completed remaining,
-   * i.e. when the work left to do is less than max parallelism.
+   * Optional. Specifies the maximum desired number of tasks the execution
+   * should run at given time. When the job is run, if this field is 0 or unset,
+   * the maximum possible value will be used for that execution. The actual
+   * number of tasks running in steady state will be less than this number when
+   * there are fewer tasks waiting to be completed remaining, i.e. when the work
+   * left to do is less than max parallelism.
    * 
* - * int32 parallelism = 3; + * int32 parallelism = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The parallelism. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java index d47e92cec095..e94de5ec663d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateProto.java @@ -49,22 +49,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n,google/cloud/run/v2/execution_template" + "\n" + + ",google/cloud/run/v2/execution_template" + ".proto\022\023google.cloud.run.v2\032\037google/api/" - + "field_behavior.proto\032\'google/cloud/run/v" - + "2/task_template.proto\"\353\002\n\021ExecutionTempl" - + "ate\022B\n\006labels\030\001 \003(\01322.google.cloud.run.v" - + "2.ExecutionTemplate.LabelsEntry\022L\n\013annot" - + "ations\030\002 \003(\01327.google.cloud.run.v2.Execu" - + "tionTemplate.AnnotationsEntry\022\023\n\013paralle" - + "lism\030\003 \001(\005\022\022\n\ntask_count\030\004 \001(\005\0228\n\010templa" - + "te\030\005 \001(\0132!.google.cloud.run.v2.TaskTempl" - + "ateB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B^\n\027com.googl" - + "e.cloud.run.v2B\026ExecutionTemplateProtoP\001" - + "Z)cloud.google.com/go/run/apiv2/runpb;ru" - + "npbb\006proto3" + + "field_behavior.proto\032\'google/cloud/run/v2/task_template.proto\"\360\002\n" + + "\021ExecutionTemplate\022B\n" + + "\006labels\030\001" + + " \003(\01322.google.cloud.run.v2.ExecutionTemplate.LabelsEntry\022L\n" + + "\013annotations\030\002" + + " \003(\01327.google.cloud.run.v2.ExecutionTemplate.AnnotationsEntry\022\030\n" + + "\013parallelism\030\003 \001(\005B\003\340A\001\022\022\n\n" + + "task_count\030\004 \001(\005\0228\n" + + "\010template\030\005 \001(\0132!.google.cloud.run.v2.TaskTemplateB\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\001B^\n" + + "\027com.google.cloud.run.v2B\026ExecutionTemplatePr" + + "otoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index 962467de57f6..0d50e04a37a2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java @@ -54,6 +54,7 @@ private Revision() { encryptionKeyRevocationAction_ = 0; conditions_ = java.util.Collections.emptyList(); logUri_ = ""; + creator_ = ""; etag_ = ""; } @@ -1772,6 +1773,100 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() : nodeSelector_; } + public static final int GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER = 48; + private boolean gpuZonalRedundancyDisabled_ = false; + + /** + * + * + *
+   * Optional. Output only. True if GPU zonal redundancy is disabled on this
+   * revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Optional. Output only. True if GPU zonal redundancy is disabled on this
+   * revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + + public static final int CREATOR_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private volatile java.lang.Object creator_ = ""; + + /** + * + * + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + @java.lang.Override + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1937,6 +2032,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(40, getNodeSelector()); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBool(48, gpuZonalRedundancyDisabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 49, creator_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -2066,6 +2167,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getNodeSelector()); } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(48, gpuZonalRedundancyDisabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(49, creator_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -2151,6 +2259,11 @@ public boolean equals(final java.lang.Object obj) { if (hasNodeSelector()) { if (!getNodeSelector().equals(other.getNodeSelector())) return false; } + if (hasGpuZonalRedundancyDisabled() != other.hasGpuZonalRedundancyDisabled()) return false; + if (hasGpuZonalRedundancyDisabled()) { + if (getGpuZonalRedundancyDisabled() != other.getGpuZonalRedundancyDisabled()) return false; + } + if (!getCreator().equals(other.getCreator())) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2257,6 +2370,13 @@ public int hashCode() { hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNodeSelector().hashCode(); } + if (hasGpuZonalRedundancyDisabled()) { + hash = (37 * hash) + GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGpuZonalRedundancyDisabled()); + } + hash = (37 * hash) + CREATOR_FIELD_NUMBER; + hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2448,6 +2568,7 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; name_ = ""; uid_ = ""; generation_ = 0L; @@ -2541,6 +2662,8 @@ public Builder clear() { nodeSelectorBuilder_.dispose(); nodeSelectorBuilder_ = null; } + gpuZonalRedundancyDisabled_ = false; + creator_ = ""; etag_ = ""; return this; } @@ -2572,6 +2695,9 @@ public com.google.cloud.run.v2.Revision buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } onBuilt(); return result; } @@ -2713,11 +2839,22 @@ private void buildPartial0(com.google.cloud.run.v2.Revision result) { to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.etag_ = etag_; + result.gpuZonalRedundancyDisabled_ = gpuZonalRedundancyDisabled_; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } + private void buildPartial1(com.google.cloud.run.v2.Revision result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.creator_ = creator_; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2938,9 +3075,17 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) { if (other.hasNodeSelector()) { mergeNodeSelector(other.getNodeSelector()); } + if (other.hasGpuZonalRedundancyDisabled()) { + setGpuZonalRedundancyDisabled(other.getGpuZonalRedundancyDisabled()); + } + if (!other.getCreator().isEmpty()) { + creator_ = other.creator_; + bitField1_ |= 0x00000001; + onChanged(); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3188,10 +3333,22 @@ public Builder mergeFrom( bitField0_ |= 0x40000000; break; } // case 322 + case 384: + { + gpuZonalRedundancyDisabled_ = input.readBool(); + bitField0_ |= 0x80000000; + break; + } // case 384 + case 394: + { + creator_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000001; + break; + } // case 394 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } // case 794 default: @@ -3212,6 +3369,7 @@ public Builder mergeFrom( } private int bitField0_; + private int bitField1_; private java.lang.Object name_ = ""; @@ -8478,6 +8636,201 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() return nodeSelectorBuilder_; } + private boolean gpuZonalRedundancyDisabled_; + + /** + * + * + *
+     * Optional. Output only. True if GPU zonal redundancy is disabled on this
+     * revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. True if GPU zonal redundancy is disabled on this
+     * revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + + /** + * + * + *
+     * Optional. Output only. True if GPU zonal redundancy is disabled on this
+     * revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The gpuZonalRedundancyDisabled to set. + * @return This builder for chaining. + */ + public Builder setGpuZonalRedundancyDisabled(boolean value) { + + gpuZonalRedundancyDisabled_ = value; + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. True if GPU zonal redundancy is disabled on this
+     * revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGpuZonalRedundancyDisabled() { + bitField0_ = (bitField0_ & ~0x80000000); + gpuZonalRedundancyDisabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object creator_ = ""; + + /** + * + * + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + public java.lang.String getCreator() { + java.lang.Object ref = creator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + public com.google.protobuf.ByteString getCreatorBytes() { + java.lang.Object ref = creator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creator to set. + * @return This builder for chaining. + */ + public Builder setCreator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creator_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreator() { + creator_ = getDefaultInstance().getCreator(); + bitField1_ = (bitField1_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Email address of the authenticated creator.
+     * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creator to set. + * @return This builder for chaining. + */ + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** @@ -8546,7 +8899,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -8565,7 +8918,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } @@ -8589,7 +8942,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index f1f00e863ffd..9e427a50a0b2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -1176,6 +1176,64 @@ java.lang.String getAnnotationsOrDefault( */ com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + /** + * + * + *
+   * Optional. Output only. True if GPU zonal redundancy is disabled on this
+   * revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + boolean hasGpuZonalRedundancyDisabled(); + + /** + * + * + *
+   * Optional. Output only. True if GPU zonal redundancy is disabled on this
+   * revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 48 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + boolean getGpuZonalRedundancyDisabled(); + + /** + * + * + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creator. + */ + java.lang.String getCreator(); + + /** + * + * + *
+   * Output only. Email address of the authenticated creator.
+   * 
+ * + * string creator = 49 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creator. + */ + com.google.protobuf.ByteString getCreatorBytes(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java index 79e3acd2b53b..0f4639f96fc8 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -92,7 +92,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033run.googleapis.com/Revision\022\025\n\r" + "validate_only\030\002 \001(\010\022\014\n" - + "\004etag\030\003 \001(\t\"\337\r\n" + + "\004etag\030\003 \001(\t\"\313\016\n" + "\010Revision\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\020\n" + "\003uid\030\002 \001(\tB\003\340A\003\022\027\n\n" @@ -134,35 +134,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020session_affinity\030& \001(\010\022G\n" + "\016scaling_status\030\'" + " \001(\0132*.google.cloud.run.v2.RevisionScalingStatusB\003\340A\003\0228\n\r" - + "node_selector\030( \001(\0132!.google.cloud.run.v2.NodeSelector\022\021\n" + + "node_selector\030( \001(\0132!.google.cloud.run.v2.NodeSelector\0222\n" + + "\035gpu_zonal_redundancy_disabled\0300" + + " \001(\010B\006\340A\001\340A\003H\000\210\001\001\022\024\n" + + "\007creator\0301 \001(\tB\003\340A\003\022\021\n" + "\004etag\030c \001(\tB\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\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" - + "\033run.googleapis.com/Revision\022Oprojects/{proje" - + "ct}/locations/{location}/services/{service}/revisions/{revision}R\001\0012\205\006\n" + + "\033run.googleapis.com/Revision\022Oprojects/{project}/lo" + + "cations/{location}/services/{service}/revisions/{revision}R\001\001B \n" + + "\036_gpu_zonal_redundancy_disabled2\205\006\n" + "\tRevisions\022\322\001\n" - + "\013GetRevision\022\'.google.cloud.run.v2." - + "GetRevisionRequest\032\035.google.cloud.run.v2" - + ".Revision\"{\332A\004name\202\323\344\223\002:\0228/v2/{name=proj" - + "ects/*/locations/*/services/*/revisions/*}\212\323\344\223\002.\022,\n" + + "\013GetRevision\022\'.google.cloud.run.v2.GetRevisionR" + + "equest\032\035.google.cloud.run.v2.Revision\"{\332" + + "A\004name\202\323\344\223\002:\0228/v2/{name=projects/*/locations/*/services/*/revisions/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\347\001\n\r" - + "ListRevisions\022).google.cloud.run.v2.ListRevisionsRequest\032*.go" - + "ogle.cloud.run.v2.ListRevisionsResponse\"" - + "\177\332A\006parent\202\323\344\223\002:\0228/v2/{parent=projects/*" - + "/locations/*/services/*}/revisions\212\323\344\223\0020\022.\n" + + "ListRevisions\022).google.cloud.run.v2.ListRevisionsRequest\032*.google.cloud.r" + + "un.v2.ListRevisionsResponse\"\177\332A\006parent\202\323" + + "\344\223\002:\0228/v2/{parent=projects/*/locations/*/services/*}/revisions\212\323\344\223\0020\022.\n" + "\006parent\022$projects/*/locations/{location=*}/**\022\360\001\n" - + "\016DeleteRevision\022*.google.clo" - + "ud.run.v2.DeleteRevisionRequest\032\035.google.longrunning.Operation\"\222\001\312A\024\n" - + "\010Revision\022\010Revision\332A\004name\202\323\344\223\002:*8/v2/{name=project" - + "s/*/locations/*/services/*/revisions/*}\212\323\344\223\002.\022,\n" - + "\004name\022$projects/*/locations/{loc" - + "ation=*}/**\032F\312A\022run.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platformBU\n" + + "\016DeleteRevision\022*.google.cloud.run.v2.De" + + "leteRevisionRequest\032\035.google.longrunning.Operation\"\222\001\312A\024\n" + + "\010Revision\022\010Revision\332A\004n" + + "ame\202\323\344\223\002:*8/v2/{name=projects/*/locations/*/services/*/revisions/*}\212\323\344\223\002.\022,\n" + + "\004name\022$projects/*/locations/{location=*}/**\032" + + "F\312A\022run.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBU\n" + "\027com.google.cloud.run.v2B\r" + "RevisionProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpbb\006proto3" }; @@ -253,6 +253,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionAffinity", "ScalingStatus", "NodeSelector", + "GpuZonalRedundancyDisabled", + "Creator", "Etag", }); internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index c1daf5742108..c8dce6312676 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java @@ -1218,6 +1218,45 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() : nodeSelector_; } + public static final int GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER = 24; + private boolean gpuZonalRedundancyDisabled_ = false; + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1289,6 +1328,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(21, getNodeSelector()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(24, gpuZonalRedundancyDisabled_); + } getUnknownFields().writeTo(output); } @@ -1376,6 +1418,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNodeSelector()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(24, gpuZonalRedundancyDisabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1430,6 +1476,10 @@ public boolean equals(final java.lang.Object obj) { if (hasNodeSelector()) { if (!getNodeSelector().equals(other.getNodeSelector())) return false; } + if (hasGpuZonalRedundancyDisabled() != other.hasGpuZonalRedundancyDisabled()) return false; + if (hasGpuZonalRedundancyDisabled()) { + if (getGpuZonalRedundancyDisabled() != other.getGpuZonalRedundancyDisabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1497,6 +1547,11 @@ public int hashCode() { hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNodeSelector().hashCode(); } + if (hasGpuZonalRedundancyDisabled()) { + hash = (37 * hash) + GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGpuZonalRedundancyDisabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1734,6 +1789,7 @@ public Builder clear() { nodeSelectorBuilder_.dispose(); nodeSelectorBuilder_ = null; } + gpuZonalRedundancyDisabled_ = false; return this; } @@ -1854,6 +1910,10 @@ private void buildPartial0(com.google.cloud.run.v2.RevisionTemplate result) { nodeSelectorBuilder_ == null ? nodeSelector_ : nodeSelectorBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.gpuZonalRedundancyDisabled_ = gpuZonalRedundancyDisabled_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -2008,6 +2068,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) { if (other.hasNodeSelector()) { mergeNodeSelector(other.getNodeSelector()); } + if (other.hasGpuZonalRedundancyDisabled()) { + setGpuZonalRedundancyDisabled(other.getGpuZonalRedundancyDisabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2168,6 +2231,12 @@ public Builder mergeFrom( bitField0_ |= 0x00020000; break; } // case 170 + case 192: + { + gpuZonalRedundancyDisabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 192 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5507,6 +5576,86 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() return nodeSelectorBuilder_; } + private boolean gpuZonalRedundancyDisabled_; + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The gpuZonalRedundancyDisabled to set. + * @return This builder for chaining. + */ + public Builder setGpuZonalRedundancyDisabled(boolean value) { + + gpuZonalRedundancyDisabled_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this revision.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGpuZonalRedundancyDisabled() { + bitField0_ = (bitField0_ & ~0x00040000); + gpuZonalRedundancyDisabled_ = 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-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index 81992e2e3dcd..cddce14a8bc2 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java @@ -833,4 +833,34 @@ java.lang.String getAnnotationsOrDefault( *
*/ com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + boolean hasGpuZonalRedundancyDisabled(); + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this revision.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + boolean getGpuZonalRedundancyDisabled(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java index eaf7f996f005..6965bd4b93dd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -49,45 +49,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n+google/cloud/run/v2/revision_template." + "\n" + + "+google/cloud/run/v2/revision_template." + "proto\022\023google.cloud.run.v2\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\032!google/cloud/run/v2/k8s.min.prot" - + "o\032)google/cloud/run/v2/vendor_settings.p" - + "roto\032\036google/protobuf/duration.proto\"\233\t\n" - + "\020RevisionTemplate\0225\n\010revision\030\001 \001(\tB#\340A\001" - + "\372A\035\n\033run.googleapis.com/Revision\022F\n\006labe" - + "ls\030\002 \003(\01321.google.cloud.run.v2.RevisionT" - + "emplate.LabelsEntryB\003\340A\001\022P\n\013annotations\030" - + "\003 \003(\01326.google.cloud.run.v2.RevisionTemp" - + "late.AnnotationsEntryB\003\340A\001\022:\n\007scaling\030\004 " - + "\001(\0132$.google.cloud.run.v2.RevisionScalin" - + "gB\003\340A\001\0227\n\nvpc_access\030\006 \001(\0132\036.google.clou" - + "d.run.v2.VpcAccessB\003\340A\001\022/\n\007timeout\030\010 \001(\013" - + "2\031.google.protobuf.DurationB\003\340A\001\022\034\n\017serv" - + "ice_account\030\t \001(\tB\003\340A\001\0222\n\ncontainers\030\n \003" - + "(\0132\036.google.cloud.run.v2.Container\0221\n\007vo" - + "lumes\030\013 \003(\0132\033.google.cloud.run.v2.Volume" - + "B\003\340A\001\022M\n\025execution_environment\030\r \001(\0162).g" - + "oogle.cloud.run.v2.ExecutionEnvironmentB" - + "\003\340A\001\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!cloud" - + "kms.googleapis.com/CryptoKey\022-\n max_inst" - + "ance_request_concurrency\030\017 \001(\005B\003\340A\001\022;\n\014s" - + "ervice_mesh\030\020 \001(\0132 .google.cloud.run.v2." - + "ServiceMeshB\003\340A\001\022a\n encryption_key_revoc" - + "ation_action\030\021 \001(\01622.google.cloud.run.v2" - + ".EncryptionKeyRevocationActionB\003\340A\001\022H\n e" - + "ncryption_key_shutdown_duration\030\022 \001(\0132\031." - + "google.protobuf.DurationB\003\340A\001\022\035\n\020session" - + "_affinity\030\023 \001(\010B\003\340A\001\022\"\n\025health_check_dis" - + "abled\030\024 \001(\010B\003\340A\001\022=\n\rnode_selector\030\025 \001(\0132" - + "!.google.cloud.run.v2.NodeSelectorB\003\340A\001\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\001B]\n\027com.google.cloud.r" - + "un.v2B\025RevisionTemplateProtoP\001Z)cloud.go" - + "ogle.com/go/run/apiv2/runpb;runpbb\006proto" - + "3" + + "o\032)google/cloud/run/v2/vendor_settings.proto\032\036google/protobuf/duration.proto\"\356" + + "\t\n" + + "\020RevisionTemplate\0225\n" + + "\010revision\030\001 \001(\tB#\340A\001\372A\035\n" + + "\033run.googleapis.com/Revision\022F\n" + + "\006labels\030\002" + + " \003(\01321.google.cloud.run.v2.RevisionTemplate.LabelsEntryB\003\340A\001\022P\n" + + "\013annotations\030\003" + + " \003(\01326.google.cloud.run.v2.RevisionTemplate.AnnotationsEntryB\003\340A\001\022:\n" + + "\007scaling\030\004 " + + "\001(\0132$.google.cloud.run.v2.RevisionScalingB\003\340A\001\0227\n\n" + + "vpc_access\030\006 \001(\0132\036.google.cloud.run.v2.VpcAccessB\003\340A\001\022/\n" + + "\007timeout\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\034\n" + + "\017service_account\030\t \001(\tB\003\340A\001\0222\n\n" + + "containers\030\n" + + " \003(\0132\036.google.cloud.run.v2.Container\0221\n" + + "\007volumes\030\013 \003(\0132\033.google.cloud.run.v2.VolumeB\003\340A\001\022M\n" + + "\025execution_environment\030\r" + + " \001(\0162).google.cloud.run.v2.ExecutionEnvironmentB\003\340A\001\022>\n" + + "\016encryption_key\030\016 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022-\n" + + " max_instance_request_concurrency\030\017 \001(\005B\003\340A\001\022;\n" + + "\014service_mesh\030\020 \001(\0132" + + " .google.cloud.run.v2.ServiceMeshB\003\340A\001\022a\n" + + " encryption_key_revocation_action\030\021" + + " \001(\01622.google.cloud.run.v2.EncryptionKeyRevocationActionB\003\340A\001\022H\n" + + " encryption_key_shutdown_duration\030\022" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\035\n" + + "\020session_affinity\030\023 \001(\010B\003\340A\001\022\"\n" + + "\025health_check_disabled\030\024 \001(\010B\003\340A\001\022=\n\r" + + "node_selector\030\025 \001(\0132" + + "!.google.cloud.run.v2.NodeSelectorB\003\340A\001\022/\n" + + "\035gpu_zonal_redundancy_disabled\030\030" + + " \001(\010B\003\340A\001H\000\210\001\001\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\001B \n" + + "\036_gpu_zonal_redundancy_disabledB]\n" + + "\027com.google.cloud.run.v2B\025RevisionTemplateProtoP\001Z)cloud" + + ".google.com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -123,6 +132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionAffinity", "HealthCheckDisabled", "NodeSelector", + "GpuZonalRedundancyDisabled", }); internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java index 472bea9ab55a..542e0d921e61 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java @@ -1744,6 +1744,65 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int NODE_SELECTOR_FIELD_NUMBER = 36; + private com.google.cloud.run.v2.NodeSelector nodeSelector_; + + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nodeSelector field is set. + */ + @java.lang.Override + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeSelector. + */ + @java.lang.Override + public com.google.cloud.run.v2.NodeSelector getNodeSelector() { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1903,6 +1962,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(34, getScheduledTime()); } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(36, getNodeSelector()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -2021,6 +2083,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getScheduledTime()); } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getNodeSelector()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -2099,6 +2164,10 @@ public boolean equals(final java.lang.Object obj) { } if (!getLogUri().equals(other.getLogUri())) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (hasNodeSelector() != other.hasNodeSelector()) return false; + if (hasNodeSelector()) { + if (!getNodeSelector().equals(other.getNodeSelector())) return false; + } if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2201,6 +2270,10 @@ public int hashCode() { hash = (53 * hash) + getLogUri().hashCode(); hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + if (hasNodeSelector()) { + hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNodeSelector().hashCode(); + } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2380,6 +2453,7 @@ private void maybeForceBuilderInitialization() { getConditionsFieldBuilder(); getLastAttemptResultFieldBuilder(); getVpcAccessFieldBuilder(); + getNodeSelectorFieldBuilder(); } } @@ -2475,6 +2549,11 @@ public Builder clear() { } logUri_ = ""; satisfiesPzs_ = false; + nodeSelector_ = null; + if (nodeSelectorBuilder_ != null) { + nodeSelectorBuilder_.dispose(); + nodeSelectorBuilder_ = null; + } etag_ = ""; return this; } @@ -2641,6 +2720,11 @@ private void buildPartial0(com.google.cloud.run.v2.Task result) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x40000000) != 0)) { + result.nodeSelector_ = + nodeSelectorBuilder_ == null ? nodeSelector_ : nodeSelectorBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x80000000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -2865,9 +2949,12 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task other) { if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.hasNodeSelector()) { + mergeNodeSelector(other.getNodeSelector()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3109,10 +3196,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 274 + case 290: + { + input.readMessage(getNodeSelectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 290 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 794 default: @@ -8287,6 +8380,218 @@ public Builder clearSatisfiesPzs() { return this; } + private com.google.cloud.run.v2.NodeSelector nodeSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder> + nodeSelectorBuilder_; + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nodeSelector field is set. + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeSelector. + */ + public com.google.cloud.run.v2.NodeSelector getNodeSelector() { + if (nodeSelectorBuilder_ == null) { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } else { + return nodeSelectorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNodeSelector(com.google.cloud.run.v2.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeSelector_ = value; + } else { + nodeSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setNodeSelector(com.google.cloud.run.v2.NodeSelector.Builder builderForValue) { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = builderForValue.build(); + } else { + nodeSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNodeSelector(com.google.cloud.run.v2.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && nodeSelector_ != null + && nodeSelector_ != com.google.cloud.run.v2.NodeSelector.getDefaultInstance()) { + getNodeSelectorBuilder().mergeFrom(value); + } else { + nodeSelector_ = value; + } + } else { + nodeSelectorBuilder_.mergeFrom(value); + } + if (nodeSelector_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNodeSelector() { + bitField0_ = (bitField0_ & ~0x40000000); + nodeSelector_ = null; + if (nodeSelectorBuilder_ != null) { + nodeSelectorBuilder_.dispose(); + nodeSelectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.run.v2.NodeSelector.Builder getNodeSelectorBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getNodeSelectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + if (nodeSelectorBuilder_ != null) { + return nodeSelectorBuilder_.getMessageOrBuilder(); + } else { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + } + + /** + * + * + *
+     * Output only. The node selector for the task.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder> + getNodeSelectorFieldBuilder() { + if (nodeSelectorBuilder_ == null) { + nodeSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder>( + getNodeSelector(), getParentForChildren(), isClean()); + nodeSelector_ = null; + } + return nodeSelectorBuilder_; + } + private java.lang.Object etag_ = ""; /** @@ -8355,7 +8660,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -8374,7 +8679,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } @@ -8398,7 +8703,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java index a4793f5bbd45..258477448eef 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java @@ -1163,6 +1163,49 @@ java.lang.String getAnnotationsOrDefault( */ boolean getSatisfiesPzs(); + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the nodeSelector field is set. + */ + boolean hasNodeSelector(); + + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeSelector. + */ + com.google.cloud.run.v2.NodeSelector getNodeSelector(); + + /** + * + * + *
+   * Output only. The node selector for the task.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java index 115181192554..45a38afc6294 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014show_deleted\030\004 \001(\010\"V\n" + "\021ListTasksResponse\022(\n" + "\005tasks\030\001 \003(\0132\031.google.cloud.run.v2.Task\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\270\014\n" + + "\017next_page_token\030\002 \001(\t\"\367\014\n" + "\004Task\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\020\n" + "\003uid\030\002 \001(\tB\003\340A\003\022\027\n\n" @@ -128,7 +128,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vpc_access\030\035" + " \001(\0132\036.google.cloud.run.v2.VpcAccessB\003\340A\003\022\024\n" + "\007log_uri\030 \001(\tB\003\340A\003\022\032\n\r" - + "satisfies_pzs\030! \001(\010B\003\340A\003\022\021\n" + + "satisfies_pzs\030! \001(\010B\003\340A\003\022=\n\r" + + "node_selector\030$" + + " \001(\0132!.google.cloud.run.v2.NodeSelectorB\003\340A\003\022\021\n" + "\004etag\030c \001(\tB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -136,22 +138,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:w\352At\n" - + "\027run.googleapis.com/Task\022Vprojects/{project}/locations/{locatio" - + "n}/jobs/{job}/executions/{execution}/tasks/{task}R\001\001\"T\n" + + "\027run.googleapis.com/Task\022Vprojects/{proj" + + "ect}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}R\001\001\"T\n" + "\021TaskAttemptResult\022\'\n" + "\006status\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\022\026\n" + "\texit_code\030\002 \001(\005B\003\340A\0032\226\003\n" + "\005Tasks\022\227\001\n" - + "\007GetTask\022#.google.cloud.run.v2.GetTaskRequest\032\031." - + "google.cloud.run.v2.Task\"L\332A\004name\202\323\344\223\002?\022" - + "=/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}\022\252\001\n" - + "\tListTasks\022%.google.cloud.run.v2.ListTasksRequest\032&.go" - + "ogle.cloud.run.v2.ListTasksResponse\"N\332A\006" - + "parent\202\323\344\223\002?\022=/v2/{parent=projects/*/loc" - + "ations/*/jobs/*/executions/*}/tasks\032F\312A\022" - + "run.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBQ\n" - + "\027com.google.cloud.run.v2B\tTaskProtoP\001Z)cloud.googl" - + "e.com/go/run/apiv2/runpb;runpbb\006proto3" + + "\007GetTask\022#.google.cloud.run.v2.GetTaskRequest\032\031.google.cloud.run." + + "v2.Task\"L\332A\004name\202\323\344\223\002?\022=/v2/{name=projec" + + "ts/*/locations/*/jobs/*/executions/*/tasks/*}\022\252\001\n" + + "\tListTasks\022%.google.cloud.run.v2.ListTasksRequest\032&.google.cloud.run.v2" + + ".ListTasksResponse\"N\332A\006parent\202\323\344\223\002?\022=/v2" + + "/{parent=projects/*/locations/*/jobs/*/e" + + "xecutions/*}/tasks\032F\312A\022run.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformBQ\n" + + "\027com.google.cloud.run.v2B\tTaskProtoP\001Z)cloud.google.com/go/run/apiv" + + "2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -227,6 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VpcAccess", "LogUri", "SatisfiesPzs", + "NodeSelector", "Etag", }); internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor = diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java index 08f67e3128e3..3d35fb7e7706 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java @@ -596,6 +596,65 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_; } + public static final int NODE_SELECTOR_FIELD_NUMBER = 11; + private com.google.cloud.run.v2.NodeSelector nodeSelector_; + + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeSelector field is set. + */ + @java.lang.Override + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeSelector. + */ + @java.lang.Override + public com.google.cloud.run.v2.NodeSelector getNodeSelector() { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -636,6 +695,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getVpcAccess()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getNodeSelector()); + } getUnknownFields().writeTo(output); } @@ -673,6 +735,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getVpcAccess()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNodeSelector()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -701,6 +766,10 @@ public boolean equals(final java.lang.Object obj) { if (hasVpcAccess()) { if (!getVpcAccess().equals(other.getVpcAccess())) return false; } + if (hasNodeSelector() != other.hasNodeSelector()) return false; + if (hasNodeSelector()) { + if (!getNodeSelector().equals(other.getNodeSelector())) return false; + } if (!getRetriesCase().equals(other.getRetriesCase())) return false; switch (retriesCase_) { case 3: @@ -742,6 +811,10 @@ public int hashCode() { hash = (37 * hash) + VPC_ACCESS_FIELD_NUMBER; hash = (53 * hash) + getVpcAccess().hashCode(); } + if (hasNodeSelector()) { + hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNodeSelector().hashCode(); + } switch (retriesCase_) { case 3: hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER; @@ -895,6 +968,7 @@ private void maybeForceBuilderInitialization() { getVolumesFieldBuilder(); getTimeoutFieldBuilder(); getVpcAccessFieldBuilder(); + getNodeSelectorFieldBuilder(); } } @@ -929,6 +1003,11 @@ public Builder clear() { vpcAccessBuilder_.dispose(); vpcAccessBuilder_ = null; } + nodeSelector_ = null; + if (nodeSelectorBuilder_ != null) { + nodeSelectorBuilder_.dispose(); + nodeSelectorBuilder_ = null; + } retriesCase_ = 0; retries_ = null; return this; @@ -1007,6 +1086,11 @@ private void buildPartial0(com.google.cloud.run.v2.TaskTemplate result) { result.vpcAccess_ = vpcAccessBuilder_ == null ? vpcAccess_ : vpcAccessBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.nodeSelector_ = + nodeSelectorBuilder_ == null ? nodeSelector_ : nodeSelectorBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1133,6 +1217,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.TaskTemplate other) { if (other.hasVpcAccess()) { mergeVpcAccess(other.getVpcAccess()); } + if (other.hasNodeSelector()) { + mergeNodeSelector(other.getNodeSelector()); + } switch (other.getRetriesCase()) { case MAX_RETRIES: { @@ -1231,6 +1318,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 90: + { + input.readMessage(getNodeSelectorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2922,6 +3015,218 @@ public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() { return vpcAccessBuilder_; } + private com.google.cloud.run.v2.NodeSelector nodeSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder> + nodeSelectorBuilder_; + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeSelector field is set. + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeSelector. + */ + public com.google.cloud.run.v2.NodeSelector getNodeSelector() { + if (nodeSelectorBuilder_ == null) { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } else { + return nodeSelectorBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeSelector(com.google.cloud.run.v2.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeSelector_ = value; + } else { + nodeSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeSelector(com.google.cloud.run.v2.NodeSelector.Builder builderForValue) { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = builderForValue.build(); + } else { + nodeSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNodeSelector(com.google.cloud.run.v2.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && nodeSelector_ != null + && nodeSelector_ != com.google.cloud.run.v2.NodeSelector.getDefaultInstance()) { + getNodeSelectorBuilder().mergeFrom(value); + } else { + nodeSelector_ = value; + } + } else { + nodeSelectorBuilder_.mergeFrom(value); + } + if (nodeSelector_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodeSelector() { + bitField0_ = (bitField0_ & ~0x00000100); + nodeSelector_ = null; + if (nodeSelectorBuilder_ != null) { + nodeSelectorBuilder_.dispose(); + nodeSelectorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.run.v2.NodeSelector.Builder getNodeSelectorBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getNodeSelectorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + if (nodeSelectorBuilder_ != null) { + return nodeSelectorBuilder_.getMessageOrBuilder(); + } else { + return nodeSelector_ == null + ? com.google.cloud.run.v2.NodeSelector.getDefaultInstance() + : nodeSelector_; + } + } + + /** + * + * + *
+     * Optional. The node selector for the task template.
+     * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder> + getNodeSelectorFieldBuilder() { + if (nodeSelectorBuilder_ == null) { + nodeSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.NodeSelector, + com.google.cloud.run.v2.NodeSelector.Builder, + com.google.cloud.run.v2.NodeSelectorOrBuilder>( + getNodeSelector(), getParentForChildren(), isClean()); + nodeSelector_ = null; + } + return nodeSelectorBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java index fc8f142391cd..5ff6320531ae 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java @@ -361,5 +361,48 @@ public interface TaskTemplateOrBuilder */ com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder(); + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nodeSelector field is set. + */ + boolean hasNodeSelector(); + + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeSelector. + */ + com.google.cloud.run.v2.NodeSelector getNodeSelector(); + + /** + * + * + *
+   * Optional. The node selector for the task template.
+   * 
+ * + * + * .google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + com.google.cloud.run.v2.TaskTemplate.RetriesCase getRetriesCase(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java index b9704ad2c28f..1958bcda957e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateProto.java @@ -46,7 +46,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\031google/api/resource.pro" + "to\032!google/cloud/run/v2/k8s.min.proto\032)g" + "oogle/cloud/run/v2/vendor_settings.proto" - + "\032\036google/protobuf/duration.proto\"\256\003\n\014Tas" + + "\032\036google/protobuf/duration.proto\"\355\003\n\014Tas" + "kTemplate\0222\n\ncontainers\030\001 \003(\0132\036.google.c" + "loud.run.v2.Container\0221\n\007volumes\030\002 \003(\0132\033" + ".google.cloud.run.v2.VolumeB\003\340A\001\022\025\n\013max_" @@ -57,10 +57,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ironmentB\003\340A\001\022>\n\016encryption_key\030\007 \001(\tB&\372" + "A#\n!cloudkms.googleapis.com/CryptoKey\0227\n" + "\nvpc_access\030\010 \001(\0132\036.google.cloud.run.v2." - + "VpcAccessB\003\340A\001B\t\n\007retriesBY\n\027com.google." - + "cloud.run.v2B\021TaskTemplateProtoP\001Z)cloud" - + ".google.com/go/run/apiv2/runpb;runpbb\006pr" - + "oto3" + + "VpcAccessB\003\340A\001\022=\n\rnode_selector\030\013 \001(\0132!." + + "google.cloud.run.v2.NodeSelectorB\003\340A\001B\t\n" + + "\007retriesBY\n\027com.google.cloud.run.v2B\021Tas" + + "kTemplateProtoP\001Z)cloud.google.com/go/ru" + + "n/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -86,6 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionEnvironment", "EncryptionKey", "VpcAccess", + "NodeSelector", "Retries", }); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto index 57ee68b92bbe..1962fb05fe3d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto @@ -105,6 +105,9 @@ message Condition { // An internal error occurred. Further information may be in the message. INTERNAL = 16; + + // User-provided VPC network was not found. + VPC_NETWORK_NOT_FOUND = 17; } // Reasons specific to Revision resource. diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto index a5e9db22f266..06bab9c6bfae 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto @@ -54,14 +54,13 @@ message ExecutionTemplate { // rules. map annotations = 2; - // Specifies the maximum desired number of tasks the execution should run at - // given time. Must be <= task_count. - // When the job is run, if this field is 0 or unset, the maximum possible - // value will be used for that execution. - // The actual number of tasks running in steady state will be less than this - // number when there are fewer tasks waiting to be completed remaining, - // i.e. when the work left to do is less than max parallelism. - int32 parallelism = 3; + // Optional. Specifies the maximum desired number of tasks the execution + // should run at given time. When the job is run, if this field is 0 or unset, + // the maximum possible value will be used for that execution. The actual + // number of tasks running in steady state will be less than this number when + // there are fewer tasks waiting to be completed remaining, i.e. when the work + // left to do is less than max parallelism. + int32 parallelism = 3 [(google.api.field_behavior) = OPTIONAL]; // Specifies the desired number of tasks the execution should run. // Setting to 1 means that parallelism is limited to 1 and the success of diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto index 4b87c07763cd..39c9d346cbec 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto @@ -306,6 +306,16 @@ message Revision { // The node selector for the revision. NodeSelector node_selector = 40; + // Optional. Output only. True if GPU zonal redundancy is disabled on this + // revision. + optional bool gpu_zonal_redundancy_disabled = 48 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Email address of the authenticated creator. + string creator = 49 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto index fb59a12729fa..ece315e6a417 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto @@ -124,4 +124,8 @@ message RevisionTemplate { // Optional. The node selector for the revision template. NodeSelector node_selector = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if GPU zonal redundancy is disabled on this revision. + optional bool gpu_zonal_redundancy_disabled = 24 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto index 61628fb0d033..24d57f5fa7e4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto @@ -254,6 +254,9 @@ message Task { // Output only. Reserved for future use. bool satisfies_pzs = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The node selector for the task. + NodeSelector node_selector = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto index 16b5a82e1bbb..caf0e1eb4793 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto @@ -70,4 +70,7 @@ message TaskTemplate { // information, visit // https://cloud.google.com/run/docs/configuring/connecting-vpc. VpcAccess vpc_access = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The node selector for the task template. + NodeSelector node_selector = 11 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 9fbbe2982eec..7e76db182643 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/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.59.0 + 26.60.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-scheduler - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.61.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.62.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-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.62.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-secretmanager/README.md b/java-secretmanager/README.md index 2de12e047f5a..20a94e9f15b1 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/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.59.0 + 26.60.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-secretmanager - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.61.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.62.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-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.62.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-securesourcemanager/README.md b/java-securesourcemanager/README.md index 680ac22e5f6d..fb7d5aa1c6da 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/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.59.0 + 26.60.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-securesourcemanager - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.31.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.32.0" ``` ## Authentication @@ -195,7 +195,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-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/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-security-private-ca/README.md b/java-security-private-ca/README.md index 6e5dfdf5b03a..c6fc6c9d184e 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/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.59.0 + 26.60.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-security-private-ca - 2.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.63.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.64.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-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.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-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index a1687730e61d..6d340dd9b110 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/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.59.0 + 26.60.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-securitycenter-settings - 0.64.0 + 0.65.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.64.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.65.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-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.65.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-securitycenter/README.md b/java-securitycenter/README.md index d863d4ffff00..6dc3cc691d74 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/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.59.0 + 26.60.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-securitycenter - 2.69.0 + 2.70.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.69.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.70.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-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.70.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-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 9b79a4905b5a..fcd7e9b8f52b 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/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.59.0 + 26.60.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-securitycentermanagement - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.29.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.30.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-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.30.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-securityposture/README.md b/java-securityposture/README.md index 028bd3e646a3..f6c946634117 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/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.59.0 + 26.60.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-securityposture - 0.26.0 + 0.27.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.26.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.27.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-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.27.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-service-control/README.md b/java-service-control/README.md index c7011ff8e150..b91b0772fae8 100644 --- a/java-service-control/README.md +++ b/java-service-control/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.59.0 + 26.60.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-service-control - 1.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.61.0' +implementation 'com.google.cloud:google-cloud-service-control:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.62.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-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.62.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-service-management/README.md b/java-service-management/README.md index 10be32ea7424..76ff68759f25 100644 --- a/java-service-management/README.md +++ b/java-service-management/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.59.0 + 26.60.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-service-management - 3.59.0 + 3.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.59.0' +implementation 'com.google.cloud:google-cloud-service-management:3.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.60.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-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.60.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-service-usage/README.md b/java-service-usage/README.md index b2b4fc342c87..423144cee332 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/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.59.0 + 26.60.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-service-usage - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.61.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.62.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-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.62.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-servicedirectory/README.md b/java-servicedirectory/README.md index 2cde304daaa7..9557505433e0 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/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.59.0 + 26.60.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-servicedirectory - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.62.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.63.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-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.63.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-servicehealth/README.md b/java-servicehealth/README.md index a7ffbf0f4e0c..46bc1f8b2e5c 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/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.59.0 + 26.60.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-servicehealth - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.28.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.29.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-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.29.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-shell/README.md b/java-shell/README.md index 958c07fb5c14..27f489921783 100644 --- a/java-shell/README.md +++ b/java-shell/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.59.0 + 26.60.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-shell - 2.60.0 + 2.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.60.0' +implementation 'com.google.cloud:google-cloud-shell:2.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.61.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-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.61.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-shopping-css/README.md b/java-shopping-css/README.md index 7fd6cee41d25..de6f60a640b8 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-css - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.29.0' +implementation 'com.google.shopping:google-shopping-css:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.29.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.30.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.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.30.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-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index f562c53b449f..dcc35dfb2fed 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:0.17.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.17.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "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.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/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-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index b57bb6c394ea..632c7fabf471 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:0.20.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.20.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "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.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/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-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 386cc5cdc23d..f323caaff49d 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:0.17.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.17.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "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.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/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-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 5164762e09f2..3b4eba5759f8 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:0.37.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.37.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.38.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.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.38.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-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 0d69459bd654..aa3414829196 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:0.20.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.20.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "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.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/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-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 9323664dcfa2..eb67b30c43d6 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-productstudio - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.2.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.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.2.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-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 161e0e16f2be..294a209c213f 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:0.17.0' +implementation 'com.google.shopping:google-shopping-merchant-products:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.17.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "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.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/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-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 30a9ee495de7..7aca277dcad7 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:0.17.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.17.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "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.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/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-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 663c6c43a2f1..00b164155f2f 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:0.24.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.24.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.25.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.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.25.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-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 226125ffc185..ca56f1ecbaed 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:0.37.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.37.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.38.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.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.38.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-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index b79875c07ad0..93c9e5db03da 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/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.59.0 + 26.60.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reviews - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.7.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.7.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "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.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-speech/README.md b/java-speech/README.md index 31089f6cb3ab..92cc2ce5c3b8 100644 --- a/java-speech/README.md +++ b/java-speech/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.59.0 + 26.60.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-speech - 4.56.0 + 4.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.56.0' +implementation 'com.google.cloud:google-cloud-speech:4.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.57.0" ``` ## Authentication @@ -230,7 +230,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-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.57.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-storage-transfer/README.md b/java-storage-transfer/README.md index 2e2cbab47785..a7e58b32b345 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/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.59.0 + 26.60.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-storage-transfer - 1.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.61.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.62.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-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.62.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-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 5057d827ed6e..bbedc7610b88 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/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.59.0 + 26.60.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-storagebatchoperations - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.1.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.2.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-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.2.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-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequest.java index a8a303256cba..b1c32e9f1e43 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequest.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequest.java @@ -135,9 +135,9 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,9 +163,9 @@ public java.lang.String getRequestId() { *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -687,9 +687,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -714,9 +714,9 @@ public java.lang.String getRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -741,9 +741,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -767,9 +767,9 @@ public Builder setRequestId(java.lang.String value) { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -789,9 +789,9 @@ public Builder clearRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequestOrBuilder.java index b06926ec18bf..aa6b6b5adc76 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequestOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CancelJobRequestOrBuilder.java @@ -62,9 +62,9 @@ public interface CancelJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -79,9 +79,9 @@ public interface CancelJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequest.java index 73063247a0dc..28e563a10883 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequest.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequest.java @@ -253,9 +253,9 @@ public com.google.cloud.storagebatchoperations.v1.JobOrBuilder getJobOrBuilder() *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -281,9 +281,9 @@ public java.lang.String getRequestId() { *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1205,9 +1205,9 @@ public com.google.cloud.storagebatchoperations.v1.JobOrBuilder getJobOrBuilder() *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1232,9 +1232,9 @@ public java.lang.String getRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1259,9 +1259,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1285,9 +1285,9 @@ public Builder setRequestId(java.lang.String value) { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1307,9 +1307,9 @@ public Builder clearRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequestOrBuilder.java index 8c48d0f31b07..da8e311beda3 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequestOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/CreateJobRequestOrBuilder.java @@ -135,9 +135,9 @@ public interface CreateJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -152,9 +152,9 @@ public interface CreateJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java index 7ae408517567..79f80376a91d 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequest.java @@ -135,9 +135,9 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,9 +163,9 @@ public java.lang.String getRequestId() { *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -687,9 +687,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -714,9 +714,9 @@ public java.lang.String getRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -741,9 +741,9 @@ public com.google.protobuf.ByteString getRequestIdBytes() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -767,9 +767,9 @@ public Builder setRequestId(java.lang.String value) { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -789,9 +789,9 @@ public Builder clearRequestId() { *
      * Optional. An optional request ID to identify requests. Specify a unique
      * request ID in case you need to retry your request. Requests with same
-     * `request_id` will ignored for at least 60 minutes since the first request.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
+     * `request_id` will be ignored for at least 60 minutes since the first
+     * request. The request ID must be a valid UUID with the exception that zero
+     * UUID is not supported (00000000-0000-0000-0000-000000000000).
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java index c620f37a9d58..a8392f439bbe 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/DeleteJobRequestOrBuilder.java @@ -62,9 +62,9 @@ public interface DeleteJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -79,9 +79,9 @@ public interface DeleteJobRequestOrBuilder *
    * Optional. An optional request ID to identify requests. Specify a unique
    * request ID in case you need to retry your request. Requests with same
-   * `request_id` will ignored for at least 60 minutes since the first request.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
+   * `request_id` will be ignored for at least 60 minutes since the first
+   * request. The request ID must be a valid UUID with the exception that zero
+   * UUID is not supported (00000000-0000-0000-0000-000000000000).
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Manifest.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Manifest.java index b30f9c68042f..c45b2d50a195 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Manifest.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/Manifest.java @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -115,9 +115,9 @@ public java.lang.String getManifestLocation() { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -495,9 +495,9 @@ public Builder mergeFrom( * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -529,9 +529,9 @@ public java.lang.String getManifestLocation() { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -563,9 +563,9 @@ public com.google.protobuf.ByteString getManifestLocationBytes() { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -596,9 +596,9 @@ public Builder setManifestLocation(java.lang.String value) { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -625,9 +625,9 @@ public Builder clearManifestLocation() { * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ManifestOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ManifestOrBuilder.java index ff7600b18e9a..9dafc08ffa0b 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ManifestOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/ManifestOrBuilder.java @@ -35,9 +35,9 @@ public interface ManifestOrBuilder * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
@@ -59,9 +59,9 @@ public interface ManifestOrBuilder * upon. * `manifest_location` should either be * 1) An absolute path to the object in the format of - * gs://bucket_name/path/file_name.csv. + * `gs://bucket_name/path/file_name.csv`. * 2) An absolute path with a single wildcard character in the file name, for - * example gs://bucket_name/path/file_name*.csv. + * example `gs://bucket_name/path/file_name*.csv`. * If manifest location is specified with a wildcard, objects in all manifest * files matching the pattern will be acted upon. *
diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadata.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadata.java index c5e8e679fae7..e1e33b5da2fb 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadata.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadata.java @@ -237,7 +237,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * have * [google.longrunning.Operation.error][google.longrunning.Operation.error] * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * corresponding to + * `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. *
* * bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1401,7 +1402,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * have * [google.longrunning.Operation.error][google.longrunning.Operation.error] * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * corresponding to + * `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. *
* * bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1422,7 +1424,8 @@ public boolean getRequestedCancellation() { * have * [google.longrunning.Operation.error][google.longrunning.Operation.error] * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * corresponding to + * `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. *
* * bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1447,7 +1450,8 @@ public Builder setRequestedCancellation(boolean value) { * have * [google.longrunning.Operation.error][google.longrunning.Operation.error] * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * corresponding to + * `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. *
* * bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadataOrBuilder.java b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadataOrBuilder.java index f96f0714e6e1..d08ef238e54b 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadataOrBuilder.java +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/java/com/google/cloud/storagebatchoperations/v1/OperationMetadataOrBuilder.java @@ -141,7 +141,8 @@ public interface OperationMetadataOrBuilder * have * [google.longrunning.Operation.error][google.longrunning.Operation.error] * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - * corresponding to `Code.CANCELLED`. + * corresponding to + * `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. *
* * bool requested_cancellation = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto index 5485a86ea9d9..63bcb751219c 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations.proto @@ -157,9 +157,9 @@ message CreateJobRequest { // Optional. An optional request ID to identify requests. Specify a unique // request ID in case you need to retry your request. Requests with same - // `request_id` will ignored for at least 60 minutes since the first request. - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). + // `request_id` will be ignored for at least 60 minutes since the first + // request. The request ID must be a valid UUID with the exception that zero + // UUID is not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -176,9 +176,9 @@ message CancelJobRequest { // Optional. An optional request ID to identify requests. Specify a unique // request ID in case you need to retry your request. Requests with same - // `request_id` will ignored for at least 60 minutes since the first request. - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). + // `request_id` will be ignored for at least 60 minutes since the first + // request. The request ID must be a valid UUID with the exception that zero + // UUID is not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -195,9 +195,9 @@ message DeleteJobRequest { // Optional. An optional request ID to identify requests. Specify a unique // request ID in case you need to retry your request. Requests with same - // `request_id` will ignored for at least 60 minutes since the first request. - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). + // `request_id` will be ignored for at least 60 minutes since the first + // request. The request ID must be a valid UUID with the exception that zero + // UUID is not supported (00000000-0000-0000-0000-000000000000). string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -223,7 +223,8 @@ message OperationMetadata { // have // [google.longrunning.Operation.error][google.longrunning.Operation.error] // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // corresponding to + // `[Code.CANCELLED][google.rpc.Code.CANCELLED]`. bool requested_cancellation = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto index d5c5f017d848..d2cefad7bef8 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/src/main/proto/google/cloud/storagebatchoperations/v1/storage_batch_operations_types.proto @@ -153,9 +153,9 @@ message Manifest { // upon. // `manifest_location` should either be // 1) An absolute path to the object in the format of - // gs://bucket_name/path/file_name.csv. + // `gs://bucket_name/path/file_name.csv`. // 2) An absolute path with a single wildcard character in the file name, for - // example gs://bucket_name/path/file_name*.csv. + // example `gs://bucket_name/path/file_name*.csv`. // If manifest location is specified with a wildcard, objects in all manifest // files matching the pattern will be acted upon. string manifest_location = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index df5f3ff5389f..c7b1b8ed43c3 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/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.59.0 + 26.60.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-storageinsights - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.46.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.47.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-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.47.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-talent/README.md b/java-talent/README.md index 0741d7d07e98..32132fb8324a 100644 --- a/java-talent/README.md +++ b/java-talent/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.59.0 + 26.60.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-talent - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.62.0' +implementation 'com.google.cloud:google-cloud-talent:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.63.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-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.63.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-tasks/README.md b/java-tasks/README.md index b19d320b4216..e43d499564ad 100644 --- a/java-tasks/README.md +++ b/java-tasks/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.59.0 + 26.60.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-tasks - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.61.0' +implementation 'com.google.cloud:google-cloud-tasks:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.62.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-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.62.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-telcoautomation/README.md b/java-telcoautomation/README.md index 4b1e53d29d99..0ccbe95fe445 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/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.59.0 + 26.60.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-telcoautomation - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.31.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.32.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-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/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-texttospeech/README.md b/java-texttospeech/README.md index 973df60bfedf..d2e32f5bb14f 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/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.59.0 + 26.60.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-texttospeech - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.62.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.63.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-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.63.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-tpu/README.md b/java-tpu/README.md index 50899bd9f7de..476bfda7399a 100644 --- a/java-tpu/README.md +++ b/java-tpu/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.59.0 + 26.60.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-tpu - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.62.0' +implementation 'com.google.cloud:google-cloud-tpu:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.63.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-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.63.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-trace/README.md b/java-trace/README.md index 4b76f75cc943..8c81adb44fbe 100644 --- a/java-trace/README.md +++ b/java-trace/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.59.0 + 26.60.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-trace - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.61.0' +implementation 'com.google.cloud:google-cloud-trace:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.62.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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.62.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-translate/README.md b/java-translate/README.md index b7d6890634ec..497daf5ac138 100644 --- a/java-translate/README.md +++ b/java-translate/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.59.0 + 26.60.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-translate - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.61.0' +implementation 'com.google.cloud:google-cloud-translate:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.62.0" ``` ## Authentication @@ -271,7 +271,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-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.62.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-valkey/README.md b/java-valkey/README.md index 3e6c1b27fca9..d2f2922ed814 100644 --- a/java-valkey/README.md +++ b/java-valkey/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.59.0 + 26.60.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-valkey - 0.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.7.0' +implementation 'com.google.cloud:google-cloud-valkey:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.8.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-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-video-intelligence/README.md b/java-video-intelligence/README.md index 88cb3db79e29..80b4c8b200fe 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/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.59.0 + 26.60.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-video-intelligence - 2.60.0 + 2.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.60.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.61.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-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.61.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-video-live-stream/README.md b/java-video-live-stream/README.md index 73135c449806..d43808a46baa 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/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.59.0 + 26.60.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-live-stream - 0.63.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.63.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "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-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/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-video-stitcher/README.md b/java-video-stitcher/README.md index 8b0463f2f93a..17a98096c060 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/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.59.0 + 26.60.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-video-stitcher - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.61.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.62.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-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.62.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-video-transcoder/README.md b/java-video-transcoder/README.md index 265dfb3b1c70..55d57866b92d 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/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.59.0 + 26.60.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-video-transcoder - 1.60.0 + 1.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.60.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.61.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-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.61.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-vision/README.md b/java-vision/README.md index 85ba13e25b14..d9e2322a6571 100644 --- a/java-vision/README.md +++ b/java-vision/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.59.0 + 26.60.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-vision - 3.59.0 + 3.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.59.0' +implementation 'com.google.cloud:google-cloud-vision:3.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.60.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-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.60.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-visionai/README.md b/java-visionai/README.md index 31113e5a5eff..f94c2033583e 100644 --- a/java-visionai/README.md +++ b/java-visionai/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.59.0 + 26.60.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-visionai - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.18.0' +implementation 'com.google.cloud:google-cloud-visionai:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.19.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-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.19.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-vmmigration/README.md b/java-vmmigration/README.md index a5bb08986401..6a9ba8f7afe0 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/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.59.0 + 26.60.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-vmmigration - 1.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.61.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.62.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-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.62.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-vmwareengine/README.md b/java-vmwareengine/README.md index 344375f3627d..cb97eb4b9232 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/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.59.0 + 26.60.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-vmwareengine - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.55.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.56.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-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.56.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-vpcaccess/README.md b/java-vpcaccess/README.md index f21bdb8496b7..3376ca6a0c04 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/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.59.0 + 26.60.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-vpcaccess - 2.62.0 + 2.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.62.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.63.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-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.63.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-webrisk/README.md b/java-webrisk/README.md index fa0c3156863f..e770fe68bec2 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/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.59.0 + 26.60.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-webrisk - 2.60.0 + 2.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.60.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.61.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-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.61.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-websecurityscanner/README.md b/java-websecurityscanner/README.md index d7d029fb8ce1..1833f6d39ce6 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/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.59.0 + 26.60.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-websecurityscanner - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.61.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.62.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-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.62.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-workflow-executions/README.md b/java-workflow-executions/README.md index 09a30dd863ed..7defb77df586 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/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.59.0 + 26.60.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-workflow-executions - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.61.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.62.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-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.62.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-workflows/README.md b/java-workflows/README.md index 6ebfa51c8c94..7348b09676fe 100644 --- a/java-workflows/README.md +++ b/java-workflows/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.59.0 + 26.60.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-workflows - 2.61.0 + 2.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.61.0' +implementation 'com.google.cloud:google-cloud-workflows:2.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.62.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-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.62.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-workspaceevents/README.md b/java-workspaceevents/README.md index 461d78b0e653..9b3c29ec1a3b 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/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.59.0 + 26.60.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-workspaceevents - 0.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.25.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.26.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-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.26.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-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java index cf358b502e1f..e7cbd73c326d 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/SubscriptionsServiceStubSettings.java @@ -155,7 +155,6 @@ public class SubscriptionsServiceStubSettings /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder() - .add("https://www.googleapis.com/auth/chat.bot") .add("https://www.googleapis.com/auth/chat.memberships") .add("https://www.googleapis.com/auth/chat.memberships.readonly") .add("https://www.googleapis.com/auth/chat.messages") diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java index c02a707f535d..40f1d600797a 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java @@ -122,7 +122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032UpdateSubscriptionMetadata\"\034\n" + "\032CreateSubscriptionMetadata\"\034\n" + "\032DeleteSubscriptionMetadata\" \n" - + "\036ReactivateSubscriptionMetadata2\377\016\n" + + "\036ReactivateSubscriptionMetadata2\326\016\n" + "\024SubscriptionsService\022\330\001\n" + "\022CreateSubscription\022>.google.apps.events.subscriptions.v1.CreateSubs" + "criptionRequest\032\035.google.longrunning.Operation\"c\312A*\n" @@ -147,20 +147,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.ReactivateSubscriptionRequest\032\035.google.longrunning.Operation\"h\312A.\n" + "\014Subscription\022\036ReactivateSubscriptionMetadata\332A\004name" + "\202\323\344\223\002*\"%/v1/{name=subscriptions/*}:react" - + "ivate:\001*\032\346\004\312A\036workspaceevents.googleapis" - + ".com\322A\301\004https://www.googleapis.com/auth/" - + "chat.bot,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis" - + ".com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.message" - + "s,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis" - + ".com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat." - + "messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.google" - + "apis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/meetings.spac" - + "e.created,https://www.googleapis.com/auth/meetings.space.readonlyB\221\002\n" - + "\'com.google.apps.events.subscriptions.v1B\031Subscript" - + "ionsServiceProtoP\001ZScloud.google.com/go/apps/events/subscriptions/apiv1/subscrip" - + "tionspb;subscriptionspb\252\002#Google.Apps.Ev" - + "ents.Subscriptions.V1\312\002#Google\\Apps\\Even" - + "ts\\Subscriptions\\V1\352\002\'Google::Apps::Events::Subscriptions::V1b\006proto3" + + "ivate:\001*\032\275\004\312A\036workspaceevents.googleapis" + + ".com\322A\230\004https://www.googleapis.com/auth/" + + "chat.memberships,https://www.googleapis.com/auth/chat.memberships.readonly,https" + + "://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.me" + + "ssages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.readonl" + + "y,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis." + + "com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.readonly,https:" + + "//www.googleapis.com/auth/meetings.space" + + ".created,https://www.googleapis.com/auth/meetings.space.readonlyB\221\002\n" + + "\'com.google.apps.events.subscriptions.v1B\031Subscripti" + + "onsServiceProtoP\001ZScloud.google.com/go/apps/events/subscriptions/apiv1/subscript" + + "ionspb;subscriptionspb\252\002#Google.Apps.Eve" + + "nts.Subscriptions.V1\312\002#Google\\Apps\\Event" + + "s\\Subscriptions\\V1\352\002\'Google::Apps::Events::Subscriptions::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto index f015a1d519fe..9761fee36ad4 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto @@ -37,7 +37,6 @@ option ruby_package = "Google::Apps::Events::Subscriptions::V1"; service SubscriptionsService { option (google.api.default_host) = "workspaceevents.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/chat.bot," "https://www.googleapis.com/auth/chat.memberships," "https://www.googleapis.com/auth/chat.memberships.readonly," "https://www.googleapis.com/auth/chat.messages," diff --git a/java-workstations/README.md b/java-workstations/README.md index 5f36293eaa4e..215e2a69a820 100644 --- a/java-workstations/README.md +++ b/java-workstations/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.59.0 + 26.60.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-workstations - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.49.0' +implementation 'com.google.cloud:google-cloud-workstations:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.50.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-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.50.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